detection-rules
Skill9 starsChanged 4 days agoApache-2.0View on GitHub
IDS/IPS detection content for a CVE — Snort/Suricata-compatible rules, YARA signatures, ProjectDiscovery Nuclei templates, traffic-filter rules. Capability-aware: skips families when the binary is not installed (no Snort = no Snort output). Use when deploying defences for a CVE without a patch, augmenting SAST with active detection, or feeding the SOC engineering pipeline.
3 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- Vulnetix/pix-ai-coding-assistantedited, first seen Nov 29, 2026
- Vulnesis/pix-ai-coding-assistantedited, first seen Nov 22, 2026
- cisco-ai-defense/project-quarrytheir own version, first seen Nov 16, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- Vulnesis/pix-ai-coding-assistant★ 994% same
- Vulnetix/pix-ai-coding-assistant★ 994% same
Wrote their own version · 1
- cisco-ai-defense/project-quarry★ 112same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository18 other files it gives its agents.
- AGENTS.mdAGENTS.md
- container-scanSkill
- dashboardSkill
- dependency-choiceSkill
- dep-resolveSkill
- eol-checkSkill
- exploit-testSkill
- fixSkill
- iac-scanSkill
- license-checkSkill
- repo-impactSkill
- sast-scanSkill
- sbom-generateSkill
- secret-scanSkill
- secure-code-writeSkill
- typosquat-checkSkill
- verify-fixSkill
- vex-publishSkill
The file
We split this skill into the rules it gives an agent
4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Read .vulnetix/capabilities.yaml.
- Very specific: line 44
If the user accepts, treat the stack as [snort, yara, nuclei] for completeness.
- Very specific: line 66
Write rule content to .vulnetix/detection/<VULN_ID>/:
- Very specific: line 72
Use --format rules / --format yaml against the same subcommand:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Vulnesis Detection Rules Skill
Use when
- A CVE has no patch yet and you need detection-only mitigation.
- Augmenting SAST with active runtime detection (Snort/Suricata).
- Feeding the SOC engineering pipeline with rule files.
- Building a Nuclei scan template for an authorised target assessment.
- Hardening a YARA ruleset against a newly-discovered malware family.
Don't use for
- Executing the rules — this skill writes files; the user runs the engine.
- Patching the underlying issue — use
fix. - Single-CVE enrichment — use
vulnetix_vuln(MCP) orvulnetix vdb vuln <id>.
Conventions
Follows skills/_lib/contract.md. In short: use the vulnetix_* MCP tools when the agent has them and the CLI otherwise — both shape their own output, so there is no jq step any more. Independent calls go out as concurrent Bash tool calls in one message. One trailing suggestion, not a playbook. See the contract for surface selection, output style and memory writes.
Pulls IDS/IPS, malware-detection, and active-scan content for a CVE. Capability-aware: only fetches rule families the user can actually use.
Step 1: Load capabilities
Read .vulnetix/capabilities.yaml. Capture derived.detection_stack. If empty, prompt:
No detection tooling found (snort, suricata, yara, nuclei, semgrep). I can still fetch the raw rules — proceed?If the user accepts, treat the stack as [snort, yara, nuclei] for completeness. Otherwise abort with a one-liner pointing at install docs.
Step 2: Fetch each available family
For each family in detection_stack:
# Snort/Suricata
vulnetix vdb snort-rules get "$ARGUMENTS" -o json
vulnetix vdb traffic-filters "$ARGUMENTS" -o json
# YARA
vulnetix vdb yara-rules get "$ARGUMENTS" -o json
# Nuclei
vulnetix vdb nuclei get "$ARGUMENTS" -o jsonSkip families absent from detection_stack to avoid wasted API calls.
Step 3: Save rule files (raw form)
Write rule content to .vulnetix/detection/<VULN_ID>/:
snort.rules(concat of all Snort rule bodies)suricata.rules(if family present)vuln.yar(concat of YARA rules)nuclei-<id>.yaml(one per template)
Use --format rules / --format yaml against the same subcommand:
vulnetix vdb snort-rules list --cve-id "$ARGUMENTS" --format rules > .vulnetix/detection/$ARGUMENTS/snort.rules
vulnetix vdb yara-rules list --cve-id "$ARGUMENTS" --format rules > .vulnetix/detection/$ARGUMENTS/vuln.yar
vulnetix vdb nuclei get "$ARGUMENTS" --format yaml > .vulnetix/detection/$ARGUMENTS/nuclei.yamlStep 4: Render report
For each family, list:
- Rule count + highest signature severity
- File path on disk
- A copy-pasteable invocation hint based on installed binaries:
snort -c snort.conf -A console(only ifbinaries.snort: true)yara vuln.yar /path/to/scan(only ifbinaries.yara: true)nuclei -t .vulnetix/detection/$ARGUMENTS/nuclei.yaml -u <target>(only ifbinaries.nuclei: true)
Step 5: Memory update
Append event: detection-rules with counts per family to the vuln entry.
Notes
- This skill never executes rules. The user (or
exploit-test) runs them. - Filter is honest: if YARA is missing, the YARA section is omitted from the report and from disk writes.
Edge cases & gotchas
- Each family is fetched ONLY if the binary is in
derived.detection_stack. Override by passing--forceif you want raw rule output regardless. vdb snort-rules,vdb yara-rules,vdb nucleiaccept--format rules|yamlfor non-JSON output (the engine's native format).- Some CVEs return zero rules across all families — that means no community detection content exists, not that the skill failed.
- YARA rules can have multiple hash-only matchers; if your YARA build was compiled without hash-module support, those rules fail silently.
- Nuclei templates require a target URL/IP at invocation time; the skill produces the template, not the scan.
vdb traffic-filters <id>returns Snort-format rules tagged for Suricata compatibility — confirm Suricata accepts the rule before deploying to Suricata.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

