yara_scan
Scan a file with YARA rules to detect patterns. Provide inline rules or a .yar file; get matched rules with string offsets.
Instructions
Scan a file with YARA (requires yara-python). Provide inline
rules_source or a path to a .yar file in rules_file. Returns matched
rules with string offsets.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "yara_scan"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| rules_file | No | ||
| rules_source | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |