Detection Rules
Find, write, switch on and assign the Sigma rules that raise your alerts.
Detection rules are the Sigma-based checks SXMonitor runs against the normalised events from your log sources; a match raises an alert. Every tenant gets the System rules that SXMonitor maintains, and your team can add Custom rules — written in the rule wizard or imported from a Sigma file.
A rule raises alerts only while it is switched on and assigned to a log source. By default, rules are assigned automatically to the log sources whose log type matches the rule's log type; you can add or remove assignments with Assign.

To open the list, go to Protect › Detection Rules › Rules.
What you can do depends on your role's permission for Detection Rules (see Role Management): Viewer can browse and export what is displayed, Editor can also create, import, edit, switch, assign and group rules, and Full Access adds Delete and Manage Group.
The rule list
The list shows 20 rules a page (change it with Rows per page), the most recently changed first. Click a rule to open its page, or click the arrows beside a column title to sort the whole list.
| Column | What it shows |
|---|---|
| Rule Name | The name and description. Tags beside the name: Custom (your tenant's rule), On trial (a Custom rule still at Experimental) and Not running (a Custom rule assigned to no log source). The line below lists the ATT&CK techniques and the goal (tactic) the rule maps to. |
| Performance | What the rule costs the pipeline: Not measured, Within capacity, Nearing capacity or Over capacity. |
| Enabled | The rule's On/Off switch. A deprecated rule shows Retired. |
| Log source | The log type the rule checks. A filled dot means it is assigned to at least one log source; point at it to see how many. |
| Status | The rule's maturity: Experimental, Test, Stable or Deprecated. |
| Level | The severity of its alerts: Critical, High, Medium, Low or Informational. |
| Author | Who wrote a Custom rule, or System for SXMonitor's rules. |
| Last modified | When the rule last changed. |
Search and filter
| Control | What it does |
|---|---|
| Search rule… | Searches the name, description, tags, ID and author. Type at least three characters. |
| Group | Shows one group's rules, or the Ungrouped ones. See Organise rules in groups. |
| Origin | All, System or Custom, with the number of rules for each. |
| Log type | One or more log types, with the number of rules for each. |
| Add Filter | Every other filter in one panel: State (All, On, Off), Rule type (TTP, Hunting, Anomaly, Unclassified), Level, Status, Performance, Rule ID (Duplicate id, Missing id) and Author. |

Each filter shows as a chip above the table, such as Origin is Custom. Click a chip's × to remove it, or Clear All to remove every filter (the search stays). Deprecated rules are hidden until you tick Deprecated under Status. The list keeps your search, filters, sort and page while you open a rule and come back in the same browser tab.
Show the Origin column
The Origin column says whether a rule is SXMonitor's (System) or your tenant's own (Custom). It is hidden by default: click Columns above the table and tick Origin under Hidden. The same panel shows Rule ID, Tags, Version and Rule type, and you can drag columns to reorder them. The layout is saved to your account.

Saved searches
A saved search keeps the search text, filters, group and sort under a name, for everyone in your tenant. Set a search, filter or group, open Saved searches (the bookmark at the right end of the search box) and click Save Current Search…; enter a Name and click Save (an existing name is replaced). Click a saved search in the same menu to apply it — each shows how many rules it matches now. Its bin icon deletes it for everyone once you confirm with Delete.

Create a rule
- Click New Rule. New Detection Rule opens on its Rule Detail step.
- Enter a Rule Name and choose a Severity (both required). Optionally
add a Description, a Group and Tags. To map the rule to MITRE
ATT&CK, add the technique as a Sigma tag, such as
attack.t1078. - Open Rule Settings. Under For the Following Source, pick the Log Type: Linux, Windows, Network connection, AWS CloudTrail, Azure, Google Workspace, Google Cloud, macOS or Application. The line below names the log type the rule is filed under (Application is filed under "Other Application").
- Under Detect, build the logic in Rule Builder: click +, then Add Clause (field · operator · value) or Add Block (clauses evaluated together, in brackets). Click AND / OR to switch how rows join; a negative operator such as is not excludes events. To write Sigma YAML instead, switch to Text Editor.
- Under Set Alert Fields, optionally add Reference links, the Fields shown on the alert, known Falsepositives and a Rule Type (TTP, Hunting or Anomaly).
- Turn on Enabled if the rule should run at once (a new rule is off), then click Create Rule. The rule's page opens.


A dot before each step turns blue once the step is complete. New rules always start at Experimental. Save Draft keeps unfinished work without creating the rule; drafts are private, and you reopen one from the arrow next to New Rule, which also shows the date each draft is deleted unless saved again.
The rule page
The header shows the rule's name, tags, maturity and id, with the Enabled switch and the Delete, Edit, Assign and Duplicate buttons (greyed out on a System rule; point at one to see why). Rule Detail shows the description, links and the rule's record, including its Group, Log source, ATT&CK tags, Origin and the Summary attributes shown on its alerts. Rule Settings shows the log type, the logic under Detect (View as Sigma shows the YAML) and the Optional Fields; a System rule's logic is withheld there, its metadata still shown.

ATT&CK Mappings
Below the record, ATT&CK Mappings lists every tactic, technique and sub-technique the rule maps to. Each mapping puts the rule on the MITRE ATT&CK coverage map and is a tag in its YAML. Source says how it was added (Wizard, Import, Manual, Rule Edit, Alert-derived or SXMonitor), beside who added it and when.

To add one to your own rule, click Add Mapping, type an ATT&CK id (T1110, TA0006, T1003.001) or a name, pick it from the list and click Add. Click × at the end of a row to remove it. A System rule's mappings are read-only.
Switch, edit and duplicate a rule
Use the switch in the Enabled column or on the rule page. Switching on takes effect at once; switching off asks you to confirm with Switch Off, and the rule stops checking events until you switch it back on. A Failed or deprecated rule cannot be switched, and one switched off by SXMonitor shows Disabled by SXMonitor.
A row's ⋮ menu offers Edit, Duplicate, Assign, Move to Group…, Export and Delete on your own rules; System rules offer Assign and Export.

- Edit opens Edit Rule with the wizard's two steps; Save Changes replaces the rule where it runs and keeps its status and Rule Type. Only your own rules can be edited, and not once deprecated.
- Duplicate opens New Detection Rule filled with a copy of one of your own rules. Nothing is saved until you click Create Rule.
Assign rules to log sources
Rules are assigned automatically to the log sources whose log type matches. To add or remove assignments for one rule:
- Click Assign on the rule page, or in the row's ⋮ menu.
- Assign to Log Source lists every log source with its Type and Status. The rule ends up on exactly the sources you tick: tick to add, untick to remove.
- Click Assign. Assignment Result shows Assigned, Unassigned or Unchanged for each source. Click Done.

To assign several rules, tick them and click Assign to Log Source in the bar above the table: each is added to every source you tick, and nothing already assigned is removed. To work from a source, click + Assign (or its rule count) on Log Sources to open Assign Detection Rules.
A Failed or Deprecated rule cannot be assigned. A switched-off rule can; it starts checking events once you switch it on.
Organise rules in groups
Groups organise your tenant's own rules for browsing and filtering; moving a rule does not change what it detects.
- Click Group, then Manage Group. The Rule Groups dialog opens.
- Click New Group, choose an icon, enter a Group name and, if needed, a First nested group (optional) and a Parent. Press Enter or click ✓.
- To file a rule, choose Move to Group… in its row's ⋮ menu, pick the Group and click Move. The wizard and the import also offer a group.

Each group row offers Subgroup and a ⋮ menu with Rename, Change icon, Move under another group and Delete group. Groups go two levels deep, and only an empty group can be deleted.
Import a rule
- Click Import Rules to open Import a rule.
- Paste a Sigma rule, drop a
.ymlor.yamlfile on the editor, or click Upload a file — one rule per import, up to 64 KiB. Optionally pick a Group. - When the check at the bottom says Ready to import, click Import rule. Otherwise fix the problems it lists.

An imported rule arrives switched off at Experimental, with a new id. If its title is already taken, you are warned and a second rule is added.
Export rules
Export Rules in the toolbar exports the list, Export in a row's ⋮ menu exports that rule, and Export in the selection bar exports the ticked rules. Pick what to export, a Format (CSV, Excel or JSON) for the first two, and click Export.
| What to export | What you get |
|---|---|
| Export full metadata | All fields of every rule (System and Custom, on or off), or of the rules you picked. Deprecated rules are left out. |
| Export what's displayed | The columns on screen for the rules the current filters match. |
| Export rule files | A .zip with the Sigma .yml of your own rules, in their group folders. System rules are left out: their logic isn't shared. |

CSV, Excel and JSON are for reporting and cannot be imported back; rule files can, one at a time. The full metadata and rule files need the Editor permission.
Delete or deprecate a rule
Only your own rules can be deleted; switch a System rule off instead. Click Delete on the rule page or in the row's ⋮ menu.
- A rule still assigned to log sources lists them first: click Unassign from …, then delete it.
- A rule that never left Experimental is removed for good with Delete Permanently. Alerts it raised stay; export it first if you may want it back.
- A rule at Test or Stable is deprecated instead: it stops matching and leaves the default list, but stays readable for audit under a Deprecated. banner. Optionally name a rule under Replaced by and a Reason, then click Delete Rule. A deprecated rule can't be edited, switched or assigned.

Next
See where your rules sit in MITRE ATT&CK, or triage what they raise in Alerts.