YARA Scanner

Download 0
Last updated Sep 13, 2026

yara-scan

Scans a file or directory in the file store with enabled YARA rules and returns one row per file, including files without detections and files with errors.

yara-scan url=VALUE [recursive=VALUE] [timeout=VALUE] [max-size=VALUE]
url=VALUE
Required. File store URL of a file or directory, for example sonar://samples/malware. Quote values containing spaces.
recursive=VALUE
Optional. Include subdirectories: t or f. Default: t.
timeout=VALUE
Optional. Per-file scan timeout in seconds. Default: 60.
max-size=VALUE
Optional. Maximum file size in bytes. Default: 67108864 (64 MiB). Larger files produce an error result.

Output fields

FieldTypeNameDescription
_timeDateScan timee.g. 2026-09-12 14:00:00
file_urlStringFile urle.g. sonar://samples/malware/a.exe
file_nameStringFile namee.g. a.exe
file_sizeLongFile sizeBytes
is_matchedBooleanMatchede.g. true
match_countIntegerMatch counte.g. 2
rulesStringMatched rulese.g. EICAR_Test_File,SUSP_Just_EICAR
tagsStringRule tagse.g. exe,packed
errorStringErrore.g. file too large: 104857600