A simple linter for Sigma rules
sigmalint is a command line interface for validating Sigma rules against the Sigma schema.
The available arguments are:
--sigmainput
- Path to a directory that comtains Sigma files or to a single Sigma file.--directory
- Flag for if sigmainput is a directory--method
- The schema validator that you wish to use (Default: rx)
The available methods are:
rx
- uses PyRx and the Rx schema from the Sigma repojsonschema
- uses a jsonschema approximation of the Rx schema. This was done because jsonschema easily provides additional context as to why the rule is invalid, but this is an interpretation of the Rx schema and not official.s2
- a modified version of the jsonschema schema that allows for more flexibilty in the detection section and marks all rules in the public sigma repo as valid
- pip install sigmalint
Usage: sigmalint [OPTIONS]
Options:
--sigmainput PATH Path to a directory that comtains Sigma files or to a single Sigma file.
[required]
--directory Flag for if sigmainput is a directory
--method [rx|jsonschema|s2] Validation method.
--help Show this message and exit.
Ryan Plas - [email protected]
- 0.1
- Initial Release