File & folder access
Zone.Identifier (Mark of the Web)
Zone.Identifier cheat sheet: Mark of the Web ADS, ZoneId 0 to 4, ReferrerUrl and HostUrl per browser, loss and bypass cases, and collection from the $MFT.
- Location
- <file>:Zone.Identifier (NTFS alternate data stream)
- Proves
- A file came from the internet or another zone, often with the page and URL it came from
- Timestamps
- No date in the stream; date it with the host file $SI/$FN creation times and USN records, UTC
- Retention
- Lives with the file on NTFS; lost on copy to FAT32/exFAT; removed by Unblock-File; propagation to extracted files varies by tool
- Access
- Readable by anyone who can read the file (dir /r, Get-Content -Stream); usually resident, so captured by a raw $MFT copy
- Evidence of
- File & folder accessNetwork & remote access
- Type
- File / file system
- Windows
- XPVista / 78 / 8.11011
- KAPE target
- $MFT
- Velociraptor
- Windows.Triage.Targets:$MFT
Tools
Compare all tools- MFT ParserIn browser
- MFTECmdCLI
- StreamsCLI
- VelociraptorPlatform · open source
- PowerShellCLI · built into Windows
What it is
When a browser, e-mail client or other application using the Windows Attachment Manager saves a file that came from the internet, it attaches a small text alternate data stream named Zone.Identifier to it. This is the Mark of the Web (MOTW): Windows uses it to show "This file came from another computer" warnings, trigger SmartScreen, and open Office documents in Protected View or block their macros. For investigators, the stream records the security zone of origin and, with modern browsers, the exact download URL and referring page.
Location
| Windows version | Location | Notes |
|---|---|---|
| XP SP2 and later | <file>:Zone.Identifier on NTFS volumes | Named $DATA attribute of the downloaded file's $MFT record |
| All | Not stored on FAT32/exFAT | These file systems have no alternate data streams |
Typical content:
[ZoneTransfer]
ZoneId=3
ReferrerUrl=https://example.org/downloads/
HostUrl=https://cdn.example.org/files/setup.zip
The stream is small, so it is usually resident in the MFT record and survives in the $MFT even when the file content is gone.
What it proves
- Origin: the file was saved from a zone other than the local machine, usually the Internet (ZoneId 3).
- Source URL:
HostUrlis the URL the file was downloaded from;ReferrerUrlthe page that led to it. Chromium-based browsers (Chrome, Edge) write both; Firefox has done so since version 67 outside private browsing. - Delivery technique:
HostUrl=about:internetor ablob:URL points to files generated in the browser, typical of HTML smuggling. - It does not prove the file was opened or executed, and its absence does not prove the file was created locally (see Retention).
Key fields
| Field | Meaning |
|---|---|
ZoneId=0 | Local machine |
ZoneId=1 | Local intranet |
ZoneId=2 | Trusted sites |
ZoneId=3 | Internet |
ZoneId=4 | Restricted sites |
ReferrerUrl | Page the user was on when the download started (browser-dependent) |
HostUrl | Direct URL of the downloaded file (browser-dependent) |
Timestamps
| Timestamp | Set when | Format | Pitfalls |
|---|---|---|---|
| Inside the stream | None | — | The stream holds no date |
| Host file creation ($SI / $FN) | File written to disk, usually at download | NTFS, UTC | Browsers write a temporary file then rename it; check the $MFT record and the USN journal |
| USN records of the host file | Stream written to the file | USN journal, UTC | Shows when the mark was added or removed, while the journal still covers that period |
Retention and clearing
- The stream lives as long as the file on NTFS. It is lost when the file is copied to FAT32/exFAT, sent through some transfer channels, or rebuilt by a program that does not preserve streams.
- "Unblock" in file properties and
Unblock-Filein PowerShell delete the stream; removal is visible as a stream change in the USN journal. - Propagation to extracted files depends on the tool: Windows' built-in ZIP extraction propagates the mark; 7-Zip added an option to do it in version 22.00; many other archivers do not.
- Container formats have been used to strip the mark: until the November 2022 security update (CVE-2022-41091), files inside a mounted ISO did not inherit it. Downloads by command-line tools, scripts or SMB copies often carry no mark at all.
- Private-browsing sessions may omit URLs.
Collection
- KAPE target:
$MFT. There is no dedicated target for Zone.Identifier: resident streams are captured in the $MFT. Non-resident streams (unusually long content) require collecting the files themselves. - Velociraptor (
Windows.Triage.Targets):$MFT. For live hunting,Windows.Analysis.EvidenceOfDownloadlists files with ZoneId 3 or 4 and their stream content, andWindows.NTFS.ADSHuntersearches alternate data streams by name and content. - Built-in:
Get-Item C:\Users\alice\Downloads\* -Stream Zone.Identifier -ErrorAction SilentlyContinue | Select-Object FileName, Length
Get-Content C:\Users\alice\Downloads\invoice.iso -Stream Zone.Identifier
dir /r C:\Users\alice\Downloads
more < C:\Users\alice\Downloads\invoice.iso:Zone.Identifier
Parsing tools
- MFTECmd (Eric Zimmerman, free): the $MFT CSV includes a
ZoneIdContentscolumn with the text of resident Zone.Identifier streams. - Streams (Sysinternals, free): lists alternate data streams recursively (
streams -s). - Velociraptor:
Windows.Analysis.EvidenceOfDownloadandWindows.NTFS.ADSHunter. - PowerShell:
Get-Item -StreamandGet-Content -Streamfor quick live review. - Sysmon: event ID 15 (FileCreateStreamHash) logs the creation of the stream when Sysmon is deployed.
Investigation tips
- Filter the MFTECmd output on
ZoneIdContentsto list every file downloaded from the internet, then pivot onHostUrldomains to find the initial payload and correlate with browser artifacts. - Look for
about:internetorblob:host URLs: they indicate files assembled in the browser, a common HTML smuggling technique. - Check ISO, IMG, VHD and archive files in
Downloads, then look for their extracted contents without a mark: a sign of MOTW evasion. - A Zone.Identifier on an
.exe,.js,.htaor.lnkthat later appears in Prefetch or Microsoft Defender logs ties execution back to its download source. - Files in
$Recycle.Binkeep their stream, so deleted downloads can still show their origin. - Absence of the mark is not proof of local creation; consider the file system, the transfer method and the archiver used.
Related artifacts
- Browser artifacts (Chrome, Edge, Firefox)Browser forensics cheat sheet: Chromium and Firefox profile files, History and places.sqlite tables, WebKit and PRTime timestamps, downloads, cookies, cache.
- Master File Table ($MFT)$MFT cheat sheet: FILE records, $SI vs $FN timestamps, resident data, deleted records, sequence numbers, timestomping checks and MFTECmd parsing.
- USN Journal ($UsnJrnl:$J)USN journal cheat sheet: $UsnJrnl:$J and $Max, record fields, reason flags, parent references, default size, rollover, fsutil and MFTECmd parsing.
- LNK shortcut filesLNK cheat sheet: Recent folder shortcuts, first and last open times, embedded target timestamps, volume serial, network share and TrackerDataBlock MAC.
- Microsoft Defender logs and quarantineMicrosoft Defender forensics: Operational events 1116/1117/5001/5007, MPLog files, DetectionHistory, encrypted quarantine, exclusion keys and tampering traces.
- Mounted Disk Images (ISO, IMG, VHD, VHDX)Mounted disk images cheat sheet: ISO/IMG/VHD/VHDX mounts, VHDMP events, MountedDevices, LNK and Jump List traces, Mark-of-the-Web gaps and a detection workflow.
- Outlook data files (PST and OST)Outlook PST/OST cheat sheet: data file locations, mail and deleted items, the Content.Outlook attachment cache, profile keys, new Outlook and parsing.
Glossary terms
- Mark of the Web (MOTW)The Zone.Identifier alternate data stream Windows adds to downloaded files, recording the security zone and often the source URL.
- Alternate Data Stream (ADS)An additional named $DATA stream attached to an NTFS file, invisible in Explorer, used for Mark of the Web and sometimes to hide data.
- Resident dataFile content small enough to be stored directly inside its NTFS MFT record instead of in separate clusters on the volume.
- NTFSNTFS (New Technology File System) is the default Windows file system; its metadata files such as $MFT, $LogFile and $UsnJrnl are core forensic sources.
Guides
- Browser Forensics on Windows: Chrome, Edge and FirefoxInvestigate Chrome, Edge and Firefox on Windows: History, downloads, cookies, sessions, extensions, WebKit and PRTime timestamps, WAL and deleted records.
- Phishing Forensics: MotW, ISO, LNK and Initial AccessTrace a phishing attack from email to first execution: Outlook temp files, Zone.Identifier, ISO and LNK MotW bypass, macros, OneNote, LOLBins and a timeline.