Skip to content

Instantly share code, notes, and snippets.

@gormaniac
gormaniac / filter.storm
Last active July 18, 2023 22:52
Yield results of a storm query that are passed through an arbitrary query filter
// Just the example code, without comments.
$filter="-#test.tag"
$start="{ it:app:yara:rule=$rule | "
$end=" return($node) }"
$instruction=$lib.str.concat($start, $filter, $end)
$rules=$lib.list()
it:app:yara:rule:enabled=true |
$rules.append($node.value()) |
spin |