A detection library without a naming and tagging standard becomes unsearchable within a year: nobody can find the rule for a technique, tell which rules are orphaned, or report ATT&CK coverage without a spreadsheet exercise. This template is a ready-to-adapt standard that fixes how detection rules are identified, named, tagged, rated, owned and retired. It aligns with the Sigma rule specification (version 2.1.0) so the same metadata works in Sigma files, SIEM rule names and coverage reports, and it accounts for the MITRE ATT&CK v20 tactic changes. Each numbered section can be copied into your own standard, with fill-in values marked [like this]. It is written for detection engineering leads and SOC managers who maintain rules across one or more SIEM, EDR or data lake platforms. For the record that documents each rule's purpose and response, use the companion Detection Rule Documentation Template.
How to use this template
- Adopt, then adapt: keep sections 3 to 7 close to the text below, because they drive tooling. Change the prefixes, platform codes and review periods to suit [Organisation].
- Enforce in the pipeline: a standard that is only written down drifts. Validate the ID, name, file name and required tags in continuous integration so a non-compliant rule cannot merge. See the Detection as Code Guide.
- Apply to new rules first: migrate existing rules in batches by platform, recording old identifiers with the Sigma
relatedtyperenamedso history is not lost. - Vendor content counts: rules shipped by a SIEM or EDR vendor still need an owner, tags and a lifecycle state in your register, even if you cannot rename them in the product.
- Keep it short: the standard should fit on a few pages. Put rationale in this guidance, not in the standard.
1. Purpose
1.1 This standard defines how [Organisation] identifies, names, tags, rates, owns and retires detection rules, so that every rule can be found, attributed to an owner, mapped to adversary behaviour and measured.
1.2 It supports the detection objectives in [Security Operations Policy reference] and the continuous monitoring requirements of [framework, for example NIST CSF 2.0 DE.CM and DE.AE].
1.3 Rules that do not meet this standard shall not be promoted to production status.
2. Scope
2.1 This standard applies to every detection that can create an alert, case, notable event or enrichment in [list platforms: SIEM, EDR, cloud security posture tools, data lake, email security, identity threat detection].
2.2 It covers rules written in Sigma and in native query languages, correlation rules, threshold rules, anomaly and model-based detections, building-block rules that feed other rules, and vendor-supplied rules enabled by [Organisation].
2.3 It does not cover threat hunting queries that are run manually and never scheduled, unless they are saved for reuse, in which case they are tagged with detection.threat-hunting.
2.4 Owners: the Detection Engineering Lead owns this standard; it is reviewed every [12] months.
3. Rule ID format
3.1 Every rule shall carry two identifiers:
| Identifier | Format | Example | Purpose |
|---|---|---|---|
| Immutable ID | Random UUID version 4, as the Sigma id field | 929a690e-bef0-4204-a928-ef5e620d6fcc | Machine reference that never changes, used for correlation, deduplication and history |
| Short ID | [PREFIX]-[PLATFORM]-[NNNN] | DET-WIN-0142 | Human reference used in tickets, alert titles and conversation |
3.2 Short IDs are issued sequentially per platform code from the rule register and are never reused, even after a rule is retired.
3.3 Platform codes (adapt as needed):
| Code | Platform or log domain | Code | Platform or log domain |
|---|---|---|---|
| WIN | Windows endpoints and servers | AWS | Amazon Web Services control plane |
| LNX | Linux | AZR | Microsoft Azure and Entra ID |
| MAC | macOS | GCP | Google Cloud |
| NET | Network and proxy | SAAS | SaaS applications |
| IDP | Identity providers and directory | K8S | Kubernetes and containers |
| EML | APP | Custom application logs |
3.4 When a rule is materially rewritten (new detection logic, not tuning), it receives a new immutable ID and links the old one with the Sigma related field using type obsolete. When a rule is split or copied for another log source, use derived or similar; when rules are combined, use merged.
3.5 Rule versions follow [semantic versioning: major for logic changes, minor for tuning, patch for metadata], recorded in the rule register. The Sigma modified date is updated when the title, detection section, level, log source or status to deprecated changes, as the Sigma specification lists.
4. Naming convention
4.1 Title: the title states the single behaviour the rule detects, in plain English, in the pattern [Behaviour] [Object or target] [Qualifier]. The Sigma specification limits titles to 256 characters; [Organisation] limits them to [80] so they display fully in alert queues.
| Avoid | Use instead | Why |
|---|---|---|
| Suspicious PowerShell | PowerShell Encoded Command Launched by Office Application | States the behaviour and the context that makes it suspicious |
| Mimikatz | LSASS Process Memory Read by Unsigned Binary | Names behaviour rather than a tool, so it survives tool changes |
| AWS Rule 7 | CloudTrail Logging Stopped on Production Trail | Readable without opening the rule |
| Bad login | Service Account Interactive Sign-in from New Country | Identifies the identity type and the anomaly |
4.2 Alert display name: in each platform the rule's display name shall be [Short ID] [Title], for example DET-WIN-0142 LSASS Process Memory Read by Unsigned Binary, so analysts can search by either.
4.3 File name: Sigma rule files follow the Sigma specification: 10 to 70 characters, lowercase letters and digits only, underscores instead of spaces, and the .yml extension. [Organisation] starts file names with a log source prefix, for example proc_creation_win_lsass_memory_read_unsigned.yml or aws_cloudtrail_logging_stopped.yml.
4.4 Unique name for correlation: where a rule is referenced by a Sigma correlation rule, set the optional Sigma name field to a unique lowercase identifier, for example win_lsass_memory_read_unsigned, which the specification provides to make correlation rules readable.
4.5 Forbidden in names: customer names, personal names, hostnames, internal IP addresses, ticket numbers and words such as "test", "new" or "v2". Put those in the description or register.
5. Required tags (ATT&CK, data source, platform)
5.1 Tags follow the Sigma syntax: lowercase letters, numerals, underscores and hyphens, no spaces, namespaces separated by a dot. A rule shall carry the tags below before it can reach test status.
| Tag group | Format | Example | Rule |
|---|---|---|---|
| ATT&CK technique | attack.t#### or attack.t####.### | attack.t1003.001 | Mandatory, at least one; use the most specific sub-technique you can justify |
| ATT&CK tactic | attack.[tactic-short-name] | attack.credential-access | Mandatory; one per tactic the technique serves in this rule's context |
| ATT&CK group or software | attack.g####, attack.s#### | [only when the rule is specific to that actor or tool] | Optional |
| Rule type | detection.[type] | detection.emerging-threats | Use the Sigma values dfir, emerging-threats, threat-hunting where they apply |
| CVE | cve.yyyy-nnnnn | cve.2021-44228 | Mandatory for vulnerability exploitation rules |
| D3FEND | d3fend.d3-[abbr] | d3fend.d3-am | Optional; maps the defensive technique |
| Robustness | stp.[1-5] or stp.[1-5][a|u|k] | stp.3k | Recommended; MITRE Summiting the Pyramid score as defined in the Sigma tags appendix |
| Sharing | tlp.[level] | tlp.amber | Mandatory if the rule contains sensitive indicators; values red, amber, amber-strict, green, clear |
| Platform | Sigma logsource product and service | product: windows, category: process_creation | Mandatory; do not duplicate as free-text tags |
| Identity type (custom) | [org].identity.[type] | acme.identity.service-account | Mandatory where the rule targets a specific identity type: human, privileged, service-account, workload, agent |
5.2 ATT&CK version: record the ATT&CK version used for mapping in the rule register (currently [v20]). ATT&CK v20 renamed tactic TA0005 to Stealth and added TA0112 Defense Impairment, while the Sigma tags appendix version 2.1.0 still lists defense-evasion for TA0005. [Organisation] shall use the tactic short names from the ATT&CK version recorded (attack.stealth, attack.defense-impairment) and translate older tags in the coverage pipeline rather than by hand. For example, a rule that detects T1685.001 Disable or Modify Windows Event Log is tagged attack.t1685.001 and attack.defense-impairment.
5.3 Data source: describe the required telemetry in the Sigma logsource block, and use its definition field for the exact configuration needed (for example "Sysmon Event ID 10 with ProcessAccess filter including lsass.exe"). The Sigma specification notes that converters do not evaluate definition, so it is guidance for people. In ATT&CK v20 the older data source objects (DS IDs) are deprecated, so do not use attack.ds#### tags for new rules; map telemetry to ATT&CK data components in the coverage tool if you need that view.
5.4 Custom namespaces: organisation-specific tags use a single prefix, [acme], so they never collide with Sigma namespaces. Approved custom tags are listed in [register location]; new ones need Detection Engineering Lead approval.
See the MITRE ATT&CK Guide for Defenders for mapping practice.
6. Severity and confidence
6.1 Each rule carries a Sigma level, which sets default alert severity, and a confidence rating in the register. The Sigma specification defines five levels; [Organisation] applies them as follows.
| Level | Sigma definition (summary) | [Organisation] criteria | Default handling |
|---|---|---|---|
informational | For enrichment; no case or alert expected because of high match volume | Building-block or context rules | No alert; feeds correlation and hunting |
low | Notable but rarely an incident; relevant in numbers or combination | Expected false positive rate above [20] per cent, or low-impact behaviour | Aggregated; reviewed [weekly] |
medium | Relevant event to be reviewed manually more frequently | Plausible attacker behaviour with known benign causes | Queue; triage within [8] hours |
high | Should trigger an internal alert and prompt review | Strong attacker indicator, or medium behaviour on a critical asset or privileged identity | Alert; triage within [1] hour |
critical | Indicates an incident; used only where probability borders certainty | Validated true positive pattern with near-zero benign causes | Page on-call; triage within [15] minutes |
6.2 Confidence is rated High (validated with a true positive test and under [5] per cent false positives over [30] days), Medium (validated, false positive rate not yet measured) or Low (not yet validated). A rule with Low confidence shall not carry high or critical.
6.3 Platforms may raise severity at alert time using asset criticality or identity privilege. The rule's own level is the baseline and is not edited per environment; use the Sigma scope field or a separate rule variant linked with similar where the behaviour genuinely differs.
7. Ownership and review
7.1 Every production rule shall have the following fields in the rule register. Sigma allows arbitrary custom fields, so these may also live in the rule file.
| Field | Content | Required |
|---|---|---|
author | Who wrote the rule (Sigma field) | Yes |
owner (custom) | Team name, not an individual, accountable for tuning and validation | Yes |
date / modified | ISO 8601 YYYY-MM-DD, as the Sigma specification requires | Yes |
review_due (custom) | Next review date | Yes |
references | Threat intelligence, research or incident that motivated the rule | Yes for production |
falsepositives | Known benign causes | Yes |
test_case (custom) | Link to the true positive test or emulation | Yes for stable |
runbook (custom) | Link to the documentation record and response steps | Yes for high and critical |
7.2 Review cadence: critical and high rules every [6] months; medium and low every [12] months; additionally after any log source change, platform migration, related incident or ATT&CK version update.
7.3 A review confirms the log source still flows, the true positive test still fires, the false positive rate is within the confidence band, and tags and level are still correct.
7.4 When an owning team is disbanded or reorganised, its rules transfer to [Detection Engineering] within [30] days. Rules with no owner for more than [30] days move to test status.
8. Lifecycle states
8.1 [Organisation] uses the Sigma status values so the rule file and register agree.
| Status | Sigma meaning (summary) | Entry criteria at [Organisation] | Alerting |
|---|---|---|---|
experimental | May be noisy or produce false positives | Peer reviewed; IDs, name and mandatory tags present | Silent or to an engineering queue |
test | Mostly stable; may need slight environment adjustments | True positive test passed; [14] days of tuning data | Low-priority SOC queue |
stable | May be used in production systems or dashboards | Confidence Medium or High; owner, runbook and review date set | Production at its level |
deprecated | Replaced or covered by another rule, linked with related | Replacement is stable | Disabled after [30] days of overlap |
unsupported | Cannot be used in its current state | Log source unavailable or format unsupported | Disabled; reviewed at next log source change |
8.2 Retired rules are kept in version control with their immutable and short IDs; their IDs are never reissued.
Implementation guidance
- Build the register first: export every enabled rule from each platform with its current name, owner if known and status. This is your baseline and usually reveals duplicates and orphans.
- Agree prefixes and platform codes: settle section 3 with the platform owners before issuing any short IDs.
- Add pipeline checks: validate UUID format, short ID uniqueness, title length, the Sigma file name rules, mandatory tags and a permitted
levelandstatus, and fail the merge if any check fails. - Pilot on one platform: migrate one platform's rules, record old identifiers with
relatedtyperenamed, and confirm alert routing and dashboards still work before moving on. Roll back by restoring the previous display names from the register export. - Generate coverage from tags: build the ATT&CK coverage view from
attack.*tags automatically, translating tactic names across ATT&CK versions in one place. - Schedule reviews: create review tickets from
review_dueautomatically.
Measuring adoption
- Compliance rate: percentage of production rules passing all naming and tagging checks (target 100 per cent).
- Orphaned rules: production rules with no valid owner (target zero).
- Overdue reviews: rules past
review_due. - Validated coverage: ATT&CK techniques covered by at least one
stablerule with High confidence, as distinct from techniques merely tagged. - Severity accuracy: share of
highandcriticalalerts closed as true positives.
See the Detection Engineering Metrics and KPIs Guide for more measures.
Common mistakes
- Tagging every plausible technique: inflates coverage reports. Tag what the rule actually detects.
- Tool names in titles: rules named after one tool miss its replacements and mislead analysts.
- Individuals as owners: rules become orphaned when people leave. Own by team.
- Editing levels per tenant: breaks comparability; use variants or alert-time enrichment instead.
- Mixed ATT&CK versions: old
defense-evasiontags beside newstealthtags split coverage unless translated.
Framework mapping and references
| Framework | Reference | How this standard supports it |
|---|---|---|
| NIST CSF 2.0 | DE.CM-01, DE.AE-02 | Monitored networks and analysed adverse events, with traceable rules |
| NIST SP 800-53 Rev. 5 | SI-4 System Monitoring; AU-6 Audit Record Review, Analysis, and Reporting | Documented, owned monitoring content |
| MITRE ATT&CK v20 | Technique and tactic IDs | Consistent mapping for coverage reporting |
- SigmaHQ: Sigma Rules Specification
- SigmaHQ: Sigma Tags Appendix
- MITRE: ATT&CK
- MITRE Center for Threat-Informed Defense: Summiting the Pyramid
- FIRST: Traffic Light Protocol
Related NHI Mgmt Group resources: Detection Rule Documentation Template · Detection Engineering Guide · Detection as Code Guide · Identity detection rule pack