Python interface for YARA, a powerful malware identification and classification tool
Overall
score
85%
Evaluation — 85%
↓ 0.94xAgent success when using this tile
A utility that loads malware detection rules from a file and scans target data to identify matches.
@generates
def load_rules(filepath: str):
"""
Load YARA rules from a file.
Args:
filepath: Path to the YARA rules file
Returns:
A compiled rules object
Raises:
FileNotFoundError: If the rule file does not exist
SyntaxError: If the rule file contains invalid syntax
"""
pass
def scan_data(rules, data: bytes) -> list[str]:
"""
Scan binary data using compiled rules.
Args:
rules: Compiled rules object returned by load_rules()
data: Binary data to scan
Returns:
List of rule names that matched (empty list if no matches)
"""
passProvides YARA pattern matching capabilities for malware detection.
Install with Tessl CLI
npx tessl i tessl/pypi-yara-pythonevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10