Skip to content
🎉 Launch sale:50% off everything over $22 — automatically applied at checkout· ends Aug 2Shop the sale →
DevOps AI ToolKit
Newsletter
All prompts
AI for DevOps Security & Hardening Difficulty: Intermediate ClaudeChatGPT

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

More DevOps Security & Hardening prompts & error guides

Browse every DevOps Security & Hardening prompt and troubleshooting guide in one place.

Free download · 368-page PDF

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.