This repository contains a large collection of rules for the Suricata intrusion detection system (IDS). Suricata is an open-source network IDS that can detect a wide range of threats, including malware, exploits, and other malicious activity. Our rules are designed to be highly effective at detecting web application attack especially detecting latest CVEs.
This repository is heavily influenced by
nuclei-templatesrepository by ProjectDiscovery
main.py will merge all rules into one file
python3 main.py --path=/path/to/rules| Rules | Count |
|---|---|
| CVE-2021.rules | 49 |
| CVE-2019.rules | 49 |
| CVE-2025.rules | 47 |
| CVE-2026.rules | 46 |
| CVE-2018.rules | 46 |
| CVE-2023.rules | 46 |
| CVE-2022.rules | 45 |
| CVE-2020.rules | 45 |
| CVE-2024.rules | 44 |
| CVE-2017.rules | 33 |
| Range | Category |
|---|---|
1YYYYNNN |
cnvd (e.g. 12021001 = CNVD-2021, rule 001) |
2YYYYNNN |
cves (e.g. 22023001 = CVE-2023, rule 001) |
30000000+ |
default-logins |
40000000+ |
miscellaneous |
50000000+ |
tools |
50100000 - 51400999 |
web-attacks (one block per attack class) |
60000000+ |
vulnerabilities |
Suricata's http_uri is the normalized URI, not the bytes on the wire. With the
default IDS personality libhtp will, before your rule ever sees the buffer:
- percent-decode the path and the query (
%3Cscriptbecomes<script) - lowercase the path (
/Dialog/FileDialog.aspxbecomes/dialog/filedialog.aspx) - convert backslashes to forward slashes and collapse repeated separators
- remove RFC 3986 dot-segments from the path (
/a/../bbecomes/b)
Practical consequences when adding a rule:
- Match payloads in their decoded form, and add
nocaseto everyhttp_urimatch. ../survives in the query string but is removed from the path. To match traversal in the path, or any percent-encoded form, usehttp_raw_uri.http_client_bodyis raw: it is neither decoded nor lowercased, and+is not converted to a space.
- Add more cnvd rules
- Add more cves rules
- Add more default-logins rules
- Add more miscellaneous rules
- Add more vulnerabilities rules
- Add more
Malwarerules - Add
URL Reference - Add more web application attack rules (e.g.
SQL Injection,XSS, etc)
You can contribute to this repository by adding new rules or you can update the existing rules