Lion Cipher Lab

Write a custom Wazuh decoder and rule

Why it matters

Deploying Wazuh gave you a SIEM that already understands thousands of common log formats. But the moment you point it at something the vendor never wrote a rule for — a homegrown app, an odd appliance, a niche service — the events arrive as raw text and light up nothing. Detection engineering is the craft that closes that gap, and it is what actually separates someone who 'has a SIEM' from someone who runs one. This lab walks the full loop on a log Wazuh does not understand: you write a decoder to pull structured fields out of the raw line, prove it with wazuh-logtest before it ever touches…

What you'll learn

Steps in this lab

  1. The pipeline: how a raw log becomes an alert
  2. Capture the log line Wazuh does not understand
  3. Write the custom decoder
  4. Test the decoder with wazuh-logtest (the heart of the loop)
  5. Write the custom rule (safe id range, level, MITRE)
  6. Retest, restart, and fire the event for real
  7. Confirm the alert landed
  8. Tune it — and why you write your own detections

Open the full interactive lab →