Attackers rarely need to break your security tools if they can simply put their files, accounts, tasks and processes where those tools and your administrators do not look. MITRE ATT&CK T1564 Hide Artifacts covers that family of behaviour: abusing operating system features meant to keep system files and admin activity out of the way, and building isolated regions such as virtual machines that host security tooling cannot see. In ATT&CK v20 it sits under the Stealth tactic (TA0005), applies to ESXi, Linux, macOS, Office Suite and Windows, and has 14 sub-techniques. It explains the technique as a whole, the cases ATT&CK records, the telemetry that exposes hiding, and the controls that remove the hiding places. Each sub-technique has its own page; this page is the parent view.
Key takeaways
- Hiding is a modifier, not an objective. T1564 almost always wraps something else: a payload, a persistence mechanism, a created account or ransomware. Finding a hidden artifact means a wider intrusion is under way.
- The act of hiding is usually more visible than the artifact. Setting a hidden attribute, writing an alternate data stream, deleting a task's security descriptor or adding an antivirus exclusion each leaves process, file or registry telemetry, even when the result no longer shows in normal tools.
- Compare two views of the same thing. Most hidden artifacts are found by cross-view checks: registry against Task Scheduler, hypervisor process list against inventory, raw directory listing against the user interface.
- Exclusions are the cheapest hiding place. T1564.012 needs no exploit at all, only a folder your scanner skips. Exclusion governance is a detection control, not just a performance setting.
- ATT&CK maps only four mitigations to the parent. Antivirus/Antimalware (M1049), Application Developer Guidance (M1013), Audit (M1047) and Limit Software Installation (M1033). Other controls here are labelled as NHI Mgmt Group recommendations.
What T1564 covers in ATT&CK v20
ATT&CK describes adversaries abusing operating system features that hide files, directories, user accounts or other system activity, and creating computing regions isolated from security instrumentation, for example through virtualisation. Hide Artifacts is one of several Stealth techniques. It differs from its neighbours in where the concealment happens: T1036 Masquerading Defensive Guide makes something look legitimate, T1027 Obfuscated Files or Information Defensive Guide makes content hard to read, T1070 Indicator Removal Defensive Guide deletes evidence, and MITRE ATT&CK T1014 Rootkit subverts the operating system itself. T1564 leaves the artifact in place but out of view. For how Stealth relates to the separate Defense Impairment tactic (TA0112), see the ATT&CK Stealth and Defense Impairment Tactics Guide.
| Group | Sub-techniques (v20) | Platforms | What is hidden |
|---|---|---|---|
| File system attributes and metadata | T1564.001 Hidden Files and Directories, T1564.004 NTFS File Attributes, T1564.009 Resource Forking, T1564.014 Extended Attributes | Windows, Linux, macOS | Payloads and data stored in hidden files, alternate data streams, NTFS extended attributes, macOS resource forks and Linux or macOS xattrs |
| Storage and mounts | T1564.005 Hidden File System, T1564.013 Bind Mounts | Windows, Linux, macOS (bind mounts: Linux) | Data in unallocated or custom file systems; a process's /proc entry masked by a bind mount |
| Accounts and processes | T1564.002 Hidden Users, T1564.003 Hidden Window, T1564.010 Process Argument Spoofing, T1564.011 Ignore Process Interrupts | Windows, Linux, macOS (argument spoofing: Windows) | Accounts kept off login screens, windows the user never sees, command lines rewritten in memory, processes that survive logoff |
| Isolated execution | T1564.006 Run Virtual Instance | ESXi, Linux, macOS, Windows | Malicious code running inside a guest the host sensor cannot inspect |
| Security tooling and applications | T1564.007 VBA Stomping, T1564.008 Email Hiding Rules, T1564.012 File/Path Exclusions | Windows, Linux, macOS, Office Suite | Office macro source replaced with benign text, mailbox rules that bury alerts, payloads placed in scanner exclusions |
The email variant has a full page: see MITRE ATT&CK T1564.008 Hide Artifacts.
How adversaries use it: cases from ATT&CK and vendor research
ATT&CK v20 links about 180 procedure examples across T1564 and its sub-techniques, with Hidden Files and Directories (T1564.001) and Hidden Window (T1564.003) the most common.
- Hidden scheduled tasks (Tarrask, S1011): Microsoft reported in April 2022 that the group it then called HAFNIUM (now Silk Typhoon) used Tarrask to hide scheduled tasks by deleting the SD (security descriptor) value under
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Schedule\TaskCache\Tree. The task kept running but disappeared from Task Scheduler and task queries. Deleting the value needed SYSTEM rights, obtained through token theft from lsass.exe. See the Silk Typhoon Threat Actor Profile Guide and T1053 Scheduled Task/Job Defensive Guide. - Ransomware inside a virtual machine (Ragnar Locker, S0481): Sophos reported in May 2020 that a Group Policy task ran msiexec.exe to install a 122 MB unsigned MSI holding VirtualBox 3.0.4 and a stripped Windows XP image. The installer mapped local, removable and network drives into the guest as shared folders, and the ransomware encrypted host data from inside the VM, out of reach of host endpoint protection. ATT&CK records the same pattern for Maze (S0449), and LoudMiner (S0451) ran a cryptominer in a QEMU or VirtualBox guest.
- Payloads in exclusions (T1564.012): ATT&CK records APT38 (G0082) adding Microsoft Defender exclusions for
C:\Windows\System32, Turla (G0010) placing LunarWeb install files in directories excluded from scanning, and The Gentlemen Ransomware (S9051) adding its own executable to the endpoint product's process exclusions. See the APT38 Threat Actor Profile Guide and Turla Threat Actor Profile. - Alternate data streams (T1564.004): APT32 (G0050) used NTFS alternate data streams to hide payloads, and PowerDuke (S0139), WastedLocker (S0612) and BitPaymer (S0570) stored or executed code from streams.
Where NHI and identity fit
Two sub-techniques hide identities directly. Hidden Users (T1564.002) keeps a created or modified account off the login window and settings panes; ATT&CK describes macOS accounts with a user ID under 500 or the Hide500Users login window preference. Email Hiding Rules (T1564.008) assume a compromised mailbox identity. Treat any account that local interfaces do not show as an unmanaged identity: reconcile local accounts on servers and endpoints against your directory and identity governance records, not against what the login screen lists. See MITRE ATT&CK T1136 Create Account Guide and MITRE ATT&CK T1078 Valid Accounts Guide.
Machine identities matter for the other variants too. Hiding a scheduled task, adding a Defender exclusion or running a hypervisor service needs administrator or SYSTEM rights, so the service accounts, deployment tools and Group Policy rights that can change endpoint configuration at scale are what an attacker reuses. Keep the identities that can push software or change security policy few, monitored and separate from day-to-day administration.
What to detect and where: ATT&CK v20 data components
ATT&CK v20 attaches detection strategy DET0502, Detection Strategy for Hidden Artifacts Across Platforms, to the parent technique, with one analytic per platform.
| Analytic | Platform | Data components and log sources named by ATT&CK | What to look for |
|---|---|---|---|
| AN1384 | Windows | Process Creation (Sysmon 1), File Creation (Sysmon 11), Windows Registry Key Modification (Sysmon 13, 14) | attrib.exe setting hidden or system flags, alternate data stream creation, registry changes that alter file visibility |
| AN1385 | Linux | Command Execution (auditd EXECVE), File Creation (auditd FILE) | chattr setting immutable or append-only flags; new dot files in /etc, /var or /usr/bin |
| AN1386 | macOS | Command Execution and File Creation (unified log) | chflags hidden or SetFile setting the invisible flag; LaunchAgents or LaunchDaemons in hidden or non-standard directories |
| AN1387 | ESXi | Command Execution (ESXi shell), File Metadata (ESXi syslog) | VMX or VMDK files moved or renamed into hidden datastore directories |
| AN1388 | Office Suite | Application Log Content (Microsoft 365 unified audit log) | Hidden macro streams or hidden objects in documents, correlated with unusual execution |
Practical reference points that complement the ATT&CK analytics:
- Sysmon Event ID 15 (FileCreateStreamHash): logs when a named file stream is created and hashes both the main and named stream. Microsoft notes it targets the Zone.Identifier mark of the web, so filter that stream and alert on other stream names, especially executable content. See the Sysmon Guide.
- Scheduled task telemetry: Microsoft's Tarrask guidance is to enable and centralise Security Event ID 4698 (scheduled task created) and the Microsoft-Windows-TaskScheduler/Operational log, neither audited by default, and to alert on deletion of SD values under TaskCache\Tree. See the Windows Event Log Guide.
- Microsoft Defender Antivirus events: Event ID 5007 records a configuration change with old and new values, which includes new exclusions; Event ID 5013 records a change blocked by tamper protection.
- Virtualisation activity: DET0321 looks for VBoxManage.exe, vmware-vmx.exe or vmwp.exe launched headless or with suppressed notifications, QEMU or VirtualBox started with unusual flags, VM images written to atypical directories, and on ESXi direct execution of /bin/vmx or edits to /etc/rc.local.d/local.sh. See the ESXi Logs Detection Guide.
Cross-view hunts that find what is already hidden
Each of these compares a privileged or raw view against the normal view and investigates the difference.
| Hunt | Normal view | Raw or authoritative view | Sub-technique |
|---|---|---|---|
| Hidden scheduled tasks | Task Scheduler and task query output | TaskCache\Tree registry keys, flagging any without an SD value | T1564 (Tarrask procedure) |
| Unregistered VMs on ESXi | vCenter inventory and vim-cmd vmsvc/getallvms | Running VM processes on the host, as ATT&CK's M1047 guidance suggests comparing | T1564.006 |
| Unexpected hypervisors on endpoints | Approved software list | Installed services, drivers and VM image files found by EDR or inventory | T1564.006 |
| Exclusion drift | Intended exclusion baseline in Intune, Configuration Manager or Group Policy | Effective exclusions reported per device, and Event ID 5007 history | T1564.012 |
| Unknown local accounts | Login window and user settings | Local account database reconciled against the directory and IGA records | T1564.002 |
| Streams and xattrs carrying code | Directory listing | EDR or forensic collection of named streams and extended attributes, scored by size and content type | T1564.004, T1564.014 |
Run hunts from a trusted management channel, not an interactive session on the suspect host. For ESXi evidence handling, see VMware ESXi Forensics.
Mitigations: ATT&CK mappings and practical controls
The parent technique maps to four ATT&CK v20 mitigations. Sub-techniques add others, listed in the second half of the table. Rows marked as NHI Mgmt Group recommendations are practical controls, not ATT&CK mappings.
| Control | Source | What it does against hiding |
|---|---|---|
| M1049 Antivirus/Antimalware | ATT&CK, parent and T1564.012 | Review and audit file and folder exclusions and limit their scope to what is required |
| M1013 Application Developer Guidance | ATT&CK, parent, T1564.009, T1564.012 | Install applications in protected system paths so they do not need broad custom exclusions |
| M1047 Audit | ATT&CK, parent, T1564.006, T1564.008 | Periodically audit virtual machines for abnormalities; audit mailbox rules |
| M1033 Limit Software Installation | ATT&CK, parent and T1564.003 | Restrict software that can create hidden desktops, such as hVNC, to groups that need it |
| M1038 Execution Prevention | ATT&CK, T1564.003 and T1564.006 | Application control to stop unapproved virtualisation software and window-hiding programs |
| M1042 Disable or Remove Feature or Program | ATT&CK, T1564.006 and T1564.007 | Disable Hyper-V and Windows Sandbox where not needed; restrict unneeded VBA components |
| M1028 Operating System Configuration | ATT&CK, T1564.002 | Group Policy and protected configuration to restrict creating or hiding users |
| M1022 Restrict File and Directory Permissions | ATT&CK, T1564.004 | Adjust read and write permissions for NTFS extended attributes, after testing |
| M1040 Behavior Prevention on Endpoint | ATT&CK, T1564.014 | Scan extended attributes alongside file contents in review and deployment pipelines |
| Tamper-protected, centrally managed exclusions | NHI Mgmt Group recommendation, based on Microsoft documentation | Stops local administrators and malware adding Defender exclusions on managed devices |
| Logging coverage for hiding actions | NHI Mgmt Group recommendation | Sysmon 1, 11, 13, 15; Event 4698 and TaskScheduler/Operational; Defender 5007; auditd and unified log rules from DET0502 |
| Tiered administrative identities | NHI Mgmt Group recommendation | Most hiding needs admin or SYSTEM rights; fewer and better-watched admin and deployment identities shrink who can hide |
On Microsoft Defender specifically, Microsoft states that exclusions are usually not needed and that excluded items are not scanned. Tamper protection for antivirus exclusions requires platform version 4.18.2211.5 or later, DisableLocalAdminMerge enabled, and management by Intune only or Configuration Manager only with the Defender for Endpoint sensor on. For the tuning side, see the EDR Tuning and Exclusions Management Guide; for application control, see App Control for Business (WDAC).
How to implement
- Inventory the hiding places you allow. Export effective antivirus and EDR exclusions per device group, list approved hypervisors and sandboxes, and list accounts with rights to change security policy or push software.
- Close the logging gaps. Deploy Sysmon (or EDR equivalents) with process, file, registry and stream events; enable Event ID 4698 and the TaskScheduler/Operational log; collect Defender 5007 and 5013; add auditd rules for chattr and system path writes; forward ESXi shell and syslog.
- Baseline before alerting. Run each detection in log-only mode for two to four weeks. Software installers, backup agents and developer tooling legitimately write streams, set attributes and run virtual machines; record them as named exceptions with an owner.
- Turn on high-fidelity alerts first. SD value deletion under TaskCache\Tree, Defender exclusion changes outside the management channel, unregistered VM processes on ESXi and hypervisor installation on non-developer endpoints are rare enough to alert on directly.
- Remove the hiding places. Move exclusion management to the central tool with tamper protection, narrow broad folder exclusions, block unapproved virtualisation software with application control, and disable Hyper-V and Windows Sandbox where not needed.
- Schedule the cross-view hunts. Run the hunts in the table above monthly, and after any intrusion or major change.
- Test and keep a rollback. Pilot application control and exclusion changes in audit mode on a small ring; keep the previous policy version so a breaking change can be reverted in one step, and confirm the rollback path before moving to production rings.
How to test your coverage
Validate detections in an isolated test environment, under an authorised test plan, using the atomic tests your purple team or breach and attack simulation platform provides for each sub-technique. For each test, confirm three things: the telemetry arrived, the analytic fired, and an analyst could tell what was hidden and where. Test the cross-view hunts by planting benign artefacts, such as a harmless named stream or a test scheduled task, and confirming the hunt finds them. Microsoft documents checking a Defender path exclusion with MpCmdRun.exe -CheckExclusion and an EICAR test file, which suits exclusion validation.
Decision guidance
- Alert or hunt: alert on hiding actions that are rare and high value (SD deletion, exclusion changes, unregistered VMs). Hunt for the common, noisy ones (hidden files, hidden windows, alternate data streams), where volume would bury an alert queue.
- Block virtualisation or monitor it: block on servers and standard user endpoints, where a hypervisor has no business reason. Monitor on developer and test machines, where blocking would push people to unmanaged devices.
- Small organisations: rely on the EDR vendor's built-in behaviour detections, manage exclusions centrally with tamper protection, and run the scheduled task and exclusion hunts quarterly.
- Large organisations: own DET0502-style analytics in your SIEM, baseline per device role, and track the hunts as recurring detection engineering work with named owners.
Detection and measurement
- Telemetry coverage: percentage of Windows, Linux, macOS and ESXi hosts sending the log sources DET0502 names.
- Unmanaged exclusions: number of devices whose effective exclusions differ from the central baseline (target: zero).
- Tamper protection for exclusions: percentage of eligible Windows devices reporting exclusions as protected.
- Unapproved hypervisors: count of endpoints and servers running virtualisation software outside the approved list.
- Hunt cadence: cross-view hunts completed on schedule, with findings closed within the agreed time.
Common failure patterns
- Trusting the user interface: checking Task Scheduler, the login window or a file browser and declaring a host clean. Tarrask tasks were invisible there but present in the registry.
- Exclusions nobody owns: broad folder exclusions added for a performance problem years ago, set locally and never reviewed, which is exactly where APT38 and Turla placed tooling.
- Only watching the guest-visible layer: treating a quiet host sensor as proof of safety when a virtual machine on that host is doing the work, as Ragnar Locker and Maze showed.
- Logging off by default: assuming scheduled task creation is logged. Microsoft notes that Event ID 4698 and the TaskScheduler/Operational log are not audited by default.
Framework mapping
| Framework | Reference | Relevance to T1564 |
|---|---|---|
| MITRE ATT&CK v20 | T1564, tactic TA0005 Stealth; DET0502 | Technique definition, sub-techniques and detection strategy |
| MITRE ATT&CK v20 mitigations | M1049, M1013, M1047, M1033 (parent); M1038, M1042, M1028, M1022, M1040 (sub-techniques) | Mapped mitigations as listed above |
| NIST SP 800-53 Rev 5 | SI-4 System Monitoring; AU-6 Audit Record Review, Analysis, and Reporting | Collecting and reviewing the telemetry that exposes hiding actions |
| NIST SP 800-53 Rev 5 | SI-3 Malicious Code Protection; CM-6 Configuration Settings | Scanner coverage and governed exclusion settings |
| NIST SP 800-53 Rev 5 | CM-7 Least Functionality; CM-8 System Component Inventory | Removing unneeded virtualisation features; knowing what software and VMs exist |
| NIST CSF 2.0 | DE.CM-09; DE.AE-02; PR.PS-01 | Monitoring runtime environments, analysing adverse events, configuration management |
For the full mitigation catalogue, see ATT&CK Mitigations.
Practitioner checklist
- Collect Sysmon 1, 11, 13 and 15 (or EDR equivalents), Event ID 4698 and the TaskScheduler/Operational log.
- Collect Defender Event IDs 5007 and 5013 and alert on exclusion changes outside the management channel.
- Manage Defender exclusions centrally with tamper protection and
DisableLocalAdminMerge, and review every exclusion with an owner. - Block unapproved hypervisors with application control, and disable Hyper-V and Windows Sandbox where not needed.
- Compare ESXi running VM processes against vCenter inventory on a schedule.
- Hunt monthly for scheduled tasks without an SD value and for local accounts missing from the directory.
- Add auditd and macOS unified log rules for attribute changes and hidden launch items (see the Linux Logging and auditd for Defenders Guide).
- Limit and monitor the identities that can deploy software or change security policy at scale.
- Test each sub-technique in an isolated lab and record telemetry, alert and analyst outcome.
Standards and references
- MITRE ATT&CK: T1564 Hide Artifacts
- MITRE ATT&CK: T1564.006 Run Virtual Instance
- MITRE ATT&CK: T1564.012 File/Path Exclusions
- Microsoft Learn: Sysmon
- Microsoft Learn: Configure custom exclusions for Microsoft Defender Antivirus
- Microsoft Learn: Tamper protection for antivirus exclusions
- Microsoft Security Blog: Tarrask malware uses scheduled tasks for defense evasion
- Sophos: Ragnar Locker ransomware deploys virtual machine to dodge security
Related NHI Mgmt Group resources: ATT&CK Stealth and Defense Impairment Tactics Guide, MITRE ATT&CK T1564.008 Hide Artifacts, T1685 Disable or Modify Tools Defensive Guide, Hidden VNC (hVNC), EDR Guide.