Security Operations
Level 1: Quick Reference
Incident Response Lifecycle (NIST 800-61 Rev 2)
1. PREPARATION - Policies, tools, training, communication plans
2. DETECTION - SIEM alerts, log analysis, threat intelligence
3. CONTAINMENT - Isolate, remove threat, restore operations
4. POST-INCIDENT - Lessons learned, documentation, improvement
SOC Tiers
| Tier |
Role |
Responsibilities |
| T1 |
Alert Triage |
Monitor SIEM, validate alerts, categorize, escalate |
| T2 |
Incident Response |
Investigation, forensics, containment |
| T3 |
Threat Hunting |
Proactive hunting, APT detection, automation |
Incident Severity Classification
| Severity |
Impact |
Response Time |
Escalation |
| Critical |
Business-critical compromised, active exfiltration |
<15 min |
CISO, Legal |
| High |
Multiple systems, potential breach |
<1 hour |
Tier 3, Management |
| Medium |
Single system, contained threat |
<4 hours |
Tier 2 |
| Low |
Failed attack, no impact |
<24 hours |
Tier 1 |
Essential SIEM Queries
Failed Login Attempts (Splunk):
index=security sourcetype=auth action=failure
| stats count by user, src_ip
| where count > 5
Privilege Escalation (Azure Sentinel):
SecurityEvent
| where EventID == 4672
| where AccountType == "User"
| summarize count() by Account, Computer
Security Metrics Targets
- MTTD (Mean Time To Detect): <1 hour for critical
- MTTR (Mean Time To Respond): <4 hours for critical
- False Positive Rate: <10%
Level 2: Implementation Guide
Full Examples: See REFERENCE.md for complete code samples, detailed configurations, and production-ready implementations.
SOC Team Structure
Core Roles:
- SOC Manager: Strategic planning, metrics reporting, policy development
- Tier 1 Analyst: 24/7 SIEM monitoring, alert validation (NIST SI-4)
- Tier 2 Analyst: Deep investigation, forensics, containment (NIST IR-4, IR-6)
- Tier 3 Analyst: Threat hunting, APT detection, tool development (NIST IR-5, AU-6)
- Incident Commander: Major incident coordination, stakeholder communication
Essential Tools:
- SIEM: Splunk ES, Elastic Security, Azure Sentinel, QRadar
- EDR: CrowdStrike, Microsoft Defender, Carbon Black
- Threat Intel: MISP, ThreatConnect, STIX/TAXII feeds
- Forensics: Volatility (memory), Autopsy (disk), Wireshark (network)
Incident Response Phases
Phase 1: Preparation (IR-4)
- IR team structure with roles and on-call rotation
- Communication plan (internal, external, regulatory)
- Forensic toolkit (jump bag with evidence collection tools)
- Quarterly tabletop exercises and annual red team tests
See REFERENCE.md for team structure template.
Phase 2: Detection & Analysis (SI-4, AU-6)
Alert Triage Process:
- Initial Validation (5 min): True/false positive, OSINT lookup, asset criticality
- Scoping (15-30 min): Timeline, affected systems, data at risk, persistence
- Categorization: Incident type, severity, confidence level
Detection Source Priorities:
- High Fidelity: EDR behavioral alerts, IDS signature matches, threat intel IOC hits
- Medium Fidelity: UEBA anomaly detection, DLP violations
- Low Fidelity: Generic firewall denies, vulnerability scanner findings
See REFERENCE.md for detection source matrix.
Phase 3: Containment & Eradication (IR-4)
Short-Term Containment (<15 min):
- Isolate host (EDR quarantine, VLAN switch)
- Block malicious IPs/domains at firewall
- Disable compromised accounts
- Preserve evidence (memory dump, disk image)
Long-Term Containment (1-4 hours):
- Implement network segmentation
- Apply emergency patches
- Enhanced monitoring on related systems
Eradication Checklist:
- Remove malware persistence (scheduled tasks, services, registry)
- Reset compromised credentials
- Patch exploited vulnerabilities
See REFERENCE.md for isolation commands.
Phase 4: Recovery & Post-Incident (IR-5)
Recovery Steps:
- Rebuild from known-good backup or gold image
- Force password reset for affected accounts
- Deploy additional sensors on recovered systems
- Create custom SIEM alerts for re-infection indicators
Post-Incident Review (within 2 weeks):
- Timeline of events
- What went well / needs improvement
- Action items with owners and due dates
- Evidence retention (1 year minimum, legal hold: 7+ years)
See REFERENCE.md for post-incident report template.
SIEM Configuration
Critical Log Sources:
- Authentication (AD, VPN, SSO)
- Network (firewalls, proxies, DNS)
- Endpoints (EDR, AV, Windows/Linux logs)
- Cloud (CloudTrail, Azure Activity, GCP Audit)
- Applications (web servers, databases, email gateways)
Correlation Rules to Implement:
- Brute force detection (failed logins followed by success)
- Data exfiltration (large uploads to external destinations)
- Privilege escalation (user added to admin groups)
- Lateral movement (SMB access patterns)
- Beaconing detection (consistent connection intervals)
See REFERENCE.md for log source configuration.
Threat Hunting
Hypothesis-Driven Process:
- Formulate: "Attackers using stolen credentials for file share access"
- Define Success: Unauthorized access outside business hours
- Collect Data: SMB Event 5140, user access patterns
- Analyze: Cross-reference with UEBA baseline
- Document: Create IOCs, update SIEM alerts
Data-Driven Techniques:
- Stack counting for rare process execution
- Beaconing detection via connection interval analysis
- Anomaly detection in network traffic patterns
See REFERENCE.md for beaconing detection script.
Incident Response Playbooks
Phishing Response
- Contain: Quarantine email, block sender, disable compromised accounts
- Analyze: Extract headers, sandbox attachments, check for payload delivery
- Eradicate: Remove malware, reset passwords
- Recover: Restore files, re-enable accounts
- Improve: Update phishing training, add IOCs to threat intel
Ransomware Response
- Contain: Isolate immediately, identify variant, preserve memory
- Assess: Count encrypted systems, identify affected data, verify backups
- Eradicate: Do NOT pay ransom, wipe systems
- Recover: Restore from backups, rebuild from gold image
- Improve: Review backup strategy, implement application whitelisting
Data Breach Response (IR-6)
- Contain: Revoke credentials, block attacker IPs
- Scope: What data accessed, how many records, timeline
- Notify: Legal counsel immediately, then regulators per requirements:
- GDPR: 72 hours
- HIPAA: 60 days
- CCPA: If >500 CA residents
- Communicate: Draft notifications (legal review required), offer credit monitoring
- Remediate: Fix vulnerability, implement additional controls, third-party audit
Digital Forensics Quick Reference
Memory Capture:
# Linux (LiME)
sudo insmod lime-$(uname -r).ko "path=/tmp/memory.lime format=lime"
# Windows (WinPmem)
.\winpmem.exe memory.raw
Disk Imaging:
# Create forensic image
sudo dd if=/dev/sda of=/mnt/evidence/disk.img bs=4M conv=noerror,sync
sha256sum /mnt/evidence/disk.img > disk.img.sha256
See REFERENCE.md for complete forensics procedures.
Security Operations Best Practices
Efficiency Tips:
- Automate Tier 1: SOAR for common playbooks, auto-enrich with threat intel
- Reduce Alert Fatigue: Tune rules quarterly, use risk-based alerting
- Continuous Improvement: Post-incident reviews, track false positive sources
- Training: GCIH, GCFA, hands-on labs (TryHackMe, CyberDefenders)
Common Pitfalls:
- Alert overload from untuned rules
- Inadequate documentation (every incident needs a ticket)
- Poor stakeholder communication
- Untested backup restore processes
Level 3: Deep Dive Resources
Bundled Templates
templates/incident-response-playbook.md - Complete IR playbooks with NIST mappings
templates/siem-queries.md - 50+ production SIEM queries by MITRE ATT&CK
scripts/forensics-collection.sh - Automated evidence collection
templates/post-incident-report.md - Root cause analysis template
templates/security-metrics-dashboard.json - Grafana dashboard
resources/nist-ir-controls.md - NIST 800-61/800-53 mapping
Certifications
- GCIH: GIAC Certified Incident Handler
- GCFA: GIAC Certified Forensic Analyst
- GCIA: GIAC Certified Intrusion Analyst
- OSCP: Offensive Security (attacker mindset)
Key References
Open-Source Tools
- SIEM: Wazuh, Elastic Security, Graylog
- Threat Intel: MISP, AlienVault OTX
- Forensics: Volatility, Autopsy, Wireshark
Summary
Key Takeaways:
- SOC operates in three tiers with escalating expertise
- Incident response follows four phases: Prepare, Detect, Contain, Review
- SIEM correlation rules detect common attack patterns
- Threat hunting proactively identifies undetected threats
- Document everything and conduct post-incident reviews
Validation Exercise:
- Deploy Wazuh SIEM (Docker)
- Forward logs from 3 systems
- Create 5 custom correlation rules
- Simulate an incident
- Respond using IR playbook
- Write post-incident report
Related Skills:
Compliance Mapping: NIST IR-4, IR-5, IR-6, SI-4, AU-6 | ISO 27001 A.16.1 | PCI-DSS 12.10 | SOC 2 CC7.3
1---2name: security-operations3description: Security Operations Center (SOC) practices, incident response, SIEM management, and threat hunting following NIST 800-614---5
6# Security Operations
7
8## Level 1: Quick Reference
9
10### Incident Response Lifecycle (NIST 800-61 Rev 2)
11
12```
131. PREPARATION - Policies, tools, training, communication plans
142. DETECTION - SIEM alerts, log analysis, threat intelligence
153. CONTAINMENT - Isolate, remove threat, restore operations
164. POST-INCIDENT - Lessons learned, documentation, improvement
17```
18
19### SOC Tiers
20
21| Tier | Role | Responsibilities |
22|------|------|------------------|
23| **T1** | Alert Triage | Monitor SIEM, validate alerts, categorize, escalate |
24| **T2** | Incident Response | Investigation, forensics, containment |
25| **T3** | Threat Hunting | Proactive hunting, APT detection, automation |
26
27### Incident Severity Classification
28
29| Severity | Impact | Response Time | Escalation |
30|----------|--------|---------------|------------|
31| **Critical** | Business-critical compromised, active exfiltration | <15 min | CISO, Legal |
32| **High** | Multiple systems, potential breach | <1 hour | Tier 3, Management |
33| **Medium** | Single system, contained threat | <4 hours | Tier 2 |
34| **Low** | Failed attack, no impact | <24 hours | Tier 1 |
35
36### Essential SIEM Queries
37
38**Failed Login Attempts (Splunk):**
39
40```spl
41index=security sourcetype=auth action=failure
42| stats count by user, src_ip
43| where count > 5
44```
45
46**Privilege Escalation (Azure Sentinel):**
47
48```kql
49SecurityEvent
50| where EventID == 4672
51| where AccountType == "User"
52| summarize count() by Account, Computer
53```
54
55### Security Metrics Targets
56
57- **MTTD** (Mean Time To Detect): <1 hour for critical
58- **MTTR** (Mean Time To Respond): <4 hours for critical
59- **False Positive Rate**: <10%
60
61---
62
63## Level 2: Implementation Guide
64
65> **Full Examples**: See [REFERENCE.md](./REFERENCE.md) for complete code samples, detailed configurations, and production-ready implementations.
66
67### SOC Team Structure
68
69**Core Roles:**
70
71- **SOC Manager**: Strategic planning, metrics reporting, policy development
72- **Tier 1 Analyst**: 24/7 SIEM monitoring, alert validation (NIST SI-4)
73- **Tier 2 Analyst**: Deep investigation, forensics, containment (NIST IR-4, IR-6)
74- **Tier 3 Analyst**: Threat hunting, APT detection, tool development (NIST IR-5, AU-6)
75- **Incident Commander**: Major incident coordination, stakeholder communication
76
77**Essential Tools:**
78
79- **SIEM**: Splunk ES, Elastic Security, Azure Sentinel, QRadar
80- **EDR**: CrowdStrike, Microsoft Defender, Carbon Black
81- **Threat Intel**: MISP, ThreatConnect, STIX/TAXII feeds
82- **Forensics**: Volatility (memory), Autopsy (disk), Wireshark (network)
83
84### Incident Response Phases
85
86#### Phase 1: Preparation (IR-4)
87
88- IR team structure with roles and on-call rotation
89- Communication plan (internal, external, regulatory)
90- Forensic toolkit (jump bag with evidence collection tools)
91- Quarterly tabletop exercises and annual red team tests
92
93*See [REFERENCE.md](./REFERENCE.md#example-0) for team structure template.*
94
95#### Phase 2: Detection & Analysis (SI-4, AU-6)
96
97**Alert Triage Process:**
98
991. **Initial Validation (5 min)**: True/false positive, OSINT lookup, asset criticality
1002. **Scoping (15-30 min)**: Timeline, affected systems, data at risk, persistence
1013. **Categorization**: Incident type, severity, confidence level
102
103**Detection Source Priorities:**
104
105- **High Fidelity**: EDR behavioral alerts, IDS signature matches, threat intel IOC hits
106- **Medium Fidelity**: UEBA anomaly detection, DLP violations
107- **Low Fidelity**: Generic firewall denies, vulnerability scanner findings
108
109*See [REFERENCE.md](./REFERENCE.md#example-1) for detection source matrix.*
110
111#### Phase 3: Containment & Eradication (IR-4)
112
113**Short-Term Containment (<15 min):**
114
115- Isolate host (EDR quarantine, VLAN switch)
116- Block malicious IPs/domains at firewall
117- Disable compromised accounts
118- Preserve evidence (memory dump, disk image)
119
120**Long-Term Containment (1-4 hours):**
121
122- Implement network segmentation
123- Apply emergency patches
124- Enhanced monitoring on related systems
125
126**Eradication Checklist:**
127
128- Remove malware persistence (scheduled tasks, services, registry)
129- Reset compromised credentials
130- Patch exploited vulnerabilities
131
132*See [REFERENCE.md](./REFERENCE.md#example-5) for isolation commands.*
133
134#### Phase 4: Recovery & Post-Incident (IR-5)
135
136**Recovery Steps:**
137
1381. Rebuild from known-good backup or gold image
1392. Force password reset for affected accounts
1403. Deploy additional sensors on recovered systems
1414. Create custom SIEM alerts for re-infection indicators
142
143**Post-Incident Review (within 2 weeks):**
144
145- Timeline of events
146- What went well / needs improvement
147- Action items with owners and due dates
148- Evidence retention (1 year minimum, legal hold: 7+ years)
149
150*See [REFERENCE.md](./REFERENCE.md#example-7) for post-incident report template.*
151
152### SIEM Configuration
153
154**Critical Log Sources:**
155
156- Authentication (AD, VPN, SSO)
157- Network (firewalls, proxies, DNS)
158- Endpoints (EDR, AV, Windows/Linux logs)
159- Cloud (CloudTrail, Azure Activity, GCP Audit)
160- Applications (web servers, databases, email gateways)
161
162**Correlation Rules to Implement:**
163
1641. Brute force detection (failed logins followed by success)
1652. Data exfiltration (large uploads to external destinations)
1663. Privilege escalation (user added to admin groups)
1674. Lateral movement (SMB access patterns)
1685. Beaconing detection (consistent connection intervals)
169
170*See [REFERENCE.md](./REFERENCE.md#example-8) for log source configuration.*
171
172### Threat Hunting
173
174**Hypothesis-Driven Process:**
175
1761. **Formulate**: "Attackers using stolen credentials for file share access"
1772. **Define Success**: Unauthorized access outside business hours
1783. **Collect Data**: SMB Event 5140, user access patterns
1794. **Analyze**: Cross-reference with UEBA baseline
1805. **Document**: Create IOCs, update SIEM alerts
181
182**Data-Driven Techniques:**
183
184- Stack counting for rare process execution
185- Beaconing detection via connection interval analysis
186- Anomaly detection in network traffic patterns
187
188*See [REFERENCE.md](./REFERENCE.md#example-15) for beaconing detection script.*
189
190### Incident Response Playbooks
191
192#### Phishing Response
193
1941. **Contain**: Quarantine email, block sender, disable compromised accounts
1952. **Analyze**: Extract headers, sandbox attachments, check for payload delivery
1963. **Eradicate**: Remove malware, reset passwords
1974. **Recover**: Restore files, re-enable accounts
1985. **Improve**: Update phishing training, add IOCs to threat intel
199
200#### Ransomware Response
201
2021. **Contain**: Isolate immediately, identify variant, preserve memory
2032. **Assess**: Count encrypted systems, identify affected data, verify backups
2043. **Eradicate**: Do NOT pay ransom, wipe systems
2054. **Recover**: Restore from backups, rebuild from gold image
2065. **Improve**: Review backup strategy, implement application whitelisting
207
208#### Data Breach Response (IR-6)
209
2101. **Contain**: Revoke credentials, block attacker IPs
2112. **Scope**: What data accessed, how many records, timeline
2123. **Notify**: Legal counsel immediately, then regulators per requirements:
213 - GDPR: 72 hours
214 - HIPAA: 60 days
215 - CCPA: If >500 CA residents
2164. **Communicate**: Draft notifications (legal review required), offer credit monitoring
2175. **Remediate**: Fix vulnerability, implement additional controls, third-party audit
218
219### Digital Forensics Quick Reference
220
221**Memory Capture:**
222
223```bash
224# Linux (LiME)
225sudo insmod lime-$(uname -r).ko "path=/tmp/memory.lime format=lime"
226
227# Windows (WinPmem)
228.\winpmem.exe memory.raw
229```
230
231**Disk Imaging:**
232
233```bash
234# Create forensic image
235sudo dd if=/dev/sda of=/mnt/evidence/disk.img bs=4M conv=noerror,sync
236sha256sum /mnt/evidence/disk.img > disk.img.sha256
237```
238
239*See [REFERENCE.md](./REFERENCE.md#example-18) for complete forensics procedures.*
240
241### Security Operations Best Practices
242
243**Efficiency Tips:**
244
2451. **Automate Tier 1**: SOAR for common playbooks, auto-enrich with threat intel
2462. **Reduce Alert Fatigue**: Tune rules quarterly, use risk-based alerting
2473. **Continuous Improvement**: Post-incident reviews, track false positive sources
2484. **Training**: GCIH, GCFA, hands-on labs (TryHackMe, CyberDefenders)
249
250**Common Pitfalls:**
251
252- Alert overload from untuned rules
253- Inadequate documentation (every incident needs a ticket)
254- Poor stakeholder communication
255- Untested backup restore processes
256
257---
258
259## Level 3: Deep Dive Resources
260
261### Bundled Templates
262
2631. **`templates/incident-response-playbook.md`** - Complete IR playbooks with NIST mappings
2642. **`templates/siem-queries.md`** - 50+ production SIEM queries by MITRE ATT&CK
2653. **`scripts/forensics-collection.sh`** - Automated evidence collection
2664. **`templates/post-incident-report.md`** - Root cause analysis template
2675. **`templates/security-metrics-dashboard.json`** - Grafana dashboard
2686. **`resources/nist-ir-controls.md`** - NIST 800-61/800-53 mapping
269
270### Certifications
271
272- **GCIH**: GIAC Certified Incident Handler
273- **GCFA**: GIAC Certified Forensic Analyst
274- **GCIA**: GIAC Certified Intrusion Analyst
275- **OSCP**: Offensive Security (attacker mindset)
276
277### Key References
278
279- [NIST 800-61 Rev 2](https://csrc.nist.gov/publications/detail/sp/800-61/rev-2/final) - Incident Handling Guide
280- [NIST 800-53 Rev 5](https://csrc.nist.gov/publications/detail/sp/800-53/rev-5/final) - IR Control Family
281- [MITRE ATT&CK](https://attack.mitre.org) - Adversary tactics and techniques
282
283### Open-Source Tools
284
285- **SIEM**: Wazuh, Elastic Security, Graylog
286- **Threat Intel**: MISP, AlienVault OTX
287- **Forensics**: Volatility, Autopsy, Wireshark
288
289---
290
291## Summary
292
293**Key Takeaways:**
294
295- SOC operates in three tiers with escalating expertise
296- Incident response follows four phases: Prepare, Detect, Contain, Review
297- SIEM correlation rules detect common attack patterns
298- Threat hunting proactively identifies undetected threats
299- Document everything and conduct post-incident reviews
300
301**Validation Exercise:**
302
3031. Deploy Wazuh SIEM (Docker)
3042. Forward logs from 3 systems
3053. Create 5 custom correlation rules
3064. Simulate an incident
3075. Respond using IR playbook
3086. Write post-incident report
309
310**Related Skills:**
311
312- [Security Fundamentals](../security-fundamentals/SKILL.md)
313- [Network Security](../network-security/SKILL.md)
314- [Cloud Security](../cloud-security/SKILL.md)
315
316**Compliance Mapping:** NIST IR-4, IR-5, IR-6, SI-4, AU-6 | ISO 27001 A.16.1 | PCI-DSS 12.10 | SOC 2 CC7.3