Hide Artifacts: Hidden Files and Directories
- ID
- T1564.001
- Tactics
- TA0005 Stealth
- Sub-technique of
- T1564 Hide Artifacts
- Platforms
- Linux, macOS, Windows
- Data sources
- Process Creation, File Creation, Command Execution, File Metadata
- Source
- attack.mitre.org
- MITRE last modified
- 12 May 2026
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).
On Linux and Mac, users can mark specific files as hidden simply by putting a “.” as the first character in the file or folder name [1] [2]. Files and folders that start with a period, ‘.’, are by default hidden from being viewed in the Finder application and standard command-line utilities like “ls”. Users must specifically change settings to have these files viewable.
Files on macOS can also be marked with the UF_HIDDEN flag which prevents them from being seen in Finder.app, but still allows them to be seen in Terminal.app [3]. On Windows, users can mark specific files as hidden by using the attrib.exe binary. Many applications create these hidden files and folders to store information so that it doesn’t clutter up the user’s workspace. For example, SSH utilities create a .ssh folder that’s hidden and contains the user’s known hosts and keys.
Additionally, adversaries may name files in a manner that would allow the file to be hidden such as naming a file only a “space” character.
Adversaries can use this to their advantage to hide files and folders anywhere on the system and evading a typical user or system analysis that does not incorporate investigation of hidden files.
Detection
- DET0032 Detection Strategy for Hidden Files and Directories
Data components: Process Creation, File Creation, Command Execution, File Metadata
Groups (13)
- G0007 APT28
- G0032 Lazarus Group
- G0046 FIN7
- G0050 APT32
- G0081 Tropic Trooper
- G0106 Rocke
- G0125 HAFNIUM
- G0129 Mustang Panda
- G0134 Transparent Tribe
- G1014 LuminousMoth
- G1016 FIN13
- G1039 RedCurl
- G1056 TeamPCP
Software (48)
- S0013 PlugX
- S0015 Ixeshe
- S0162 Komplex
- S0198 NETWIRE
- S0260 InvisiMole
- S0262 QuasarRAT
- S0274 Calisto
- S0277 FruitFly
- S0278 iKitten
- S0282 MacSpy
- S0331 Agent Tesla
- S0339 Micropsia
- S0352 OSX_OCEANLOTUS.D
- S0366 WannaCry
- S0369 CoinTicker
- S0402 OSX/Shlayer
- S0409 Machete
- S0428 PoetRAT
- S0434 Imminent Monitor
- S0438 Attor
- S0439 Okrum
- S0447 Lokibot
- S0448 Rising Sun
- S0451 LoudMiner
- S0475 BackConfig
- S0484 Carberp
- S0497 Dacls
- S0533 SLOTHFULMEDIA
- S0569 Explosive
- S0584 AppleJeus
- S0595 ThiefQuest
- S0612 WastedLocker
- S0634 EnvyScout
- S0650 QakBot
- S0658 XCSSET
- S0660 Clambling
- S0663 SysUpdate
- S1043 ccf32
- S1105 COATHANGER
- S1111 DarkGate
- S1153 Cuckoo Stealer
- S1176 attrib
- S1219 REPTILE
- S1230 HIUPAN
- S1236 CLAIMLOADER
- S9041 TeamPCP Cloud Stealer
- S9050 Vidar
- S9051 The Gentlemen Ransomware
