Use this when files carry hidden data streams or downloaded-file warnings.
Alternate Data Streams
Alternate data streams are extra named data attached to an NTFS file, such as file.txt:hidden. Windows uses the Zone.Identifier stream to mark downloads; list streams with dir /r or Get-Item -Stream *.
1. Get-Item <file> -Stream * — streams.
2. Zone.Identifier → downloaded file (Mark of the Web).
3. Remove MOTW: Unblock-File.
4. Read a stream: Get-Content <file> -Stream <name>.
5. Streams are lost when copying to non-NTFS.
file → default data stream + named streams (e.g. Zone.Identifier)
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Common mistakes Narrow the fault
- Ignoring ADS as a malware hiding place.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Zone.Identifier marks files downloaded from the internet.
- Streams do not show in normal directory listings.
- Copying to FAT or exFAT drops alternate streams.
Get-Volume— volumes, filesystem type, health and free spacefsutil fsinfo volumeinfo C:— filesystem featureschkdsk C: /scan— online scanGet-WinEvent -FilterHashtable @{LogName='System';ProviderName='Ntfs'} -MaxEvents 20— NTFS events
ReferenceWhy it matters1 section · depth on demand
Working with streams
Get-Item file.exe -Stream * # list streams
Get-Content file.exe -Stream Zone.Identifier # ZoneId=3 means downloaded from the internet
Unblock-File file.exe # removes Zone.Identifier
dir /r # cmd: show streams
The Zone.Identifier stream ("Mark of the Web") makes Office open files in Protected View and SmartScreen check executables. Streams are lost when files are copied to FAT32/exFAT. Attackers can hide data in streams, so EDR and forensic tools check them.
ReferenceHow it works1 section · depth on demand
In depth
Alternate Data Streams (ADS) are extra named data streams on NTFS files. Windows uses them for the Mark of the Web (Zone.Identifier), which triggers SmartScreen and Office Protected View for downloaded files.
Get-Item .\setup.exe -Stream *
Get-Content .\setup.exe -Stream Zone.Identifier
Unblock-File .\setup.exe # removes Zone.Identifier
dir /r # cmd: show streams
Streams are lost when files are copied to FAT/exFAT or some archives — a common reason MOTW protections are bypassed. Malware sometimes hides data in ADS; security tools scan them.
ReferenceImportant terms & boundaries1 section · depth on demand
Mark of the Web
Files downloaded from the internet get a Zone.Identifier stream with ZoneId=3. SmartScreen and Office Protected View use it, and Office blocks macros in such files. Check or remove:
Get-Content .\file.docx -Stream Zone.Identifier
Unblock-File .\file.docx
Attackers deliver payloads in ISO/VHD containers that historically dropped this mark — patched in 2022.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Filesystem → Alternate Data Streams. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/storage/file-server/ntfs-overview · confidence 94%