tessl install tessl/pypi-yara-python@3.11.0Python 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%
{
"context": "This evaluation assesses how well the engineer uses the yara-python package to load pre-compiled rules from file-like objects in memory, specifically testing their understanding of the yara.load() function with file-like object parameters and proper handling of in-memory buffers.",
"type": "weighted_checklist",
"checklist": [
{
"name": "yara.load() usage",
"description": "Uses yara.load() function (not yara.compile()) to load pre-compiled rules",
"max_score": 30
},
{
"name": "File-like object parameter",
"description": "Passes a file-like object to yara.load() using the 'file' parameter (e.g., BytesIO, StringIO, or similar buffer object) rather than 'filepath' parameter",
"max_score": 35
},
{
"name": "In-memory buffer creation",
"description": "Creates an appropriate in-memory buffer (such as io.BytesIO) from the downloaded data and uses it as a file-like object",
"max_score": 25
},
{
"name": "Error handling",
"description": "Handles yara.Error or similar YARA-specific exceptions when loading fails with invalid data",
"max_score": 10
}
]
}