Sigma rule: Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-1f15e43ceb6d, updated 2023-10-09T00:00:00.000Z.
Rule
- Title
- Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream
- Status
- test
- Level
- medium
- Author
- Scoubi (@ScoubiMtl)
- Date
- 2023-10-09
- File
- rules/windows/file/file_event/file_event_win_susp_hidden_dir_index_allocation.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects the creation of hidden file/folder with the "::$index_allocation" stream. Which can be used as a technique to prevent access to folder and files from tooling such as "explorer.exe" and "powershell.exe"
Log source
- product
- windows
- category
- file_event
Detection
selection:
# Note: Both Sysmon and ETW are unable to log the presence of such streams in the CommandLine. But EDRs such as Crowdstrike are able to use e.g. CMD console history. Users are advised to test this before usage
TargetFilename|contains: '::$index_allocation'
condition: selectionFalse positives (as the rule lists them)
- Unlikely
Tags
- attack.stealth
- attack.t1564.004
MITRE ATT&CK ids this rule names
Related rules
References
- https://twitter.com/pfiatde/status/1681977680688738305
- https://soroush.me/blog/2010/12/a-dotty-salty-directory-a-secret-place-in-ntfs-for-secret-files/
- https://sec-consult.com/blog/detail/pentesters-windows-ntfs-tricks-collection/
- https://github.com/redcanaryco/atomic-red-team/blob/5c3b23002d2bbede3c07e7307165fc2a235a427d/atomics/T1564.004/T1564.004.md#atomic-test-5---create-hidden-directory-via-index_allocation
- https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-fscc/c54dec26-1551-4d3a-a0ea-4fa40f848eb3
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_susp_hidden_dir_index_allocation.yml
Sources and licences
SigmaHQ
"Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream" by Scoubi (@ScoubiMtl) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/file/file_event/file_event_win_susp_hidden_dir_index_allocation.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: Potential Hidden Directory Creation Via NTFS INDEX_ALLOCATION Stream",
entity page, dataset version ref-1f15e43ceb6d, updated 2023-10-09T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a8f866e1-bdd4-425e-a27a-37619238d9c7 (accessed 2026-11-03).
Underlying source: SigmaHQ rule a8f866e1-bdd4-425e-a27a-37619238d9c7, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.