Ravindra BagaleCourses & study guides Track your progress

Guides

MITRE ATT&CK + Your First Sigma Detection Rule (Defence)

MITRE ATT&CK is a public knowledge base of adversary tactics and techniques that blue teams use to describe behaviour in a shared language. Sigma is an open detection rule format (YAML) you can translate into SIEM queries — so your first detection engineering habit is: map a technique → write a defensive rule → test on lab logs → tune false positives. No exploit PoCs here.

Friends! ATT&CK = shared vocabulary of attacker behaviour (T-numbers). Sigma = detection rule YAML — converts into Splunk/Sentinel/Elastic. Today first defence-rule mindset: logsource, detection, false positives, ATT&CK mapping. No attack payload crafting. Own lab logs only.

Quick answer

ATT&CK + first Sigma rule (defence):

  1. Pick one technique that matches logs you actually have (for example process create).
  2. Read the ATT&CK technique page for data sources and defensive notes — ignore offence how-tos.
  3. Draft a Sigma rule: title, status, logsource, detection conditions, level, tags (attack.txxxx).
  4. Convert / paste into your lab SIEM or use a Sigma CLI converter offline.
  5. Replay known-good lab activity; measure false positives.
  6. Tune allow-lists carefully; document why.
  7. Attach a response hint: who to page, what to isolate, which IR step.

Tiny mental model:

ATT&CK technique → telemetry you own → Sigma YAML → SIEM alert → triage notes
Rule without telemetry = fiction
Rule without tuning = pager death

What do I need before this guide?

How do ATT&CK and Sigma fit together?

MITRE ATT&CK mapped to a Sigma detection rule ATT&CK techniques become Sigma rules that a SIEM can use for blue-team detection. ATT&CKtechnique IDe.g. T1059 SigmaYAML rulelogsource + detect SIEMalertblue team map

ATT&CK techniques map to Sigma YAML rules that a SIEM turns into blue-team alerts — test and tune in lab first.

  1. Tactics — the adversary goal stage (for example Execution, Persistence) — the column headers in ATT&CK.
  2. Techniques / sub-techniques — how (IDs like T1059 style) — use them as tags, not as attack manuals.
  3. Data sources — what logs you need (process monitoring, command history, network).
  4. Sigma — vendor-neutral detection logic focused on fields defenders already collect.
  5. Detection-as-code — rules in git, reviewed like application code, tested before prod.

Educational warning: this guide teaches detection. Do not use ATT&CK pages as a cookbook to attack systems. Lab generation of benign events only, on machines you own, or under written authorisation.

Real incident: SolarWinds (2020) — mapping behaviour mattered

Public reporting on the SolarWinds / SUNBURST supply-chain intrusion described stealthy follow-on activity across cloud and identity systems. Defenders worldwide used shared behavioural vocabularies (including ATT&CK-style mapping in public reporting and hunting guides) to ask: which techniques apply to our telemetry, and which detections were missing?

Takeaways (vertical):

  1. What happened — trusted update path abused; long dwell time in some environments.
  2. What went wrong (theme) — subtle identity and admin behaviours under-detected.
  3. Care-take — map crown-jewel abuse paths to techniques you can actually alert on.
  4. Care-take — third-party software integrity belongs in detection and procurement (see SBOM guide).
  5. Care-take — share detections as code so one analyst’s lesson helps the whole SOC.
  6. Bonus parallel — many IR reports now include ATT&CK heat maps for executives — useful if honest about coverage gaps.

Red Team vs Blue Team (awareness only)

Red Team — what attackers try

  • Prefer techniques that look like normal admin work.
  • Rotate tooling faster than signature lists.
  • Test whether your detections are brittle string matches.

Blue Team — defend, detect, respond

  • Cover critical techniques with layered rules (endpoint + identity + network).
  • Prefer behaviour + context over single scary filename.
  • Track coverage: “which techniques have any high-quality detection?”
  • After incidents: add/adjust Sigma (or native) rules, not only slides.

How do I write a first Sigma rule step by step?

Step 1 — Choose a beginner-friendly technique

  1. Prefer something your lab already logs (Sysmon process create is ideal).
  2. Example theme: unusual scripting host launched by Office — tune heavily; treat as educational pattern, not a paste-into-prod nuke.
  3. Read official ATT&CK detection and mitigation sections only for defensive ideas.

Step 2 — Sketch fields before YAML

  1. Which logsource product / category / service?
  2. Which fields: Image, ParentImage, CommandLine?
  3. What is the rare condition vs everyday noise?
  4. What will you allow-list (update agents, security tools)?

Step 3 — Draft YAML structure (illustrative, defensive)

title: Lab - Suspicious Script Host Parent (Educational)
id: 00000000-0000-4000-8000-000000000001
status: experimental
description: Educational Sigma sketch — test only in your lab SIEM.
references:
  - https://attack.mitre.org/
author: LearnFast Academy lab
date: 2026/09/29
logsource:
  product: windows
  category: process_creation
detection:
  selection_parent:
    ParentImage|endswith:
      - '\\WINWORD.EXE'
      - '\\EXCEL.EXE'
  selection_child:
    Image|endswith:
      - '\\cmd.exe'
      - '\\cscript.exe'
  condition: selection_parent and selection_child
falsepositives:
  - Rare legitimate macros in controlled business apps (validate before prod)
level: medium
tags:
  - attack.execution
  - attack.t1059

This is a pattern sketch for learning structure — not a guaranteed production rule. Always test.

Step 4 — Test in lab

  1. On your Windows lab with Sysmon, create a benign controlled parent/child event if policy allows (for example open a test document that launches a helper you wrote) — or replay recorded sample logs.
  2. Confirm the rule fires.
  3. Perform normal Office work; list false positives.
  4. Tighten fields (full paths, signed parent, user context) before any wider deploy.

Step 5 — Operationalise

  1. Store rule in git with PR review.
  2. Map alert → playbook (isolate host? disable user? open IR?).
  3. Review weekly hits; demote noisy rules.
  4. Tag ATT&CK IDs so coverage dashboards stay honest.

Step 6 — Grow coverage deliberately

  1. Identity: rare MFA changes, new inbox rules.
  2. Cloud: unusual IAM failures / Disable logging APIs (high-level).
  3. Network: beacon-like regularity is advanced — start simpler.
  4. One solid rule per sprint beats fifty untested copies from the internet.

Ravindra Bagale's Tip

💡 Students import 200 Sigma rules from GitHub to "become detection engineers" — the SIEM goes red-hot. One rule, lab test, false-positive diary, then a second rule. Do not paint the ATT&CK heatmap red — leave grey where you lack telemetry. Honest coverage > pretty matrix. Stay alert!

Care-take — detection engineering hygiene

  1. Experimental → tested → production statuses mean something — use them.
  2. Every prod rule has an owner and a last-reviewed date.
  3. Secrets never belong inside rule sample logs committed to public repos.
  4. Pair preventative controls (ASR, M365 policies) with detections — do not detect-only forever.
  5. Purple-team lightly: ask a trusted tester to generate authorised benign artefacts that should hit your rule.
  6. Legal / ethics: only authorised testing.

How do I fix common ATT&CK / Sigma mistakes?

Ghabru naka 😅 — these are the usual ones:

Symptom Likely cause Fix
Rule never fires Wrong logsource / fields Validate field names on a raw event first
Rule always fires Too broad Image endswith Add parent + path + user context; allow-list
Heat map “full” Tags without telemetry Grey out gaps; ship logs first
Copy-paste internet rule breaks Product field mismatch Convert carefully; test
Alert without playbook Detection vanity Link IR steps in the rule description
YAML parse errors Indentation / tabs Use spaces; validate with a linter

Try it at home

Educational lab only:

  1. Open ATT&CK; pick one technique; write its ID and required data source in one sentence.
  2. Copy the YAML sketch above into a text file; rename title; keep status experimental.
  3. On your lab SIEM (Wazuh / Elastic / Splunk trial — whatever you run locally), convert or recreate the logic.
  4. Write five false-positive ideas before enabling noisy fields.
  5. Do not drop untested rules into a workplace SIEM without change control.

Got it? ATT&CK = shared language. Sigma = portable detection YAML. Test + tune the first rule in lab — no GitHub dump. Map technique tags honestly. Defence only. Next: learn cloud IAM least privilege.

Frequently asked questions

What is MITRE ATT&CK?

A public knowledge base of adversary tactics and techniques used as a shared defensive language.

What is Sigma?

An open YAML detection rule format that converts into many SIEM query languages.

Should I import hundreds of rules at once?

No. One tested rule with notes beats a noisy dump that trains analysts to ignore alerts.

Do ATT&CK heat maps prove coverage?

Only if tags match real telemetry and tested detections — grey out honest gaps.

Is this for attacking systems?

No. Detection engineering on authorised labs only.

Where are deeper lessons?

SOC alert-triage and detection-minded IDS chapters on this site.