Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 2.56 KB

File metadata and controls

26 lines (17 loc) · 2.56 KB

The suricata-check project - Extension Example

Static Badge GitHub License

Quick Test, Build, Lint Extensive Test

suricata-check is a command line utility to provide feedback on Suricata rules. The tool can detect various issues including those covering syntax validity, interpretability, rule specificity, rule coverage, and efficiency.

How to use this template

  1. Choose a name for your extension (e.g. suricata-check-foobar) and replace suricata-check-extension-example by your chosen name in all folder names, file names, and file contents. Similarly, replace suricata_check_extension_example by your chosen name with the dashes (-) substituted by underscores (_).
  2. Rename suricata_check_extension-example/checkers/example.py and the class contained therein and make refactor accordingly in that file, and in suricata_check_extension-example/checkers/init.py.
  3. Similarly, rename tests/checkers/test_example.py and adjust the reference to the renamed checker file/class in that file and in tests/test_suricata_check.py.
  4. Implement tests for your checker in tests/checkers/test_example.py and implement the checker in suricata_check_extension-example/checkers/example.py.
  5. You can now package, distribute and install the extension like any other Python package. When installed, the extension will be automatically selected by suricata-check when ran from the command line.

Contributing

If you would like to contribute, please check out CONTRIBUTING.md some helpful suggestions and instructions.

License

This project (Extension Example) is licensed under the Apache 2.0 license.