Linux auditd: dd overwrites a file using /dev/null or /dev/zero

Flags dd command lines that overwrite files by sourcing data from /dev/null or /dev/zero.

FreeReviewedSigma · Low · v3
Product
linux
Service
auditd
Author
Jakob Weinzettl, oscd.community (SigmaHQ), DRL 1.1
Published
2019-10-23
Updated
2026-07-31

ATT&CK techniques

Impact
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Priv Esc

  7. Defense Evasion

  8. Cred Access

  9. Discovery

  10. Lateral Movement

  11. Collection

  12. C2

  13. Exfiltration

What it detects

This rule flags Linux process executions where the dd command is invoked to read from /dev/null or /dev/zero, resulting in effectively wiping or deleting file contents. Attackers use this pattern to destroy data and disrupt incident investigation by overwriting target files with null or zero bytes. The detection relies on auditd telemetry capturing execve events and the dd invocation arguments that reference if=/dev/null or if=/dev/zero.

Related detections9 linkedT1485 — drag to rearrange
Malicious PathWiper Loader Script Execution from Windows Temp via WScript
Suspicious Free Space Wipe via cipher.exe
Suspicious sha256sum.exe Execution from Windows Temp Directory
Suspicious Secure Deletion of Free Space via Cipher (via process_creation)
HamsaUpdate Wiper Trigger via F5UPDATER ConfirmDeleteFiles Argument (via process_creation)
Malicious Scheduled Task Deploying DYNOWIPER Payload (via process_creation)
Malicious Mini Shai-Hulud TanStack Destructive rm Killswitch (via process_creation)
Malicious S3 Object Encryption with Customer Provided Key via CopyObject
Malicious Cloud Storage Destruction by Cloud Build Service Account
Linux auditd: dd overwrites a file using /dev/null or /dev/zero
Pivot detection · T1485 · 9 related

Changelog

v3
  1. v3
    Candidate ingested via manual entry.2026-07-31
  2. v2
    Candidate ingested via manual entry.2026-07-31
  3. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.