Hide Artifacts: Hidden Files and Directories T1564.001

Tactic: Stealth

Adversaries may set files and directories to be hidden to evade detection mechanisms. To prevent normal users from accidentally changing special files on a system, most operating systems have the concept of a ‘hidden’ file. These files don’t show up when a user browses the file system with a GUI or when using normal commands on the command line. Users must explicitly ask to show the hidden files either via a series of Graphical User Interface (GUI) prompts or with command line switches (dir /a for Windows and ls –a for Linux and macOS).

Events covered

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

Authoring guide

Patterns shared across the 28 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 (31 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
event.type14eq 12, in 1, ne 1start, creation, deletion, process_started
host.os.type13eq 12, in 1
process_name12eq 5, starts_with 5, in 1, wildcard 1., mkdir, .*, 7z, attrib.exe
EventType11eq 6, in 5exec, exec_event, executed, ProcessRollup2, connection_attempted
Image10ends_with 6, starts_with 3, eq 1, wildcard 1/dev/shm/, \attrib.exe, ./, /boot/, /media/
process.args6eq 2, wildcard 2, contains 1, match 1, starts_with 1*--as *, *--as-group*, *--as-uid*, +h, -o
CommandLine5contains 5, ends_with 1, eq 1 %, +h , +s, +s , -wx
OriginalFileName5eq 5attrib.exe, icacls.exe
TargetFilename5starts_with 3, contains 1, ends_with 1, eq 1, wildcard 1.helper, /., /library/launchagents/.*.plist, /library/launchdaemons/.*.plist, /library/launchdaemons/com.finder.helper.plist
Details4eq 4, is_not_null 1DWORD (0x00000000), 0x00000000, 0x00000001, Service
TargetObject3ends_with 3, contains 2\(default), \control\safeboot\minimal\, \control\safeboot\minimal\hexnode agent\(default), \enablescripts, \microsoft\powershellcore\
ParentImage2ends_with 1, starts_with 1/boot/, /dev/shm/, /opt/., \cmd.exe
event.category2eq 2file, process
CurrentDirectory1in 1/dev/shm, /tmp, /var/tmp
DestinationFilename1contains 1/.

Top indicator values (236 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.typeeq
start
9606
event.typeeq
creation
345
process_namestarts_with
.
518
EventTypein
exec
4171
EventTypein
exec_event
4139
EventTypein
start
4134
EventTypein
executed
288
EventTypein
process_started
274
OriginalFileNameeq
attrib.exe
45
EventTypeeq
exec
3171
Imageends_with
\attrib.exe
35
Imagestarts_with
/dev/shm/
323
Imagestarts_with
/tmp/
325
Imagestarts_with
/var/tmp/
324
Imagestarts_with
./
210
Imagestarts_with
/boot/
210
Imagestarts_with
/media/
24
Detailseq
DWORD (0x00000000)
238
process_nameeq
mkdir
22
CommandLinecontains
%
1
CommandLinecontains
+h
12
CommandLinecontains
+s
1
CommandLinecontains
+s
12
CommandLinecontains
-wx
1
CommandLinecontains
hidden
1
CommandLinecontains
.bat
111
CommandLinecontains
.dll
116
CommandLinecontains
.exe
15
CommandLinecontains
.hta
16
CommandLinecontains
.ps1
14

Exclusions (110 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
Imagestarts_with
/tmp/newroot/
2
CommandLinecontains
.exe
1
CommandLinecontains
\desktop.ini
1
CommandLinecontains
\windows\temp\
1
CommandLinecontains
drawio.bkp
1
CommandLinecontains
drawio.dtmp
1
CommandLineeq
+R +H +S +A \\\*.cui
1
CommandLinewildcard
attrib +R +H +S +A *.cui
1
CommandLinewildcard
mkdir -p .
1
CommandLinewildcard
mkdir ./*
1
Detailseq
Service
1
Imageends_with
\mbaminstallerservice.exe
1
Imageeq
./install
1
Imageeq
./usr/bin/podman
1
Imageeq
/opt/chef/embedded/bin/ruby
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 10 rules

Elastic 16 rules

Splunk 2 rules