0Pricing
Cloud & IT Cert Prep · Lesson

Detection and Analysis: Identifying Real Incidents

Learn how to triage alerts from SIEM, EDR, and network tools to distinguish true positives from false positives and establish incident scope.

Detection and Analysis: Identifying Real Incidents is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Detection Phase Overview

The detection and analysis phase begins when a potential security incident is first identified and ends when the scope and impact are understood well enough to begin containment. The primary challenge in this phase is distinguishing true positives from false positives — an alert generated by malicious activity from an alert triggered by normal but unusual behavior. Effective detection requires properly configured tools, trained analysts, and documented baselines of normal activity.

Detection Sources: Where Incidents Surface

Incidents are detected through multiple channels: SIEM alerts generated by correlation rules, EDR detections from behavioral analysis on endpoints, user reports (the most common initial detection for phishing), third-party notification (law enforcement, threat intelligence vendors, breach notification services), automated scanning (vulnerability scanners or CSPM finding anomalies), and threat hunting (proactive investigation). Each source has different reliability levels and provides different types of evidence.

Log Sources for Detection

Effective detection requires collecting logs from diverse sources. Critical log types include: Authentication logs (Windows Security Event Log, /var/log/auth.log) for failed/successful logins, Network logs (firewall, VPC Flow Logs, proxy) for unusual connections, DNS logs for queries to known malicious domains, Endpoint logs (EDR, Sysmon) for process creation and file activity, and Cloud audit logs (CloudTrail, Azure Monitor) for API calls. A SIEM aggregates and correlates these disparate sources.

# Key Windows Event IDs for incident detection
# 4624 - Successful logon
# 4625 - Failed logon
# 4648 - Logon using explicit credentials (possible lateral movement)
# 4720 - User account created
# 4732 - User added to privileged group
# 4688 - New process created (enable with audit policy)
# 7045 - New service installed (persistence mechanism)
# 4698 - Scheduled task created (persistence mechanism)

False Positives vs True Positives

SOC analysts triage hundreds or thousands of alerts daily, most of which are false positives — legitimate activity that triggered a detection rule. A false positive wastes analyst time and creates alert fatigue that causes real threats to be dismissed. A true positive represents actual malicious activity. A false negative is the most dangerous outcome — malicious activity that generated no alert at all. Tuning detection rules to reduce false positives without increasing false negatives is a core SOC skill.

# Alert triage decision matrix
# Alert: 50 failed SSH logins from IP 1.2.3.4

# Investigation questions:
# 1. Is this IP known malicious? (Threat intel check)
# 2. Which account was targeted? (Privileged? Service?)
# 3. Did any login succeed after the failures?
# 4. Is this IP pattern seen on other systems?
# 5. What's the geo-location? Expected for this org?

# If login succeeded + privileged account + unexpected IP = TRUE POSITIVE
# If scanning all ports on internet with no success = likely automated scanner

SIEM Correlation Rules

SIEM correlation rules combine multiple individual log events to identify patterns that indicate attacks. Example: one failed login is normal; 100 failed logins from the same IP in 60 seconds indicates brute force. Another example: a user authenticating from the US at 9 AM and then from China at 11 AM is impossible travel — likely a compromised account. Effective correlation rules balance sensitivity (catching real attacks) with specificity (not drowning analysts in noise).

# SIEM rule pseudocode (Splunk SPL style)
# Detect potential brute force followed by success
source=windows:security EventCode=4625
  | stats count AS failed_attempts BY src_ip, user
  | where failed_attempts > 20
  | join user [
      search source=windows:security EventCode=4624
  ]
  | where failed_attempts > 20 AND success_login=1
# Alert = brute force succeeded — possible compromise

Indicators of Compromise in Analysis

During analysis, responders collect Indicators of Compromise (IoCs) that characterize the attack: suspicious IP addresses, malicious domain names, file hashes of malware, registry keys modified by the attacker, unusual process names or parent-child relationships, and anomalous network connections. IoCs are used to: determine scope (is this IoC present on other systems?), enrich threat intelligence, block further attacker access, and develop SIEM rules to detect similar activity in the future.

# Searching for an IoC across all endpoints (PowerShell + EDR)
# Search for a specific malware hash on all Windows systems:
Get-WmiObject Win32_Process | Where-Object {
    (Get-FileHash $_.ExecutablePath -Algorithm SHA256).Hash -eq
    'a1b2c3d4...malware_hash'
} | Select-Object Name, ProcessId, ExecutablePath

# Search for suspicious network connections to known C2 IP:
Get-NetTCPConnection | Where-Object { $_.RemoteAddress -eq '1.2.3.4' }

Determining Scope and Impact

Scope analysis answers: What systems are affected? What data was accessed or exfiltrated? How did the attacker get in and when? Responders use log analysis to reconstruct the attack timeline, identify the initial access vector, list all systems the attacker touched (lateral movement), and determine whether data was exfiltrated (outbound transfer spikes, data staging directories). The scope assessment drives containment decisions — you cannot contain what you have not mapped.

EDR Analysis in Incident Response

EDR (Endpoint Detection and Response) platforms are the primary technical tool for endpoint-level incident analysis. EDR telemetry provides: process execution trees (what spawned what), file system activity, network connections per process, registry modifications, and memory injection detection. During an incident, EDR allows analysts to search across all endpoints for an IoC simultaneously (enterprise-wide hunt), isolate a compromised endpoint from the network, and pull forensic artifacts without physically touching the system.

Network Analysis During Incidents

Network evidence is often the most reliable source during incident analysis. NetFlow and VPC Flow Logs reveal connections between systems without showing payload content — useful for mapping lateral movement. Full packet capture (PCAP) shows complete conversation content including credentials, exfiltrated data, and C2 commands (if traffic is unencrypted). DNS query logs reveal malware beaconing to C2 domains. Responders look for: large outbound data transfers, connections to unusual ports, beaconing patterns (regular connections every N seconds), and internal scanning behavior.

Establishing the Attack Timeline

Reconstructing the attack timeline is essential for understanding dwell time (how long the attacker was present before detection), identifying the initial access vector (to close the vulnerability), and preserving evidence in chronological order for legal proceedings. Timelines are built by correlating timestamps across multiple log sources. Time synchronization (using NTP) is critical — logs with incorrect system clocks create gaps and contradictions in timelines that undermine forensic conclusions.

Escalation and Notification Triggers

Not every alert requires full CSIRT activation. Analysts use documented criteria to determine escalation triggers: discovery of a confirmed data breach triggers mandatory regulatory notifications and executive escalation. Discovery of malware that has spread beyond one system triggers full CSIRT engagement. A single phishing email (no click) stays at tier-1 analyst level. Well-defined escalation thresholds prevent both over-reaction (wasting resources on minor events) and under-reaction (major breaches growing while treated as minor alerts).

Quick Check

Test your understanding of CompTIA Security+ (SY0-701) concepts from this lesson.

Lesson Recap

In this lesson you learned: detection relies on diverse log sources aggregated by a SIEM with correlation rules that identify multi-event attack patterns, IoCs collected during analysis are used to scope the incident across all systems and develop blocking rules, and false negatives are the most dangerous outcome because they allow attackers to operate undetected. Next up we explore containment, eradication, and recovery.

Frequently asked questions

Is the “Detection and Analysis: Identifying Real Incidents” lesson free?

Yes — the full text of “Detection and Analysis: Identifying Real Incidents” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Detection and Analysis: Identifying Real Incidents”?

Learn how to triage alerts from SIEM, EDR, and network tools to distinguish true positives from false positives and establish incident scope. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Detection and Analysis: Identifying Real Incidents” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Preparation: IR Plans, Playbooks, and Teams
  2. Detection and Analysis: Identifying Real Incidents
  3. Containment, Eradication, and Recovery
  4. Post-Incident Review and Lessons Learned
← Back to Cloud & IT Cert Prep