Garet P.
Blog
Hub

Log Pipeline Manipulation: When the Attacker Targets the Detection Infrastructure

Your SIEM shows clean. No alerts fired. No anomalies detected. The attacker was active for six days. The telemetry covering their activity existed and then it didn't. Your detection architecture assumes the pipeline is honest. The attacker knew it wasn't.

// introduction

The Architecture That Trusts Its Own Inputs

Every SIEM-based detection architecture rests on a foundational assumption that is almost never stated explicitly: the log pipeline is honest. Events generated at the endpoint arrive at the SIEM intact, complete, and unmodified. This assumption is structurally embedded in how detection works, rules fire on events that arrive; rules do not fire on events that were suppressed, corrupted, or delayed. The absence of events looks identical to the absence of activity.

Log pipeline manipulation appears in real intrusion post-mortems. The Carbanak campaign manipulated Windows Event Logs during banking sector intrusions. HAFNIUM cleared IIS and Event Logs on compromised Exchange servers before IR teams arrived. BlackByte ransomware used BYOVD to terminate EDR processes at kernel level before payload deployment. Lazarus Group unloaded Sysmon drivers and modified audit policy before credential theft operations. In every case, pipeline manipulation occurred in the middle of the intrusion, after persistence was established, before the highest-risk activity. It is deliberate operational security, not opportunism.

The asymmetry

Defenders must protect every stage of the pipeline. Attackers need to compromise only one to create a blind spot covering all downstream detection. Every stage left of the detection layer is an attack surface, and each stage failure is invisible to the detection layer because it only sees what arrives, not what was lost.

// architecture

The Pipeline as an Attack Surface

Stage
Components
Attack vectors
Event generation
ETW Sysmon auditd
Provider disabling Audit policy modification
Local buffer
Windows Event Log journald
Log clearing Direct tampering
Collection agent
WEF Winlogbeat Fluentd
Process kill Config modification
Transport
Syslog HTTPS Kafka
Flooding Delay injection
Ingestion / parsing
SIEM parser Field extraction
Malformed events Parser confusion

// threat catalog

Seven Pipeline Manipulation Techniques

T01 Windows Event Log channel clearing T1070.001
Mechanics

Clearing Security, System, or Application log channels via wevtutil cl, PowerShell Clear-EventLog, or direct API. Generates EID 1102 (Security log cleared) and EID 104 (System log cleared), but only if those channels are being forwarded before the clear occurs.

wevtutil cl Security
wevtutil cl "Microsoft-Windows-Sysmon/Operational"
Detection gap

If the attacker clears the Sysmon operational log before WEF or the collection agent has forwarded events, the clearing event (EID 104) is generated but the pre-clearing events are permanently lost. Detection of the clear does not recover what was cleared.

T02 Sysmon and ETW provider disabling T1562.001
Mechanics

Rather than clearing logs after generation, disabling the providers that generate telemetry, no events are produced, so no clearing artifact exists. Sysmon can be stopped as a service, its driver unloaded, or its config modified to exclude specific event types.

sc stop Sysmon64
fltMC unload SysmonDrv
logman stop "EventLog-Security" -ets
Detection gap

Sysmon service stop generates a System event, but only if System log forwarding is active and the collection agent is still running. If the agent is stopped first, the Sysmon stop event is generated locally and never forwarded. Sequence matters: agent first, then provider.

T03 Collection agent process termination T1562.001
Mechanics

Killing Winlogbeat, NXLog, Fluentd, or the WEF subscription service stops forwarding without generating any event in the channels being forwarded. Events continue to be written locally but are never transmitted. From the SIEM's perspective, the host goes silent, indistinguishable from offline or network interruption.

taskkill /F /IM winlogbeat.exe
Stop-Service -Name "winlogbeat" -Force
Detection gap

The SIEM receives no forwarding heartbeat and no explicit "agent stopped" event. Most SIEM deployments have no host-silence alerting that distinguishes "agent stopped by attacker" from "host rebooted" from "network issue."

T04 EDR sensor blinding, BYOVD T1562.001
Mechanics

Modern ransomware groups target EDR agents before payload deployment, process termination, driver unloading, or exploiting EDR vulnerabilities to disable kernel callbacks. BYOVD (Bring Your Own Vulnerable Driver) uses a legitimate but vulnerable signed driver to gain kernel-level access and blind EDR sensors. Used by Lazarus Group, BlackByte, and others.

Detection gap

BYOVD attacks use signed, legitimate drivers, no signature detection fires. The EDR is blinded before it can report its own compromise. Only pre-existing network telemetry or out-of-band monitoring survives.

T05 Log flooding, noise as coverage T1499
Mechanics

Flood the pipeline with high-volume low-fidelity events to bury malicious activity in noise, trigger SIEM ingestion rate limits, or exhaust log storage quotas causing rollover of older events, overwriting evidence before forwarding occurs.

Detection gap

SIEM storage quotas and ingestion rate limits are designed for cost control, not security. Most deployments drop or sample events above the ingestion rate limit, an attacker who knows the rate limit can generate noise above it, causing targeted event types to be dropped by the SIEM's own cost controls.

T06 Audit policy modification T1562.002
Mechanics

Windows audit policy controls which event categories are generated. Disabling process creation auditing (suppressing EID 4688) or logon auditing (suppressing EIDs 4624/4625) eliminates entire event categories silently. The policy change itself generates EID 4719, but only if policy change auditing is still enabled.

auditpol /set /subcategory:"Process Creation" /success:disable /failure:disable
auditpol /set /subcategory:"Logon" /success:disable
Detection gap

Attackers who disable audit policy change auditing first, then disable target categories, produce no audit trail of either action. Correct control: monitor auditpol.exe execution via Sysmon EID 1, which is independent of Windows audit policy configuration.

T07 Parser confusion and malformed event injection T1070
Mechanics

SIEM ingestion parsers extract fields from log events, malformed events can cause field extraction failures, event drops, or incorrect field mappings. An attacker who understands the target SIEM's parser behavior can craft events that arrive but fail to match detection rules because critical fields are missing, null, or mapped incorrectly.

Detection gap

Parser failures are logged as ingestion errors, not security events. Most SOC teams never review ingestion error rates, they are treated as operational noise by the platform team and security noise by the SOC team. Nobody owns them.

// remediation

Telemetry Integrity Controls: Stage by Stage

Integrity controls must be applied at every stage. A control that protects event generation but not the collection agent is defeated by T03. A control that protects the agent but not the transport is defeated by T05.

Pipeline stage
Integrity control
Event generation
Sysmon PPL (Protected Process Light), raises agent termination bar from local admin to kernel access; ETW provider session monitoring; auditpol.exe execution detection via Sysmon EID 1 independent of audit policy
Local buffer
Monitor EID 1102 and 104 via a forwarding path independent of the channels being cleared; minimize local retention reliance via real-time forwarding to reduce the clearing window
Collection agent
Protect agent process via PPL; heartbeat monitoring with silence alerting on defined cadence; out-of-band watchdog independent of the agent itself
Transport
TLS mutual authentication; ingestion volume anomaly detection; rate-based alerting on ingestion drops exceeding defined threshold per source
Ingestion / parsing
Parser error rate monitoring as a security metric; field presence validation for mandatory fields on high-value event types; alert on ingestion error spikes from specific sources
Cross-pipeline (most orgs: absent)
Expected events-per-host baseline; anomalous silence detection, host network-active but generating zero security events; sequence gap detection for ordered event types

Anomalous silence detection: the most impactful single control

Every active host generates a predictable minimum volume of security events. A host that is network-active but generating zero security events is anomalous. Implementation: establish per-host expected daily event volume baseline; alert on hosts confirmed network-active via NetFlow or firewall logs that are below the minimum event volume threshold for a defined period. Network activity without log activity is the signature of pipeline suppression, the host is doing things but the SIEM cannot see them.

// detection rules

Detecting Pipeline Manipulation Directly

Rule 01 Event log clearing from non-administrative process
EID 1102 OR EID 104
  InitiatingProcess NOT IN approved_admin_tooling

This rule must be hosted in a log source separate from the logs being cleared. Forward EID 1102 and 104 via an independently configured forwarding path as a compensating control.

Rule 02 Sysmon service or driver stop
System EID 7036
  ServiceName: CONTAINS "Sysmon"
  StoppingProcess: NOT IN approved_maintenance_list

This event is in the System log, not the Sysmon Operational log, it survives Sysmon log clearing. Supplement with Sysmon EID 1 monitoring for sc.exe and fltMC.exe with Sysmon-related arguments.

Rule 03 Audit policy modification via auditpol
Sysmon EID 1
  Image: "*\\auditpol.exe"
  CommandLine: CONTAINS "/set" AND "disable"

Functions regardless of whether Windows audit policy change auditing (EID 4719) is enabled, Sysmon process creation monitoring is independent of audit policy configuration.

Rule 04 Collection agent process termination
Sysmon EID 5 (process terminated)
  Image: MATCHES collection_agent_process_names
  (winlogbeat.exe, nxlog.exe, fluentd, etc.)

If Sysmon is stopped before the collection agent, EID 5 for agent termination is never generated. The correct architecture is Sysmon PPL plus collection agent monitoring independent of Sysmon.

Rule 05 Host silence anomaly (SIEM-level)
For each host in monitored_inventory:
  IF no events received for > N minutes
  AND host confirmed network-active (NetFlow / DHCP / firewall)
  THEN alert, anomalous silence with active network presence

Start threshold at 60 minutes to reduce noise from reboots and maintenance. The independent network activity confirmation is non-negotiable, host silence without network activity is just an offline host.

// conclusion

The Pipeline Is Part of the Attack Surface

"A detection architecture with no telemetry integrity controls is not detecting adversary activity, it is detecting what the adversary chooses not to hide."

Detection engineering focuses on what the SIEM sees. Pipeline integrity is about ensuring the SIEM sees what it should, and knowing when it doesn't. The organizations most exposed to pipeline manipulation are those who have invested heavily in detection logic and nothing in telemetry integrity. They have built a sophisticated analysis layer on top of a pipeline that an attacker with local admin can silence in three commands.

The closing question: if an attacker stopped your Sysmon service, cleared your Windows Event Logs, and killed your collection agent right now, how long before your SOC noticed? If the answer is "when the next alert fires", your detection architecture has no floor.

Key references

MITRE ATT&CK T1070 (Indicator Removal) sub-techniques; Sysmon PPL documentation (Sysinternals); BlackByte BYOVD analysis (Sophos X-Ops); Mandiant M-Trends reporting on log manipulation in intrusions; CISA guidance on logging and log integrity.

All posts