Detection Rules
A Detection Rule is one detection: what to look for in events, how serious a match is, and what happens to the alert it raises. Every rule, built in or your own, is on one screen. Select Settings in the top bar, then Detection Rules in the Detections group.
Role needed: An Admin or Super Admin account. For any other account the screen shows Admin access required. The permissions that apply are Settings access with Trigger Rules: Read to view and export rules, Set to create, change, enable, disable, mute, duplicate, tag and import rules, and Delete to delete them. Admin and Super Admin accounts have all three.
How a rule runs
A rule runs in one of two ways, shown by the icon on its Type badge:
| Runs | Rule types | What it means |
|---|---|---|
| On every event as it arrives | Match, Sequence, Indicator | The rule is checked against each event. It has no schedule. |
| On a schedule | Query, New terms | The rule runs its search at an interval and looks back over a window of time. |
See Rule types for what each type detects.
What a scheduled rule can see
A scheduled rule runs as the account that last saved it, under that account’s current role, so it searches only what that role allows. See Roles and permissions. If the account or its role is removed, or the role no longer has Search: Read, the rule stops and each missed window is recorded as Failed in the execution log. Open the rule and save it from an account that can run it to restart it. Built-in rules that you have not edited are not tied to an account.
The screen
The screen has three tabs. The first two show a number badge with the count of rules.
| Tab | Shows |
|---|---|
| Installed rules | Every rule, with its severity, last result and switch. |
| Rule monitoring | The same rules with run figures and a summary of how they are doing. See Monitor rules. |
| Actions | The Action Rules that respond to alerts. See Action Rules. |
The header holds four buttons, which are hidden on the Actions tab:
| Button | Use it to |
|---|---|
| Reference lists | Open Reference Lists. |
| Manage suppression lists | Open the suppression list. |
| Import rules | Load rules from a file. See Import and export rules. |
| Create rule | Start a new rule. See Create and edit a Detection Rule. |
Columns on Installed rules
| Column | Meaning |
|---|---|
| Rule | The rule's name. Select it to open its details page. A Modified badge beside it marks a built-in rule that has been changed since it was installed. |
| Type | The rule type. Hover to see its schedule, or "Evaluates every event as it arrives". |
| Output | Alert for a rule that raises Cases, Building block for a building-block rule. |
| Tags | The rule's tags. |
| Risk score | How much each alert adds to its entity's risk score. |
| Severity | Low, Medium, High or Critical. |
| Last run | When the rule last evaluated events or ran its search. |
| Last response | Succeeded, Warning, Failed or no response. Hover a warning or a failure to read why. |
| Last updated | When the rule was last saved. |
| Notify | A bell that mutes the rule. See Mute a rule. It shows a dash for a building-block rule. |
| Enabled | The switch that turns the rule on and off. |
The default order puts enabled rules first. Select a column heading to sort by it. Choose 5, 10, 20, 50 or 100 rows a page.
Find rules
The search box matches a rule's name, category, field, tag, or MITRE ATT&CK tactic or technique. These filters narrow the list further:
- Type, Tags, Category and Last response open a list of choices.
- ThreatVIS rules and Custom rules show the rules that came with the appliance, or the rules you added. Each button shows its count.
- Enabled rules and Disabled rules show rules by state.
The list refreshes itself every minute. Select Refresh now to refresh at once, or open Auto refresh settings to switch it off.
Row actions
Each row has five icons:
| Icon | Does |
|---|---|
| Edit rule settings | Opens the rule editor in a flyout. |
| Duplicate rule | Makes a copy named after the rule with (Copy) added. The copy is off. It keeps the rule's own exceptions in a list of their own. |
| Export rule | Downloads the rule. It is offered only for rules that raise alerts. |
| Open in Search | Opens Search with the events the rule would match. A rule whose conditions read live detection state cannot be shown this way, and the screen says so. |
| Delete rule | Deletes the rule after you confirm. It is unavailable for built-in rules. |
Built-in rules cannot be deleted. Switch them off instead.
Bulk actions
Tick rows, or select Select all to tick every rule the filters show. The bar then shows how many are selected and a Bulk actions menu:
| Item | Does |
|---|---|
| Enable, Disable | Turns the selected rules on or off. |
| Duplicate | Duplicates each selected rule. |
| Tags | Add tags or Delete tags on the selected rules. In the flyout for adding tags, tick Overwrite all selected rules' tags to replace their tags instead. |
| Export | Downloads the selected rules that raise alerts. |
| Delete | Deletes the selected rules. Built-in rules in the selection are skipped, and the confirmation says how many. |
Mute a rule
A muted rule drops its matches. It opens no alerts and sends no notifications until the mute ends. The rule keeps running.
- In the Notify column, select the bell.
- Enter a number and a unit, and select Apply. Or choose 1 hour, 3 hours, 8 hours or 1 day under Commonly used. Or select Mute indefinitely.
- To end a mute early, open the bell again and select Unmute.
The units are minutes, hours, days, weeks and months. A muted rule shows a crossed bell, and its tooltip says Muted until a date or Muted indefinitely. The editor's Actions tab has the same control, Mute.
A rule's details page
Select a rule's name to open its page. The header shows who created and last updated the rule, its Revision number, and its Last response with a refresh button. A note beside them says Notify when alerts generated when an enabled Action Rule names the rule, and No actions when none does.
The header also has the Enable switch, Edit rule settings, and an All actions menu with Duplicate rule, Manual run, Export rule and Delete rule.
| Tab | Shows |
|---|---|
| Overview | About (with Details, Investigation guide and Setup guide views), Definition and Schedule. |
| Alerts | The alerts the rule has raised, with a trend chart. Tick Show building block alerts to include them. |
| Rule exceptions | The rule's exceptions. See Rule exceptions and the suppression list. It is hidden for a building-block Query, New terms or Indicator rule. |
| Execution results | The execution log, gaps and manual runs of a scheduled rule. See Monitor rules. |
Manual run is available only for a scheduled rule that is switched on. If the licence is not active, the item is unavailable and its tooltip gives the reason.