Has used a hidden .lock file to establish a 12 hour cooldown period between re-drops for installed malware.1
Hidden Files and Directories T1564.001
- Tactic
- Stealth
- Platforms
- Linux, macOS, Windows
- Version
- 2.0
- Created
- 26 February 2020
- Last modified
- 12 May 2026
- Contributor
- Gr@ve_Rose (tcpdump101.com on bsky)
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).
Hidden Files and Directories MITRE reference T1564.001
13 groups have been recorded using this technique. Newest first; each entry carries MITRE’s procedure text and a link to the group’s full record. Click a name to filter the rules below.
Added the “hidden” file attribute to original files, manipulating victims to click on malicious LNK files.12
Has created hidden files and folders within a compromised Linux system /tmp directory. FIN13 also has used attrib.exe to hide gathered local host information.12
Has used malware to store malicious binaries in hidden directories on victim's USB drives.1
Can hide legitimate directories and replace them with malicious copies of the same name.1
Mustang Panda's PlugX variant has created a hidden folder on USB drives named RECYCLE.BIN to store malicious executables and collected data.1 Mustang Panda has also modified file attributes to hidden and system.2
All 13 groups for this technique · 6 newest in this preview
1 campaign has been recorded using this technique. Listed newest first; dates are year-granularity and attribution is MITRE’s.
Mustang Panda stored encrypted payloads associated with PlugX installation in hidden directories during RedDelta Modified PlugX Infection Chain Operations.1
All 1 campaigns for this technique
46 software entries are documented implementing this technique. MITRE files each as a tool or as malware; newest first, then by how many groups carry them.
Can create a hidden directory in the user's home folder on Linux hosts to write a python backdoor.1
Has modified file attributes to remain hidden to a standard user.1
Has modified registry keys to ensure hidden files and extensions are not visible through the modification of HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Advanced.12
Has the ability to communicate with the kernel-mode component to hide files.1
Has copied its binary and the victim's scraped password into a hidden folder in the /Users directory.12
All 46 software entries for this technique · 6 newest in this preview
Offense vs defense T1564.001
Is defensive coverage keeping up with adversary use? Eight counts, each ranked against all 697 ATT&CK techniques. Attack sits left, defense right, so a shape leaning left means adversaries are better documented here than defenders are equipped. Hover any spoke for its percentile and the share of techniques that have more. The timeline below shows when each side arrived.
How it got here
Adversary activity (campaign spans) over cumulative rule output. Each source is plotted independently from zero, so neither line includes the other. Campaign dates are year-granularity.
Hidden Files and Directories detection strategy DET0032
MITRE names one behaviour worth catching for this technique and breaks it into 3 analytics, one per platform. Each carries the log sources it needs and the fields you tune per environment.
Detection Strategy for Hidden Files and Directories
AN0091 · Windows
Suspicious use of attrib.exe or PowerShell commands to set hidden attributes on files/directories. Defender view: processes modifying file attributes to 'hidden' or creating files with ADS (alternate data streams).
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| Process CreationDC0032 | WinEventLog:Sysmon | EventCode=1 |
| File CreationDC0039 | WinEventLog:Sysmon | EventCode=11 |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| MonitoredExtensions | Filter hidden file detection by sensitive file extensions (.exe, .dll, .bat). |
| ADSMonitoring | Enable detection of alternate data streams depending on organizational usage. |
AN0092 · Linux
Creation of files or directories with a leading '.' in privileged directories (/etc, /var, /usr/bin). Defender view: monitoring auditd logs for file creations where name begins with '.' and correlated with unusual user/process context.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| File CreationDC0039 | auditd:FILE | File creation with name starting with '.' |
| Command ExecutionDC0064 | auditd:EXECVE | Use of mv or cp to rename files with '.' prefix |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| DirectoryScope | Restrict detection to critical directories to avoid noise from benign hidden files like .ssh or .config. |
AN0093 · macOS
Use of chflags hidden or SetFile -a V commands to hide files, or creation of hidden files with leading '.'. Defender view: monitoring process execution and file metadata changes setting UF_HIDDEN attribute.
Log sources
The data this analytic draws on. You do not need every component — each one you already collect covers part of it. Each links to its ATT&CK record.
| Data component | Name | Channel |
|---|---|---|
| File MetadataDC0059 | macos:unifiedlog | File metadata updated with UF_HIDDEN flag |
| Command ExecutionDC0064 | macos:unifiedlog | Execution of chflags hidden or SetFile -a V |
Tunable fields
MITRE calls these the analytic’s mutable elements: the thresholds and filters you set for your own environment.
| Field | What you tune |
|---|---|
| HiddenAttributeScope | Restrict detection to non-standard directories where hidden flags are unexpected. |
Tests from Atomic Red Team (MIT licence) · technique definition