SXMonitorDocs

Sigma Rules

Write a Sigma rule in YAML, convert it to a KQL query, and run it as a search in Search Data.

Sigma is an open, vendor-neutral format for detection logic, widely shared in the security community. On the Sigma Rules pages you paste or write a rule in Sigma's YAML format and SXMonitor converts it to a KQL query. The conversion targets SXMonitor's OCSF schema — the one your events are normalised into — so the query names the fields your events really carry and finds them in Search Data.

You can save each converted rule, run it again on any log source and time range, and keep editing it: SXMonitor keeps every version.

You do not need to know KQL. Write the logic in Sigma YAML and let SXMonitor convert it; you can still adjust the query before each search.

To open the list, go to Watch › Search Data and click Sigma Rules at the right end of the toolbar; the number on the button is how many rules are saved. The button shows only when your role has access to Sigma rules. Every Sigma page starts with the trail Search Data › Sigma Rules, the way back. Links and bookmarks to the old /sigma-rule-converter address still work: they open the new pages.

The Search Data toolbar with the Sigma Rules button and its rule count at the right end, next to Export CSV

1. The rule list

The Sigma Rules page lists the rules you have saved. Search them with Search rule..., narrow them with Status (All, Ready or Draft), and click Convert Sigma Rule to start a new one.

The Sigma Rules page with the breadcrumb Search Data › Sigma Rules, the Search rule box, the Status filter, Refresh, Convert Sigma Rule, and an empty table with the Rule name, Status, Current version, Created date, Updated date and Action columns

ColumnWhat it shows
Rule nameThe name you gave the rule. Click a rule to open its read-only Rule Detail.
StatusReady — converted to KQL and ready to search. Draft — saved before conversion; it cannot run as a search until you edit and convert it.
Current versionThe rule's version, for example v2. It goes up each time you save an update.
Created dateWhen the rule was created, and by whom.
Updated dateWhen the rule last changed, and by whom.
ActionA ⋮ menu: Edit, Duplicate, Run Search and Delete Rule.

2. Convert a rule

The Convert Sigma Rule page after converting a rule: the breadcrumb Search Data › Sigma Rules › Convert Sigma Rule, the Save Rule and Configure KQL & Search buttons, a webserver rule in the Sigma Rule (YAML) editor, and the generated query in the Query (KQL) pane

  1. Click Convert Sigma Rule. The page has two panes: Sigma Rule (YAML) on the left and Query (KQL) on the right.

  2. Write or paste the rule in the left pane. A Sigma rule has a title, a logsource (category and product), a detection block with the conditions, and a condition. The eye icon (View Sample) shows a valid example to copy; Upload File loads a YAML file of up to 1 MB; a saved rule can be at most 64 KiB.

    title: Suspicious admin login
    logsource:
      category: webserver
    detection:
      selection:
        c-uri-stem|contains: '/admin/login'
      condition: selection
    level: medium
  3. Fix what the checker finds. SXMonitor checks the YAML as you type and lists errors with their line — for example a missing detection or condition. Errors block the conversion; warnings, such as a missing id, do not.

  4. Click Convert at the bottom of the page. It activates once the YAML is valid; clicking outside a valid rule also converts it. The right pane shows the KQL, and Conversion successful. KQL query generated. confirms it. The query uses OCSF fields: the rule above becomes class_uid:4002 AND http_request.url.path:*\/admin\/login* — class 4002 is HTTP Activity, and the Sigma field c-uri-stem becomes http_request.url.path. That is why the field names differ from those in your YAML. The pane is read-only; to adjust the query for a search, use Configure KQL & Search.

  5. Click Save Rule and enter a Name. The dialog shows the status the rule will get: Ready when it has a converted query, Draft when not.

The Save Rule dialog with the name Demo – Suspicious admin login entered and the note that the rule will be marked as Ready after saving

3. Manage a rule

ActionWhat it does
EditOpens Edit Sigma Rule: change the name or the YAML and convert again.
DuplicateCopies the rule under a new name, filled in as Name - Copy. Use it to try a variant without touching the original.
Run SearchOpens Configure your KQL for this rule — see Search with a rule.
Delete RuleDeletes the rule and all its versions. For a Draft, confirm with Delete Rule; for a Ready rule, type Delete and click Delete any way.

Save an edited rule

On Edit Sigma Rule, open Save Options and choose:

Save optionWhat it doesWhen to use it
Update to New VersionSaves the changes as the next version of the same rule (for example v1 → v2), with an optional Change note. The previous version stays in the history. When the rule has a query, Save & Run Search also runs the updated rule in Search Data.You refine a rule — tighter logic, more coverage.
Save as New RuleSaves the changes as a separate rule and leaves the original as it was.You want a variant for another use.

Duplicate a rule

Duplicate opens a dialog that names the rule being copied, with its status and version, and previews its content. Change the Name if you like and click Duplicate.

Rule detail and version history

Click a rule in the list to open Rule Detail: the Sigma YAML and the KQL of the current version side by side, with who created and last updated it. From there, Edit opens the editor, Configure KQL & Search runs it, and View History opens Version History. In the history, open any earlier version and Restore This Version to save its content as a new version — the current one stays in the history.

Delete Rule is permanent and removes the version history too. If you may need the rule again, Duplicate it first.

4. Search with a rule

Configure KQL & Search — on the convert and edit pages and in Rule Detail — and Run Search in the list open Configure your KQL.

The Configure your KQL dialog: the editable Query (KQL) holding the converted query, Logsource set to demo_web_app, Time Range set to Last 7 days, and the Cancel and Run Search buttons

  1. Review the query. It is editable here. Your changes apply to this search only; the saved rule does not change.
  2. Check the Logsource. SXMonitor fills in one of your log sources; pick the one you want to search, by the name you gave it.
  3. Choose the Time Range with the same picker as in Search Data. It starts at Last 7 days.
  4. Click Run Search. Search Data opens with the query in the search bar and your log source and time range applied.

Search Data opened from a Sigma rule: a converted query in the search bar, a log source and Last 7 days applied, and the matching events in the results

From there, add filters or columns, and save the search as a view with View › Save as new view — see Search Data.

Next