SXMonitorDocs

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.

The Rules page: a toolbar with the search box, Saved searches, Group, Origin, Log type, Add Filter, Import Rules, Export Rules and New Rule, then a table of rules with the Rule Name, Performance, Enabled, Log source, Status, Level and Author columns; a Custom rule tagged On trial sits above System rules

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.

ColumnWhat it shows
Rule NameThe 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.
PerformanceWhat the rule costs the pipeline: Not measured, Within capacity, Nearing capacity or Over capacity.
EnabledThe rule's On/Off switch. A deprecated rule shows Retired.
Log sourceThe 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.
StatusThe rule's maturity: Experimental, Test, Stable or Deprecated.
LevelThe severity of its alerts: Critical, High, Medium, Low or Informational.
AuthorWho wrote a Custom rule, or System for SXMonitor's rules.
Last modifiedWhen the rule last changed.

Search and filter

ControlWhat it does
Search rule…Searches the name, description, tags, ID and author. Type at least three characters.
GroupShows one group's rules, or the Ungrouped ones. See Organise rules in groups.
OriginAll, System or Custom, with the number of rules for each.
Log typeOne or more log types, with the number of rules for each.
Add FilterEvery 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.

The Add Filter panel open over the list, with the State, Rule type, Level, Status, Performance, Rule ID and Author sections, each value showing how many rules it matches

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.

The Columns panel open: Rule Name always shown, seven ticked columns under Shown, and Origin first under Hidden

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.

The Saved searches menu open with the Origin filter set to Custom: Shared with everyone in your tenant, None saved yet, and Save Current Search… ready to click

Create a rule

  1. Click New Rule. New Detection Rule opens on its Rule Detail step.
  2. 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.
  3. 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").
  4. 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.
  5. Under Set Alert Fields, optionally add Reference links, the Fields shown on the alert, known Falsepositives and a Rule Type (TTP, Hunting or Anomaly).
  6. Turn on Enabled if the rule should run at once (a new rule is off), then click Create Rule. The rule's page opens.

The New Detection Rule wizard on its Rule Detail step: Rule Name, Description, Severity set to High, Group set to Ungrouped and the tag attack.t1078, with the Enabled switch, Save Draft and Create Rule at the top right

The Rule Settings step: Log Type set to Application, filed under Other Application, and the Rule Builder with three clauses joined by AND — http_request.url.path starts with /admin/login, http_response.code is 200, src_endpoint.location.country is not DE

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.

A Custom rule's page: the name with the Custom and On trial tags, Experimental status and id, the Enabled switch, Delete, Edit, Assign and Duplicate buttons, and the Rule Detail tab with the description, reference link and the Title, Rule ID, Group, Level, Log source, ATT&CK tags, Origin, Author, Last modified, Version and Summary attributes rows

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.

The ATT&CK Mappings table under the rule record: T1078 Valid Accounts, a technique of Initial Access, Persistence, Privilege Escalation and Stealth, added through the Wizard by the signed-in user, with Add Mapping above the table

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.

The row menu of a Custom rule open on the list, offering Edit, Duplicate, Assign, Move to Group…, Export and Delete

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:

  1. Click Assign on the rule page, or in the row's ⋮ menu.
  2. 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.
  3. Click Assign. Assignment Result shows Assigned, Unassigned or Unchanged for each source. Click Done.

The Assign to Log Source dialog for the demo rule: Other Application, 1 rule, a search box and the log source demo_web_app (Nginx, Webhook, Active) ticked, with Cancel and Assign

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.

  1. Click Group, then Manage Group. The Rule Groups dialog opens.
  2. 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 ✓.
  3. 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.

The Rule Groups dialog with a new group row: an icon picker, Group name set to Demo group, First nested group (optional), Parent set to None (Top level), and the cancel and confirm buttons

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

  1. Click Import Rules to open Import a rule.
  2. Paste a Sigma rule, drop a .yml or .yaml file on the editor, or click Upload a file — one rule per import, up to 64 KiB. Optionally pick a Group.
  3. When the check at the bottom says Ready to import, click Import rule. Otherwise fix the problems it lists.

The Import a rule dialog: an empty YAML editor with Upload a file above it, the Group picker set to Ungrouped (default), and the Cancel and Import rule buttons

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 exportWhat you get
Export full metadataAll fields of every rule (System and Custom, on or off), or of the rules you picked. Deprecated rules are left out.
Export what's displayedThe columns on screen for the rules the current filters match.
Export rule filesA .zip with the Sigma .yml of your own rules, in their group folders. System rules are left out: their logic isn't shared.

The Export Rules dialog opened from one rule's menu, with Export rule files chosen, a note on the group folders in the .zip, and the summary 1 rule · 1 .yml file · ZIP beside Cancel and Export

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.

The Delete Permanently confirmation for the demo rule, explaining that it never left Experimental and is removed for good, with Cancel and Delete Permanently

Next

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