Ctrl + k

or run

tessl search
Log in

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/yara-python@3.11.x
tile.json

tessl/pypi-yara-python

tessl install tessl/pypi-yara-python@3.11.0

Python interface for YARA, a powerful malware identification and classification tool

Agent Success

Agent success rate when using this tile

85%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.94x

Baseline

Agent success rate without this tile

90%

task.mdevals/scenario-9/

Process Pattern Scanner

A command-line utility that scans running processes for suspicious patterns using pattern matching rules.

Capabilities

Process Memory Scanning

  • Scans a process by PID and returns all matching rule names @test
  • Returns an empty list when no patterns match @test

Rule Loading

  • Loads pattern matching rules from a file path @test

Error Handling

  • Raises an exception when attempting to scan a non-existent process @test
  • Raises an exception when the rules file does not exist @test

Implementation

@generates

API

def scan_process(pid: int, rules_file: str) -> list[str]:
    """
    Scans a process's memory for patterns defined in a rules file.

    Args:
        pid: The process ID to scan
        rules_file: Path to the file containing pattern matching rules

    Returns:
        A list of rule names that matched (empty list if no matches)

    Raises:
        ValueError: If the rules file does not exist
        RuntimeError: If the process does not exist or cannot be accessed
    """
    pass

Dependencies { .dependencies }

yara-python { .dependency }

Provides pattern matching and process scanning capabilities.

@satisfied-by