Skip to content
Threat Feed
medium advisory

Detection of Malicious File Overwriting via Linux dd Command

Adversaries use the Linux 'dd' utility to perform destructive file overwriting, leading to data loss and system service disruption.

This threat brief focuses on the malicious abuse of the standard Linux 'dd' utility to perform unauthorized file overwriting. Adversaries leverage this command to irreversibly destroy target files or entire partitions, significantly impacting system availability and recovery capabilities. This technique is often associated with data destruction campaigns, such as those observed in the Industroyer2 ecosystem. Defenders must monitor process execution logs for 'dd' commands containing output redirection flags ('of=') that target sensitive system files or data directories. This activity is a high-confidence indicator of destructive intent when observed outside of legitimate administrative maintenance windows.

Impact

The abuse of the 'dd' command for file destruction can render a Linux system inoperable, resulting in critical data loss and extended downtime. Successful execution of these commands effectively deletes or corrupts files, requiring complete system re-imaging or restoration from secure offline backups, which may not be readily available for all impacted sectors.

Recommendation

  • Deploy the provided Sigma rule to detect process execution of 'dd' with output redirection flags.
  • Enable Sysmon for Linux or equivalent EDR telemetry to capture full command-line arguments for all executed processes.
  • Establish a baseline of authorized administrative tasks to identify and filter out legitimate usage of 'dd' by system operators.
  • Monitor for suspicious process parent-child relationships where 'dd' is spawned by unexpected shell processes or web services.

Immediate actions

Deploy Sigma detection rule to SIEM

Detection Engineering 48h

Threat Hunt

Search for 'dd' command execution with output redirection to system directories

T1485 high high confidence convert to detection

Data: Process creation events

Mitigations

Restrict access to the 'dd' binary using sudoers policies to specific authorized users

medium_term IT Operations

T1485

Detection coverage 1

Detect Linux dd File Overwrite Activity

medium

Detects the use of the 'dd' command with output redirection flags, which is indicative of potential file destruction or data wiping.

sigma tactics: impact techniques: T1485 sources: process_creation, linux

Detection queries are available on the platform. Get full rules →