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.
Knowledge Check
Frequently Asked Questions
Continue Learning
Detection Engineering: Creating Security Alerts and Rules
Learn detection engineering principles including rule development, Sigma rules, testing methodologies, false positive management, and building a detection program for security operations.
Security Operations · AdvancedSIEM Fundamentals: Security Information and Event Management
A comprehensive introduction to SIEM systems covering architecture, log collection, correlation rules, deployment considerations, and how SIEM powers modern security operations centers.
Security Operations · AdvancedIncident Response: Structured Approach to Security Breaches
Learn the incident response lifecycle including preparation, detection, containment, eradication, recovery, and lessons learned with practical frameworks and real-world scenarios.
Security Operations · AdvancedDigital Forensics Basics: Collecting and Analyzing Evidence
Learn digital forensics fundamentals including evidence collection, forensic imaging, memory analysis, timeline analysis, and proper chain of custody procedures for investigations.
Related Security Tools
Nmap
Learn how to use Nmap, the free open-source network scanner: run your first port scan, discover live hosts, detect services and operating systems, and check for vulnerabilities with NSE scripts — a beginner tutorial for Kali Linux.
Sniffing & SpoofingWireshark
Wireshark tutorial for beginners: capture packets, read the three panes, filter traffic and follow TCP streams — a hands-on guide to the world's foremost network protocol analyzer.
Sniffing & Spoofingtcpdump
tcpdump is a powerful, lightweight command-line packet analyzer that allows users to capture, parse, and filter TCP/IP and other packets transmitted or received over a network.
ForensicsAutopsy
Learn how to use Autopsy, the free digital forensics software, in a hands-on practice case. Start with a verified disk image, run ingest modules, look for deleted files, and use keyword hits and timeline entries to build a report.