Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Alternate Data Streams

Direct answer

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 *.

When to use this

Use this when files carry hidden data streams or downloaded-file warnings.

First 30 seconds

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.

Operational verification

file → default data stream + named streams (e.g. Zone.Identifier)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Microsoft Windows
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformMicrosoft Windows
Scope / prerequisiteUse this when files carry hidden data streams or downloaded-file warnings.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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 references

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.

observation · 1
Key points
  • Zone.Identifier marks files downloaded from the internet.
  • Streams do not show in normal directory listings.
  • Copying to FAT or exFAT drops alternate streams.
Key checks
  • Get-Volume — volumes, filesystem type, health and free space
  • fsutil fsinfo volumeinfo C: — filesystem features
  • chkdsk C: /scan — online scan
  • Get-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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docMicrosoft Windows current

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%
Confirmation

Confirm action

Continue?