Security Monitoring: Building Detection Capabilities
Learn how to build effective security monitoring capabilities including alert triage, monitoring strategy, tool selection, and creating a detection roadmap for security operations.
The 76 Days That No One Was Watching
In 2014, attackers breached Sony Pictures and lurked undetected for 76 days. They exfiltrated 100 terabytes of data — emails, financial documents, unreleased films — and wiped thousands of workstations. The security monitoring systems were deployed but swimming in a sea of noise: thousands of alerts per day, most ignored, many from systems that hadn't been tuned in years. Effective monitoring provides visibility across the environment, enabling teams to detect threats before they cause damage.
Security monitoring is the continuous observation of systems, networks, and applications to detect security threats in real time. Effective monitoring provides visibility into what is happening across the environment.
Prerequisites
Monitoring Strategy
Define Monitoring Objectives
Start with business and security objectives:
Identify Crown Jewels
Not all assets are equal. Focus monitoring on:
Map Threats to Data Sources
For each threat scenario, identify the data sources needed for detection:
| Threat Scenario | Required Data Sources |
|----------------|---------------------|
| Ransomware deployment | Process logs, file system monitoring, EDR |
| Lateral movement | Logon events, network connections, service creation |
| Credential theft | LSASS access events, authentication logs |
| Data exfiltration | Network flows, DNS logs, proxy logs |
| Privilege escalation | Process logs, group membership changes, token manipulation |
Building a Detection Stack
Layer 1: Log Collection
Every system must generate security-relevant logs:
Layer 2: Aggregation and Normalization
SIEM or log management platform that:
Layer 3: Detection and Alerting
Correlation rules and detection logic:
Layer 4: Response and Investigation
SOAR (Security Orchestration, Automation, and Response) for automated actions, case management for tracking investigations, and playbooks for standardized response procedures.
Alert Triage
The SOC tier model structures alert triage:
Tier 1 (Triage): Review alerts, validate true/false positive, escalate confirmed incidents. Goal: 5-10 minutes per alert.
Tier 2 (Investigation): Deep investigation of escalated alerts, containment actions, evidence collection. Goal: 30-60 minutes per incident.
Tier 3 (Advanced): Complex investigations, reverse engineering, advanced forensics, threat hunting. Available for major incidents.
Triage Decision Process
Alert Received → Validate Alert → Is it a true positive?
├── Yes → Assess severity → Escalate to appropriate tier
├── No → Document false positive → Tune rule if needed
└── Uncertain → Gather additional data → Reassess
Detection Engineering
Creating Detection Rules
# Splunk detection for suspicious PowerShell
index=windows EventCode=4104
| search ScriptBlockText="*DownloadString*" OR ScriptBlockText="*Invoke-Expression*" OR ScriptBlockText="*-enc*"
| table _time, host, UserName, ScriptBlockText
| eval risk_score =
case(match(ScriptBlockText, "DownloadString"), "High",
match(ScriptBlockText, "Invoke-Expression"), "High",
match(ScriptBlockText, "-enc"), "Critical",
"Medium")
Rule Lifecycle
Monitoring Coverage Assessment
Regularly assess monitoring coverage using frameworks like MITRE ATT&CK:
Technique: T1055 (Process Injection)
├── Detection 1: Sysmon Event ID 8 (CreateRemoteThread) → Covered
├── Detection 2: API monitoring → Covered
└── Detection 3: Memory scanning → Not covered (gap)
Real-World Example: Building a SOC
Scenario: A growing company builds its first SOC.
Common Mistakes
Best Practices
Related Tools
Related Articles
Summary
Security monitoring requires a strategic approach combining log collection, SIEM aggregation, detection rules, and alert triage. Focus on high-value assets, start with high-fidelity rules, build playbooks for consistent response, and continuously test and tune detection coverage. Measuring MTTD and MTTR tracks improvement over time.