redcanaryco / surveyor

A cross-platform baselining, threat hunting, and attack surface analysis tool for security teams.
MIT License
169 stars 59 forks source link

Added Support for "Query" Field in Definition Files #93

Closed rc-csmith closed 1 year ago

rc-csmith commented 1 year ago

Changes:

To-Do After Merge:

Closes #12

xC0uNt3r7hr34t commented 1 year ago

Is there a reason that multiple terms can't be used like was setup with SentinelOne product? These should be able to be joined together with OR in a similar manner. Code looks good otherwise, I don't have any queries prepped to validate this works for these products. I won't be able to validate against CBR product.

rc-csmith commented 1 year ago

@xC0uNt3r7hr34t - I couldn't recall where we landed after our chat if we decided to support chaining queries together or not. But I like the idea of allowing multiple queries to be merged/joined so I've updated the code accordingly