Prerequisites
- A user with permission to manage SIEM detection rules.
- At least one data source sending security events (an integration, Linux audit logs, Kubernetes audit logs, or file integrity monitoring).
Start a new rule
- Go to Security → Detection Rules.
- Click New Rule.
Step 1: Select a detection method
Choose how the rule identifies threats in your data. See Detection methods for guidance on each option.Step 2: Define detection queries
This step describes what to look for. Start with the rule’s general settings:Add one or more queries
Each rule has at least one query. A query filters and aggregates events:
Click Add query to add more queries. You can then combine them in your case conditions.
Step 3: Set rule cases
Cases turn query results into a signal. Each case is a boolean condition over your query names, evaluated top to bottom. The first matching case wins and sets the signal’s severity.
Conditions support comparison and logical operators (
>, >=, <, <=, ==, !=, &&, ||) over your query names. For example:
Critical case for very high volumes and a High case for lower ones).
Step 4: Say what’s happening
This step composes the notification body and the tags applied to the signals this rule generates.
A useful notification template states the goal and the response steps, for example:
Step 5: Create a suppression
Suppression reduces noise by muting recurring or expected signals. This step is optional.Test the rule
Before saving, click Test rule in the footer to validate the rule’s configuration against recent data. The footer also lists any incomplete steps; once everything is valid it shows Ready to save. When you are satisfied, click Save Rule.A complete example
The following describes an SSH brute-force rule end to end:
This rule fires a High severity signal whenever a single source IP produces 10 or more failed SSH authentications on a host within any 5-minute window.
Manage existing rules
From the Detection Rules list you can manage both built-in and custom rules:- Enable or disable: Toggle a rule on or off without deleting it. This works for both built-in and custom rules.
- Override a built-in rule: Built-in rules are read-only, but you can override settings such as severity and notification routing for your account.
- Clone: Copy any rule (built-in or custom) into a new, fully editable custom rule. The copy’s name is suffixed with (copy).
- Edit: Open a custom rule back in the five-step builder to change it.
- Import and export: When editing a custom rule, export it to JSON or import a rule definition. Bulk import is also available for onboarding many rules at once.
- Delete: Remove a custom rule. Any overrides you made on it are removed as well.
Next steps
- Filter Query Syntax: the full filter DSL for your rule queries.
- Investigating Signals: triage the signals your rules generate.