Atlantiraptor Docs

yarax

Type: Plugin

Scan files using yara rules (Using the new yarax engine).

This is an experimental new functionality to use the YaraX project instead of the more traditional C based Yara engine.

One of the biggest issues for Velociraptor integration is the very large size of the YaraX library (which is written in Rust). Including YaraX in Velociraptor will increase our binary size by a third (about 25Mb) for a single experimental plugin.

Therefore, we have decided to distribute YaraX as a third party tool and load the DLL at runtime.

You must specify a lambda function to the dll_path parameter which will be evaluated only if needed. The function should return the absolute path to the YaraX DLL on disk. Once the dll is loaded, it is not unloaded again. This way you can avoid having to download or hash the dll until actually needed.

Argument Type Description
rules string Yara rules in the yara DSL or after being compiled by the yarac compiler.
files list of Any (required) The list of files to scan.
accessor string Accessor (e.g. ntfs,file)
context int How many bytes to include around each hit
start uint64 The start offset to scan
end uint64 End scanning at this offset (100mb)
number int64 Stop after this many hits (1).
blocksize uint64 Blocksize for scanning (10mb).
key string If set use this key to cache the yara rules.
namespace string The Yara namespace to use.
vars ordereddict.Dict The Yara variables to use.
dll_path vfilter.Lambda (required) Function to resolve path to the yarax DLL
force_buffers bool Force buffer scan in all cases.

Required permissions: FILESYSTEM_READ, EXECVE

Platforms: Linux, Windows

Source: vql/common/yarax.go