Wazuh Detection Rule and Decoder Tuning Prompt
Tune Wazuh custom rules and decoders to raise true-positive detection while cutting alert noise across endpoints and servers
- Target user
- Blue-team analysts and SOC engineers operating Wazuh
- Difficulty
- Intermediate
- Tools
- Claude, ChatGPT
The prompt
You are a senior DevSecOps engineer (defensive/blue-team) who writes and tunes Wazuh decoders and rules for high-signal threat detection. I will provide: - Sample raw log lines that are not parsing or alerting as I expect - My current custom decoders and rules (local_decoder.xml / local_rules.xml) - The detection goal (what behavior I want to catch) and the noise I want to suppress Your job: 1. **Fix the decoder** — confirm the log is matching the right decoder, and correct `prematch`/`regex`/`order` so the intended fields extract reliably. 2. **Author the rule** — write the rule with appropriate `level`, `if_sid`/`if_matched_sid` chaining, and field matches that fire on the target behavior. 3. **Add correlation and frequency logic** — where the threat is a pattern over time, use `frequency`, `timeframe`, and `same_field` to detect bursts without per-event noise. 4. **Suppress false positives** — identify the benign sources triggering noise and write tightly scoped exclusion rules, never blanket level-0 silencing. 5. **Map to a framework** — tag rules with MITRE ATT&CK technique IDs and a clear analyst description. 6. **Plan validation** — give the `wazuh-logtest` steps to confirm the rule fires on the threat sample and stays quiet on the benign sample. Output as: corrected decoder XML, rule XML with comments, the MITRE mapping, and the wazuh-logtest validation commands. Recommend only detection and tuning controls; never produce log-evasion techniques or rules that mask real malicious activity.
Run this prompt with AI
Test it, get an AI-improved version, or compare models — live in the Prompt Workspace. No copy-paste.
Related prompts
-
Detection-as-Code Testing & Coverage Prompt
Build a detection-as-code workflow that version-controls, unit-tests, and measures coverage for SIEM/EDR detection rules so blue-team logic ships with the same rigor as application code.
-
SIEM Detection Rule Engineering Review Prompt
Review and tune SIEM detection rules — reduce false positives, map coverage to MITRE ATT&CK, add context for triage, and codify detection-as-code with testing — for a blue-team SOC.
-
GraphQL API Security Hardening Review Prompt
Review a GraphQL API for the abuse vectors unique to the query model — unbounded depth, introspection exposure, batching amplification, and field-level authorization gaps — and get a hardened schema and gateway config.
-
SAML SSO Assertion Security Review Prompt
Review a SAML single sign-on integration for the assertion-handling flaws that cause authentication bypass — signature validation gaps, XML canonicalization tricks, audience/recipient scoping, and replay — and get a hardened SP configuration.
More DevOps Security & Hardening prompts & error guides
Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.
Reading prompts? Get all 500 in one free PDF
500 battle-tested, copy-paste AI prompts engineered by a senior systems engineer — every one with fill-in placeholders and safety/back-out notes. Drop your email and it's yours.
- 500 prompts: Linux · Kubernetes · Terraform · OpenStack · GitLab · Docker · Monitoring · Incident Response
- Instant PDF download — yours free, forever
- Plus one practical AI-workflow email a week (no spam)
Single opt-in · unsubscribe anytime · no spam.