tessl install tessl/pypi-pymisp@2.5.0Python API for MISP threat intelligence platform enabling programmatic access to MISP instances.
Agent Success
Agent success rate when using this tile
96%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.25x
Baseline
Agent success rate without this tile
77%
Build a security incident log analyzer that processes various security logs and converts them into structured threat intelligence objects suitable for sharing.
Create a Python program that accepts different types of security log data and generates structured objects for each log type. The program should handle three different log formats:
Ban Events: Process authentication failure logs containing:
Git Repository Vulnerabilities: Process git vulnerability findings containing:
Sandbox Detection Signatures: Process sandbox detection results containing:
Your solution must:
Given a ban event with IP "192.0.2.100", timestamp "2025-01-01T10:30:00", 5 attempts, and protocol "ssh", the program generates a valid ban event object with these fields @test
Given a git vulnerability with repository "https://github.com/example/repo", commit "abc123def456", description "Hardcoded API key", and timestamp "2025-01-01T14:20:00", the program generates a valid git vulnerability object with these fields @test
Given a sandbox signature with name "VMWare detection", type "behavioral", result "detected", and timestamp "2025-01-01T09:15:00", the program generates a valid sandbox signature object with these fields @test
@generates
def create_ban_event_object(ip: str, timestamp: str, attempts: int, protocol: str) -> dict:
"""
Create a structured ban event object from authentication failure logs.
Args:
ip: The banned IP address
timestamp: ISO 8601 formatted timestamp
attempts: Number of failed authentication attempts
protocol: Protocol used (e.g., 'ssh', 'http')
Returns:
A dictionary representing the structured ban event object
"""
pass
def create_git_vuln_object(repository: str, commit: str, description: str, timestamp: str) -> dict:
"""
Create a structured git vulnerability object from vulnerability findings.
Args:
repository: Git repository URL
commit: Commit hash where vulnerability was found
description: Description of the vulnerability
timestamp: ISO 8601 formatted timestamp
Returns:
A dictionary representing the structured git vulnerability object
"""
pass
def create_sandbox_signature_object(name: str, sig_type: str, result: str, timestamp: str) -> dict:
"""
Create a structured sandbox signature object from sandbox detection results.
Args:
name: Signature name
sig_type: Type of signature (e.g., 'behavioral', 'static')
result: Detection result ('detected' or 'not detected')
timestamp: ISO 8601 formatted timestamp
Returns:
A dictionary representing the structured sandbox signature object
"""
passPython library for MISP (Malware Information Sharing Platform) threat intelligence platform.
@satisfied-by