Detectionlowtest
DD File Overwrite
Detects potential overwriting and deletion of a file using DD.
Roberto Rodriguez (Cyb3rWard0g), OTR (Open Threat Research), MSTICCreated 2021-10-15Updated 2022-07-072953194b-e33c-4859-b9e8-05948c167447linux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic3 selectors
detection:
selection1:
Image:
- '/bin/dd'
- '/usr/bin/dd'
selection2:
CommandLine|contains: 'of='
selection3:
CommandLine|contains:
- 'if=/dev/zero'
- 'if=/dev/null'
condition: all of selection*False Positives
Any user deleting files that way.
References
MITRE ATT&CK
Tactics
Techniques
Rule Metadata
Rule ID
2953194b-e33c-4859-b9e8-05948c167447
Status
test
Level
low
Type
Detection
Created
2021-10-15
Modified
2022-07-07
Path
rules/linux/process_creation/proc_creation_lnx_dd_file_overwrite.yml
Raw Tags
attack.impactattack.t1485