# YARA and Suricata for the SOC

> Turn case indicators into a YARA file rule and Suricata network rules, test them against samples and eve.json, and read what the sensor logged.

Canonical: https://codelivly.com/rooms/yara-and-suricata-for-the-soc
Last updated: 2026-11-23

| | |
|---|---|
| Level | Intermediate |
| Category | Cybersecurity |
| Lessons | 5 |
| Estimated time | 3 h 30 min |
| XP | 1150 |

A closed phishing case leaves indicators in a case note. This room turns them into detections at Kestrel Logistics. You build a YARA rule that survives a rotated domain instead of resting on one string, measure it against suspect samples, benign look alikes and a goodware corpus, read Suricata rule anatomy from header to options, and use eve.json events and jq to pivot from an alert to its flow and its DNS lookup. The final lab writes both rule files and checks them against evidence. Every lesson has a terminal exercise and scenario questions that need judgment.

## Lessons

1. YARA Rule Structure and Strings (40 min)
2. Testing YARA Against Sample Sets (40 min)
3. Suricata Rule Anatomy (40 min)
4. Reading eve.json Alerts (40 min)
5. Guided Lab: Detect a File and a Network Pattern (50 min)

## Related

- [Learning path: Detection Engineering and Tuning](https://codelivly.com/learning-paths/detection-engineering-and-tuning)
- [All rooms](https://codelivly.com/rooms)
