Hide Artifacts: NTFS File Attributes T1564.004
Tactic: Stealth
Adversaries may use NTFS file attributes to hide their malicious data in order to evade detection. Every New Technology File System (NTFS) formatted partition contains a Master File Table (MFT) that maintains a record for every file/directory on the partition. Within MFT entries are file attributes, such as Extended Attributes (EA) and Data [known as Alternate Data Streams (ADSs) when more than one Data attribute is present], that can be used to store arbitrary data (and even complete files).
Events covered
8 catalog events are tagged with this technique by at least one rule.
| Provider | Event | Title |
|---|---|---|
| Sysmon | Event ID 1 | Process creation |
| Sysmon | Event ID 11 | FileCreate |
| Sysmon | Event ID 15 | FileCreateStreamHash |
| Security-Auditing | Event ID 4688 | A new process has been created. |
| Defender-DeviceProcessEvents | any | Process activity (any) |
| ESF | exec | Process Execution (Notify) |
| PowerShell | Event ID 4103 | Payload Context: ContextInfo User Data: UserData. |
| PowerShell | Event ID 4104 | Creating Scriptblock text (MessageNumber of MessageTotal). |
Authoring guide
Patterns shared across the 34 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 (24 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.
Top indicator values (362 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.
Exclusions (39 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.
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.
Sigma 23 rules
- Execute From Alternate Data Streams
- Exports Registry Key To an Alternate Data Stream
- HackTool Named File Stream Created
- Hidden Executable In NTFS Alternate Data Stream
- Hidden Flag Set On File/Directory Via Chflags - MacOS
- Insensitive Subfolder Search Via Findstr.EXE
- NTFS Alternate Data Stream
- Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream
- Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream - CLI
- Potential Rundll32 Execution With DLL Stored In ADS
- Powershell Store File In Alternate Data Stream
- PrintBrm ZIP Creation of Extraction
- Remote File Download Via Findstr.EXE
- Run PowerShell Script from ADS
- Suspicious Diantz Alternate Data Stream Execution
- Suspicious Extrac32 Alternate Data Stream Execution
- Suspicious File Download From File Sharing Websites - File Stream
- Unusual File Download from Direct IP Address
- Unusual File Download From File Sharing Websites - File Stream
- Use NTFS Short Name in Command Line
- Use NTFS Short Name in Image
- Use Short Name Path in Command Line
- Use Short Name Path in Image
Elastic 3 rules
- Alternate Data Stream Creation/Execution at Volume Root Directory
- Unusual File Creation - Alternate Data Stream
- Unusual Process Execution Path - Alternate Data Stream
Splunk 7 rules
- Expand.exe Execution (PowerShell)
- Expand.exe Execution (Sysmon)
- Expand.exe Execution (Windows Event Log)
- Windows Alternate DataStream - Base64 Content
- Windows Alternate DataStream - Executable Content
- Windows Alternate DataStream - Process Execution
- Windows SymbolicLink-Testing-Tools Utility Execution