Detection Rule
Also called Analytic.
Logic that defines the conditions under which an alert fires.
What it is
A detection rule, sometimes called an analytic, is the codified logic that defines the conditions under which activity is flagged and an alert is raised. It can match a specific signature or describe a suspicious behavior.
Why it matters
Detection rules are the building blocks of automated monitoring; their precision and coverage directly determine how many real threats are caught and how much noise analysts must wade through.
In practice
A rule that fires when a process spawns a command interpreter from an office application, indicating a likely macro payload.
What to look for
- Clear logic tied to a specific technique or behavior.
- Test events that prove the rule fires and stays quiet on normal activity.
- Documented exceptions with reasons.
Common mistake
Writing a rule for one sample's exact strings. Detect the behavior so small changes do not break it.
Use it in CyberKit
- Rule Tester
Write a Sigma or YARA rule and test it against samples, or read a Suricata rule back in plain English.
- Regex Tester
A live regex playground, with a library of common DFIR patterns.
- Rule Range
Write a regex, a Sigma rule, a YARA rule and a query pipeline, each graded live against samples, some of which you never see.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
YARA Open source
Matches byte and string patterns in files or memory, the standard for malware rules. Our notes.
-
Suricata Open source
Runs network rules against live traffic or captures and logs every match. Our notes.
-
Splunk Enterprise Security Commercial
Where many teams run, tune and schedule detection searches in production.
Tools practitioners use
- Sigma: Vendor-neutral detection rule format & converter
Read next
- Detection Engineering: The discipline of designing, building, and maintaining detections.
- Signature-Based Detection: Detecting known-bad by matching specific, predefined patterns.
- Behavioral Detection: Detecting threats by the actions they take, not static indicators.