Skip to main content
ExplainerWindows SecurityExplainer· 4 min read· in Guides

How Windows Secretly Tags Every Downloaded File to Trigger Security Sandboxes

Whenever a file is downloaded from the internet, Windows attaches an invisible Alternate Data Stream that dictates how aggressively the operating system will restrict it.

By Nabil Faris

Cybersecurity Defenders 45%Red Team Analysts 30%Enterprise IT Administrators 25%
Cybersecurity Defenders
Value the metadata as a crucial forensic tool and automated defense trigger.
Red Team Analysts
Focus on the structural limitations of the NTFS-exclusive tag to develop bypass techniques.
Enterprise IT Administrators
Focus on the operational friction caused by aggressive document sandboxing.

Perspectives this story doesn't cover

  • Everyday Home Users
  • Third-Party Antivirus Vendors

Common questions

Can I see the Mark of the Web on my files?

Yes. You can view the hidden stream by opening the Command Prompt, navigating to your Downloads folder, and typing `dir /r`. This will display the hidden Zone.Identifier attachments beneath your standard files.

Does unblocking a file make it safe?

No. Clicking 'Unblock' in the file's properties simply deletes the security tag, telling Windows to stop sandboxing it. It does not scan or remove any actual malware inside the file.

Why do files on my USB drive lose this tag?

The Mark of the Web relies on Alternate Data Streams, a feature exclusive to the NTFS file system. Most USB flash drives use the FAT32 or exFAT file systems, which cannot store these hidden streams, causing the tag to be erased during the transfer.

Do all web browsers apply this tag?

All major modern browsers, including Google Chrome, Mozilla Firefox, and Microsoft Edge, automatically write the Zone.Identifier stream when saving a file to an NTFS drive.

The short answer

  • Every file downloaded from the internet to a modern Windows PC receives a hidden metadata tag called the Mark of the Web.
  • The tag is stored in an Alternate Data Stream, making it invisible in standard File Explorer views and keeping the file size unchanged.
  • Windows uses this tag to trigger security features like Microsoft Defender SmartScreen and Office Protected View.
  • Transferring a tagged file to a non-NTFS file system, such as a FAT32 USB drive, permanently erases the security metadata.

On September 10, 2026, technology outlet MakeUseOf published a technical breakdown by researcher Oluwademilade Afolabi detailing a silent operation that occurs every time a user saves a file from the internet. When a 15-megabyte PDF or a software installer lands in a Windows Downloads folder, the operating system does not just save the document. It attaches a hidden metadata receipt, completely invisible to standard File Explorer views, that records exactly where the data came from.[1]

This hidden receipt is officially known as the Mark of the Web (MotW). It relies on a feature of the NT File System (NTFS) called Alternate Data Streams. While the primary data stream holds the actual contents of the image or document, Windows appends a secondary, concealed stream named Zone.Identifier to the same file.[3]

This secondary stream acts as a permanent security context for the file. According to documentation from the MITRE ATT&CK framework, which tracks this mechanism under sub-technique T1553.005, the operating system uses this metadata to determine how aggressively to restrict the file when a user attempts to open it.[2]

Inside the Zone.Identifier stream, Windows assigns a specific ZoneId integer. A value of 0 indicates a file created on the local machine, 1 represents the Local Intranet, 2 marks Trusted Sites, 3 designates the general Internet, and 4 flags Restricted Sites.

The Zone.Identifier stream assigns an integer to track the exact network origin of a downloaded file.

The vast majority of web downloads receive a ZoneId=3 assignment. When a user downloads a file via Google Chrome, Mozilla Firefox, or Microsoft Edge, the browser writes this integer into the Alternate Data Stream. Modern browsers frequently go a step further, embedding the exact HostUrl and ReferrerUrl into the stream to create a forensic record of the download's origin.[3]

Because this data lives in an Alternate Data Stream, it does not alter the primary file hash, nor does it increase the file size reported by the operating system. A user can only see the stream by opening the Windows Command Prompt and executing a dir /r command, which lists the hidden $DATA attachments beneath the standard file names.[1]

Because this data lives in an Alternate Data Stream, it does not alter the primary file hash, nor does it increase the file size reported by the operating system.

The utility of this hidden tag becomes apparent the moment a user double-clicks the file. If the downloaded item is an executable program carrying a ZoneId=3 tag, Windows Defender SmartScreen intercepts the launch sequence. The security software checks the file's cryptographic signature against a Microsoft allowlist before permitting it to run.[3]

The restrictions are even stricter for productivity documents. Starting with Microsoft Office 10, any Word, Excel, or PowerPoint file carrying the Mark of the Web automatically opens in Protected View. This sandboxed, read-only mode prevents the document from interacting with the broader operating system.[2]

Microsoft Office relies on the Mark of the Web to sandbox potentially dangerous documents in Protected View.

In modern Microsoft 365 environments, the presence of the ZoneId=3 tag triggers an automatic block on all Visual Basic for Applications (VBA) macros. As cybersecurity firm Procirrus notes, this mechanism "closes a critical vector for preview-launched malware," preventing malicious scripts from executing the moment a user clicks a file in an email client.

However, the system has a structural limitation: Alternate Data Streams are exclusive to the NTFS file system. If a user copies a tagged file to a USB flash drive formatted with the older FAT32 standard, or moves it to a Linux machine running an Ext4 partition, the secondary stream is instantly stripped away.[3]

When that same file is subsequently copied back to an NTFS Windows drive, it arrives without its Zone.Identifier. The operating system now views the file as a trusted, locally generated document, and all SmartScreen and Protected View restrictions are bypassed.[3]

Transferring a tagged file to a non-NTFS file system like FAT32 permanently erases its security metadata.

Threat actors actively exploit this file system limitation. Security researchers frequently observe malware distributed inside container formats—such as specific archive types or disk image files—that do not support Alternate Data Streams. When the user extracts the contents, the resulting files land on the hard drive without the Mark of the Web.[2]

Users can manually remove the tag from a legitimate file by right-clicking it, opening the Properties dialog, and checking the "Unblock" box at the bottom of the General tab. This action deletes the Zone.Identifier stream entirely.[1]

Security professionals advise against treating this checkbox as a routine dismissal of an annoying prompt. As Afolabi writes for MakeUseOf, "Removing the tag removes security context, not whatever risk may exist inside the file." Once the tag is gone, the operating system assumes the user has personally vouched for every line of code inside.[1]

Jargon, explained

Alternate Data Stream (ADS)
A feature of the NTFS file system that allows additional, hidden data to be attached to a file without altering its primary contents or reported size.
NTFS
The default file system used by modern Windows operating systems, which supports advanced features like file permissions and Alternate Data Streams.
Protected View
A restricted, read-only sandbox mode in Microsoft Office designed to prevent potentially malicious documents from executing scripts or macros.
SmartScreen
A cloud-based anti-malware component in Windows that checks the reputation and digital signatures of downloaded executables before allowing them to run.
Fileless Malware
A type of cyberattack that relies on legitimate system tools, such as PowerShell or Office macros, to execute malicious commands without installing traditional software.

Sources

Source coverage

4 outlets

3 viewpoints surfaced

Cybersecurity Defenders 45%Red Team Analysts 30%Enterprise IT Administrators 25%
  1. [1]MakeUseOfEnterprise IT Administrators

    Every file you download carries a hidden Windows tag you probably never noticed

    Read on MakeUseOf
  2. [2]MITRE ATT&CKCybersecurity Defenders

    Subvert Trust Controls: Mark-of-the-Web Bypass

    Read on MITRE ATT&CK
  3. [3]WikipediaRed Team Analysts

    Mark of the Web

    Read on Wikipedia
  4. [4]Factlen Editorial Team

    Synthesis by Factlen editorial team

    Read on Factlen Editorial Team

Comments

Stay informed

Every angle. Every day.

Get Guides stories with full source coverage and perspective breakdowns delivered to your inbox.