This extension will enhance your VSCode for the Sigma signature format
Checkout Ideas.md for planned features!
Simply grab it in the VSCode marketplace.
Install it from VSCode in the Extension Tab (Ctrl + Shift + X) and search for Sigma.
- Setup your Author name in the extensions config section.
sigma.author
- Setup your sigmac compile configs in
sigma.compileConfig
- For example:
[ { "tag": "OptionalTag", "target": "kibana", "config":["~/sigma/tools/config/winlogbeat.yml"], "additionalArgs": "" }, { "target": "splunk", "config":["~/sigma/tools/config/generic/windows-audit.yml","~/sigma/tools/config/splunk-windows.yml"] } ]
Various Snippets:
- Title too Long
- Description too Short
- 'contains' at wrong position in modifiers
- Whitespace at end of Line
- Single Item with All modifier
- YAML not parsing
- Various Tests from the official sigma repo
Quickfixes for some of the Diagnostics
Lists will be automatically continued by pressing the enter key.
Use the CTRL
(Command
on Mac) modifier to create a new line regardless of the curent position of the cursor.
Use the Shift
modifier to ignore this feature.
When there is an empty string, it gets deleted.
- Hover for attack Tags
- Adding new Tags per command
After defining your sigmac configs, click on the codelens in the first line. The compile sigma rule will be in your clipboard.
The extension can be used in github vscode mode and on vscode.dev. However these are not really tested, so in case you find bugs with it, feel free to open an issue.
Integration of https://sigmasearchengine.com/.
Look Up Related
--> Look up related Sigma rules (see codelense aboverelated
)Look Up
--> Look for similar rules with multiline selection (see codelense abovedetection
)- Hovering over
detection
-strings --> Look for similar rules
For sigmac compilation: sigmatools
pip install sigmatools
- sigma.author: Set this for the newRule and author snippet
- sigma.debug: If true, debug messages will be printed in console
Only Files that are opened and begin with title:
are set as sigma
Check out CHANGELOG for more information.