Security operations

From williamzujkowski/standards · View interactive version

Security operations is an AI agent skill from the GitHub repository williamzujkowski/standards. Security Operations Center (SOC) practices, incident response, SIEM management, and threat hunting following NIST 800-61

How to use this skill

Skill file

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


Level 2: Implementation Guide

Full Examples: See REFERENCE.md for complete code samples, detailed configurations, and production-ready implementations.

SOC Team Structure

Core Roles:

Essential Tools:

Incident Response Phases

Phase 1: Preparation (IR-4)

See REFERENCE.md for team structure template.

Phase 2: Detection & Analysis (SI-4, AU-6)

Alert Triage Process:

  1. Initial Validation (5 min): True/false positive, OSINT lookup, asset criticality
  2. Scoping (15-30 min): Timeline, affected systems, data at risk, persistence
  3. Categorization: Incident type, severity, confidence level

Detection Source Priorities:

See REFERENCE.md for detection source matrix.

Phase 3: Containment & Eradication (IR-4)

Short-Term Containment (<15 min):

Long-Term Containment (1-4 hours):

Eradication Checklist:

See REFERENCE.md for isolation commands.

Phase 4: Recovery & Post-Incident (IR-5)

Recovery Steps:

  1. Rebuild from known-good backup or gold image
  2. Force password reset for affected accounts
  3. Deploy additional sensors on recovered systems
  4. Create custom SIEM alerts for re-infection indicators

Post-Incident Review (within 2 weeks):

See REFERENCE.md for post-incident report template.

SIEM Configuration

Critical Log Sources:

Correlation Rules to Implement:

  1. Brute force detection (failed logins followed by success)
  2. Data exfiltration (large uploads to external destinations)
  3. Privilege escalation (user added to admin groups)
  4. Lateral movement (SMB access patterns)
  5. Beaconing detection (consistent connection intervals)

See REFERENCE.md for log source configuration.

Threat Hunting

Hypothesis-Driven Process:

  1. Formulate: "Attackers using stolen credentials for file share access"
  2. Define Success: Unauthorized access outside business hours
  3. Collect Data: SMB Event 5140, user access patterns
  4. Analyze: Cross-reference with UEBA baseline
  5. Document: Create IOCs, update SIEM alerts

Data-Driven Techniques:

See REFERENCE.md for beaconing detection script.

Incident Response Playbooks

Phishing Response
  1. Contain: Quarantine email, block sender, disable compromised accounts
  2. Analyze: Extract headers, sandbox attachments, check for payload delivery
  3. Eradicate: Remove malware, reset passwords
  4. Recover: Restore files, re-enable accounts
  5. Improve: Update phishing training, add IOCs to threat intel
Ransomware Response
  1. Contain: Isolate immediately, identify variant, preserve memory
  2. Assess: Count encrypted systems, identify affected data, verify backups
  3. Eradicate: Do NOT pay ransom, wipe systems
  4. Recover: Restore from backups, rebuild from gold image
  5. Improve: Review backup strategy, implement application whitelisting
Data Breach Response (IR-6)
  1. Contain: Revoke credentials, block attacker IPs
  2. Scope: What data accessed, how many records, timeline
  3. Notify: Legal counsel immediately, then regulators per requirements:
  1. Communicate: Draft notifications (legal review required), offer credit monitoring
  2. 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:

  1. Automate Tier 1: SOAR for common playbooks, auto-enrich with threat intel
  2. Reduce Alert Fatigue: Tune rules quarterly, use risk-based alerting
  3. Continuous Improvement: Post-incident reviews, track false positive sources
  4. Training: GCIH, GCFA, hands-on labs (TryHackMe, CyberDefenders)

Common Pitfalls:


Level 3: Deep Dive Resources

Bundled Templates

  1. templates/incident-response-playbook.md - Complete IR playbooks with NIST mappings
  2. templates/siem-queries.md - 50+ production SIEM queries by MITRE ATT&CK
  3. scripts/forensics-collection.sh - Automated evidence collection
  4. templates/post-incident-report.md - Root cause analysis template
  5. templates/security-metrics-dashboard.json - Grafana dashboard
  6. resources/nist-ir-controls.md - NIST 800-61/800-53 mapping

Certifications

Key References

Open-Source Tools


Summary

Key Takeaways:

Validation Exercise:

  1. Deploy Wazuh SIEM (Docker)
  2. Forward logs from 3 systems
  3. Create 5 custom correlation rules
  4. Simulate an incident
  5. Respond using IR playbook
  6. 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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.