Digital Forensics · Topic 6 of 11
SIEM, Centralized Logging and Attack Detection
How SIEM centralizes and correlates logs to expose brute force, DoS, malware, FTP exfiltration, scanning, ransomware and rogue DNS servers, for CHFI v11.
- 5 min
- A SIEM collects, normalizes, correlates, stores and alerts.
- Central logs can survive when the source host is compromised, which makes them harder to dispute.
- Brute force is many 4625 failures then a success. Spraying is few passwords against many accounts.
What it is
A Security Information and Event Management (SIEM) platform collects logs from many sources into one place, normalizes them and correlates events. An investigator can then follow one attacker across firewalls, servers and applications.
This page covers why central logging matters, the SIEM products to know and how to recognize common attacks in SIEM data.
How it works
Centralized logging using SIEM solutions
Logs kept only on the source device can be erased by an attacker who gains control of it. Sending them to a central, protected store preserves evidence and allows correlation.
| Stage | What it does |
|---|---|
| Collection | Agents, syslog, APIs and log files bring in events |
| Normalization | Different formats become common fields (time, source, user, action) |
| Storage and retention | Logs kept for the required period, protected from change |
| Correlation | Rules link events across sources into one finding |
| Alerting and reporting | Alerts for analysts and reports for compliance |
Accurate time is essential. All sources should use NTP so events from different devices line up. Retention periods and integrity protection (hashing, write once storage, restricted access) also matter if the logs become evidence.
SIEM solutions
| Product | Note |
|---|---|
| Splunk | Search driven log analytics with an Enterprise Security app |
| IBM QRadar | Correlates events and network flows into offenses |
| Microsoft Sentinel | Cloud native SIEM and SOAR on Azure |
| ArcSight | Enterprise log correlation |
| LogRhythm | SIEM with response automation |
| Elastic Security | Built on the Elastic Stack |
| AlienVault OSSIM | Open source SIEM with sensors |
The exam focuses on what a SIEM does and which attack a pattern describes, not on product internals.
Brute force, DoS and malware activity
| Attack | SIEM pattern |
|---|---|
| Brute force | Many failed logons (event 4625 or SSH failures) from one source or against one account in a short time, sometimes ending in a success |
| Password spraying | One or two passwords tried against many accounts |
| DoS | Sudden spike in connections or requests to one service, from one source or many |
| Malware | Antivirus alerts, new processes (4688), new services (7045), connections to known bad domains or addresses |
A correlation rule might read: more than 10 failed logons for one account within five minutes, followed by a successful logon from the same address, raises a high priority alert.
Data exfiltration through FTP
FTP is clear text, so commands and file names are visible. Indicators are large outbound transfers to an external server, STOR (upload) commands, transfers outside working hours, uploads from a database or file server, and use of an account that normally never uses FTP.
Evidence sources: firewall bytes sent, FTP server transfer logs, proxy logs, NetFlow records and packet captures. Compare the amount transferred with the size of the files that were accessed to help judge whether the theft is real.
Network scanning and ransomware
A scan shows one source touching many ports on one host (port scan) or one port on many hosts (sweep), with many SYNs answered by resets and short connections. ICMP sweeps show echo requests to a whole range.
Ransomware shows several stages in the log:
- Initial access: a phishing attachment or exposed service.
- Lateral movement: many SMB connections and remote logons.
- Preparation: backup services stopped and shadow copies deleted, visible as process creation events.
- Encryption: a flood of file writes and renames with a new extension.
- Ransom notes created in many folders and contact with a command server.
Detect a rogue DNS server (hijacking and spoofing)
DNS hijacking changes where names resolve, for example by altering a client or router DNS setting, running a rogue DHCP server that hands out a malicious DNS address, or changing records at the registrar. DNS spoofing (cache poisoning) injects false answers into a resolver's cache.
| Check | What it shows |
|---|---|
| Client DNS setting | Points to an unapproved server |
| DNS traffic destination | Queries leaving to a server that is not an approved resolver |
| Same name, different answers | Inconsistent results from different resolvers |
| Many answers for one query | Attempt to guess the transaction ID |
| DHCP logs | A second DHCP server handing out addresses |
Countermeasures are DNSSEC, DNS over TLS or HTTPS, source port randomization, DHCP snooping, locked down router settings and monitoring resolver traffic.
A worked example
The SIEM raises an alert: 300 failed Windows logons for an account svc-backup in six minutes from one workstation, then a 4624 success, then a 7045 service install on a server. The analyst searches the SIEM for that source address and finds an earlier port scan across the subnet.
The sequence is consistent with scanning, brute force, successful access and persistence. The analyst exports the events with timestamps and hashes the export before handing it on.
How the exam asks about this
- "What does a SIEM do with logs from different devices?" -> Collects, normalizes and correlates them.
- "A host uploads gigabytes to an external server with STOR commands at 3 a.m. What is suspected?" -> Data exfiltration over FTP.
- "Clients receive wrong IP addresses for a bank site from a server that is not approved. What is it?" -> A rogue DNS server (DNS hijacking or spoofing).
What to remember for the exam
- A SIEM collects, normalizes, correlates, stores and alerts.
- Central logs can survive when the source host is compromised, which makes them harder to dispute.
- Brute force is many 4625 failures then a success. Spraying is few passwords against many accounts.
- Exfiltration shows large outbound transfers, often at odd hours.
- Defenses against DNS spoofing include DNSSEC and source port randomization.
A SIEM is only as good as its inputs and clocks. Missing sources or unsynchronized time can hide an attack or build a false sequence of events.
Common mistakes
Treating a SIEM alert as proof. An alert is a lead. Confirm it against the raw logs and other sources.
Confusing scans with sweeps. A scan covers many ports on one host and a sweep covers one port on many hosts.
Forgetting retention. If logs are rotated away before collection, the evidence is gone.
Check yourself
Why must all log sources use synchronized time?
Correlation across devices depends on events being placed in the right order.
Which pattern separates password spraying from brute force?
Spraying tries a few passwords across many accounts, while brute force tries many passwords against one account.
What can a defender enable to protect DNS answers from forgery?
DNSSEC, along with source port randomization.
Topic 6 of 11 in Digital Forensics
Test yourself on Digital Forensics
The full EC-Council 312-49 question bank has 900 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by EC-Council. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.