Indicator Removal: File Deletion T1070.004

Tactic: Stealth

Adversaries may delete files left behind by the actions of their intrusion activity. Malware, tools, or other non-native files dropped or created on a system by an adversary (ex: Ingress Tool Transfer) may leave traces to indicate to what was done within a network and how. Removal of these files can occur during an intrusion, or as part of a post-intrusion process to minimize the adversary's footprint.

Events covered

14 catalog events are tagged with this technique by at least one rule.

Authoring guide

Patterns shared across the 46 rules above: which fields they filter on, what specific values they look for, and what they exclude. The catalog normalizes field names across vendors so Sigma's Image, Elastic's process.name, and Splunk's process_name collapse into one row. Each rule contributes at most once per row.

Fields filtered most (29 distinct)

The fields most rules look at when detecting this technique. The How column shows the operators authors use (eq, wildcard, regex_match, match) and how often each appears. Sample values are concrete examples to start from, not an exhaustive list.

FieldRulesHowSample values
TargetFilename23ends_with 7, starts_with 7, in 5, wildcard 5, contains 3/dev/shm/*, /etc/, /etc/ssl/certs/, :zone.identifier, *.crt
event.type12eq 12deletion, start, change
Image10ends_with 7, eq 2, is_not_null 1\cmd.exe, /rm, /shred, /dd, /unlink
CommandLine9contains 9, ends_with 1, match 1 -n , /q, -f, -f , -q
process_name9eq 7, in 2cmd.exe, bash, busybox, cipher.exe, csh
OriginalFileName8eq 8cmd.exe, fsutil.exe, powershell.exe, reg.exe, sdelete.exe
event_action7eq 7deleted
EventType6eq 5, in 1exec, creation, deletion, ProcessRollup2, deleted
host.os.type5eq 5
process.args4eq 2, in 2, contains 1, match 1, wildcard 1*Remove-Item*, *]::Delete(*, *del *, --remove, --zero
EventID3in 2, eq 123, 26
parent_process_name3in 2, ne 1ash, bash, busybox, csh, logrotate
esf.event_type2eq 219, 9
file.extension2eq 1, in 1crt, dll, pem
file.name2ends_with 1, in 1AAA.AAA, authorized_keys, authorized_keys2

Top indicator values (258 distinct)

Specific (field, operator, value) combinations the rules check for, ranked by how many rules under this technique use each one. The Corpus reach column counts how many rules across the entire catalog (any technique) check the same combination. High numbers point to widely-used indicators that are likely noisy on their own; combine them with another condition for useful signal. Blank means the combination is specific to rules under this technique. Click a value to expand the rules under this technique that use it.

FieldKindValueRules (here)Corpus reach
event_actioneq
deleted
77
OriginalFileNameeq
cmd.exe
665
event.typeeq
deletion
69
event.typeeq
start
5606
Imageends_with
\cmd.exe
4130
Imageends_with
/rm
26
Imageends_with
/shred
26
CommandLinecontains
del
35
CommandLinecontains
-n
23
CommandLinecontains
/q
28
CommandLinecontains
/s
28
CommandLinecontains
erase
23
CommandLinecontains
ping
26
EventTypeeq
exec
3171
EventTypeeq
creation
225
EventTypeeq
deletion
22
EventIDin
23
26
EventIDin
26
26
TargetFilenameends_with
:zone.identifier
26
TargetFilenamestarts_with
/etc/
23
TargetFilenamestarts_with
/etc/ssl/certs/
22
TargetFilenamewildcard
/dev/shm/*
23
TargetFilenamewildcard
/proc/*/fd/*
22
TargetFilenamewildcard
/run/*
22
TargetFilenamewildcard
/run/shm/*
22
TargetFilenamewildcard
/tmp/*
27
TargetFilenamewildcard
/var/run/*
22
TargetFilenamewildcard
/var/tmp/*
26
TargetFilenamewildcard
/var/www/*
23
numOfDelFilePathge
200
22

Exclusions (55 distinct)

Field/operator/value combinations excluded by rules under this technique (top-level not() clauses), sorted by how many rules exclude each. These are the false-positive paths the community has learned to filter out. A new rule that ignores the high-count entries here will likely fire on the same noisy paths. Click a value to expand the rules under this technique that exclude it.

FieldKindValueRules excluding
Imagein
/usr/bin/podman
2
process_namein
conftest
2
process_namein
dockerd
2
process_namein
gcc
2
process_namein
getarch
2
process_namein
ld
2
process_namein
link
2
process_namein
rm
2
Imageends_with
:\windows\system32\svchost.exe
1
Imageeq
c:\program files (x86)\google\chrome\application\chrome.exe
1
Imageeq
c:\program files (x86)\microsoft\edge\application\msedge.exe
1
Imageeq
c:\program files (x86)\mozilla firefox\firefox.exe
1
Imageeq
c:\program files\google\chrome\application\chrome.exe
1
Imageeq
c:\program files\microsoft\edge\application\msedge.exe
1
Imageeq
c:\program files\mozilla firefox\firefox.exe
1

Rules under this technique

Every rule in the catalog tagged with this technique, grouped by vendor. Click a rule title for its full predicates, exclusions, and indicators.

Platform (all)
Domain (all)

Sigma 17 rules

Elastic 13 rules

Splunk 15 rules

Kusto 1 rule