Rule anatomy
Each source contains one YARA rule. Conditions read fields from theinfrawatch module.
The rule editor validates and formats source before a rule can be enabled.
Detection metadata
Keep detection logic in the source. Set its meaning separately:
See the intelligence taxonomy for the canonical category
paths and classification model.
Write reliable conditions
- Prefer typed protocol fields over banner text.
- Check that an optional field is
definedbefore using it. - Combine independent signals to reduce false positives.
- Put reusable text or byte patterns in the
stringssection. - Explain the detection intent in
meta.description.
Copy working examples
Start with compiled Redis, MQTT, and HTTP detections.
Browse protocol fields
Find the exact path and type emitted by each scanner.