Lesson 8 of 10
MITRE ATT&CK Framework in Practice
MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) is the definitive knowledge base of real-world adversary behavior. It is used for threat intelligence, red team planning, detection engineering, and security assessments.
ATT&CK Structure
# MITRE ATT&CK Enterprise Matrix - 14 Tactics (columns), 200+ Techniques (rows)
TACTICS (phases of an attack):
TA0043: Reconnaissance - gather information about the target
TA0042: Resource Development - establish infrastructure
TA0001: Initial Access - gain a foothold (T1566: Phishing)
TA0002: Execution - run malicious code (T1059: Command/Scripting Interpreter)
TA0003: Persistence - maintain access (T1053: Scheduled Task/Job)
TA0004: Privilege Escalation - gain higher privileges (T1068: Exploit Vuln)
TA0005: Defense Evasion - avoid detection (T1055: Process Injection)
TA0006: Credential Access - steal credentials (T1003: OS Credential Dumping)
TA0007: Discovery - learn about the environment (T1082: System Info)
TA0008: Lateral Movement - move to other systems (T1021: Remote Services)
TA0009: Collection - gather data (T1005: Data from Local System)
TA0011: Command & Control - communicate with compromised systems
TA0010: Exfiltration - steal data (T1041: Exfil over C2 Channel)
TA0040: Impact - disrupt/destroy (T1486: Data Encrypted for Impact)
# Example: Ransomware attack mapped to ATT&CK
T1566.001: Spearphishing Attachment (Initial Access)
T1204.002: Malicious File (Execution - user opens attachment)
T1059.001: PowerShell (Execution - macro runs PowerShell)
T1003.001: LSASS Memory (Credential Access - Mimikatz)
T1021.002: SMB/Windows Admin Shares (Lateral Movement)
T1490: Inhibit System Recovery (Impact - delete VSS)
T1486: Data Encrypted for Impact (Impact - ransomware)Using ATT&CK for Detection Engineering
# Coverage assessment with ATT&CK Navigator
# Step 1: Download ATT&CK Navigator (https://mitre-attack.github.io/attack-navigator/)
# Step 2: Color techniques by detection coverage:
# Red = No detection
# Yellow = Partial detection (logged but no alert)
# Green = Detected and alerted
# Step 3: Identify critical gaps (especially for techniques used by
# APTs targeting your industry)
# Example: Building detection for T1053.005 - Scheduled Task Persistence
# Data sources needed: Windows Event Log 4698 (Task Created), 7045, PowerShell logs
# Sigma rule for scheduled task creation
title: Suspicious Scheduled Task Creation
status: experimental
description: Detects suspicious scheduled task creation with suspicious paths or commands
logsource:
product: windows
category: process_creation
detection:
selection:
EventID: 4698
suspicious_content:
TaskContent|contains:
- 'powershell'
- 'cmd /c'
- 'wscript'
- 'cscript'
- 'regsvr32'
- 'rundll32'
condition: selection and suspicious_content
falsepositives:
- Legitimate software may create scheduled tasks with these binaries
level: medium
tags:
- attack.persistence
- attack.t1053.005
# Convert Sigma to your SIEM:
# sigma convert -t splunk sigma_rule.yml
# sigma convert -t elastic sigma_rule.ymlCommon Mistakes
- Using ATT&CK as a compliance checklist rather than a living threat model - ATT&CK is updated quarterly; regularly reassess coverage against the latest techniques
- Implementing all mitigations equally - prioritize mitigations for techniques used by adversaries targeting your specific industry (financial sector, healthcare, etc.) using ATT&CK Groups data
- Confusing techniques with sub-techniques - T1059 (Command and Scripting Interpreter) is general; T1059.001 (PowerShell) is specific. Detection and coverage tracking must be at the sub-technique level
Tip
Tip
Practice MITRE ATTCK Framework in Practice in small, isolated examples before integrating into larger projects. Breaking concepts into small experiments builds genuine understanding faster than reading alone.
The foundational security model: Confidentiality (privacy), Integrity (trust), and Availability (uptime).
Practice Task
Note
Practice Task - (1) Write a working example of MITRE ATTCK Framework in Practice from scratch without looking at notes. (2) Modify it to handle an edge case (empty input, null value, or error state). (3) Share your solution in the Priygop community for feedback.
Quick Quiz
Common Mistake
Warning
A common mistake with MITRE ATTCK Framework in Practice is skipping edge case testing - empty inputs, null values, and unexpected data types. Always validate boundary conditions to write robust, production-ready cybersecurity code.
Key Takeaways
- MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) is the definitive knowledge base of real-world adversary behavior.
- Using ATT&CK as a compliance checklist rather than a living threat model - ATT&CK is updated quarterly; regularly reassess coverage against the latest techniques
- Implementing all mitigations equally - prioritize mitigations for techniques used by adversaries targeting your specific industry (financial sector, healthcare, etc.) using ATT&CK Groups data
- Confusing techniques with sub-techniques - T1059 (Command and Scripting Interpreter) is general; T1059.001 (PowerShell) is specific. Detection and coverage tracking must be at the sub-technique level
Finished this lesson?