Mark-of-the-Web (MotW) is a security feature in Microsoft Windows that tags files downloaded from the internet (or other untrusted sources) as potentially unsafe. Introduced to protect users from malicious files, it helps applications like Microsoft Office, browsers, and Windows itself treat these files with extra caution.
In simple terms: When you download a file from the web, Windows "marks" it behind the scenes so that programs know it came from an untrusted zone (e.g., the internet). This triggers safety measures like warnings or restricted modes.
How Does MotW Work?
- Technical Mechanism: Windows adds a small metadata tag called an Alternate Data Stream (ADS) to the file. The stream is named Zone.Identifier and contains info like the source zone (e.g., ZoneId=3 for Internet).

Example of what the Zone.Identifier might look like (viewable via Notepad or PowerShell):
[ZoneTransfer]ZoneId=3
- ZoneId=3 means "Internet Zone" (most common for downloads).
- Other zones: 0 (Local), 1 (Intranet), 2 (Trusted Sites), 4 (Restricted Sites).
- When is MotW Applied?
- Files downloaded via browsers (Edge, Chrome, Firefox) or email attachments.
- Copied from network shares in certain security zones.
- Not applied to files created locally or from trusted sources.
Key Effects in Applications
- Microsoft Office (Word, Excel, etc.):
- Files with MotW open in Protected View — a read-only mode that disables editing, macros, and active content to prevent malware execution.

- Macros and links are blocked by default.
- You'll see a yellow warning bar: "This file came from the internet and might be unsafe."
- Other Apps:
- Windows SmartScreen may show warnings.
- Executables (.exe) often trigger "Unblock" prompts in file properties.
Why is MotW Important?
MotW is a first line of defense against phishing and drive-by downloads. Many exploits (like malicious Office docs with macros) rely on bypassing or removing this mark. For example:
- In recent vulnerabilities (e.g., zero-days in Office), attackers try to evade MotW to run code without warnings.
- It's part of broader Windows security like SmartScreen and Application Guard.
How to Check or Remove MotW
- Check: Right-click file > Properties > Look for "Unblock" checkbox at the bottom (if present, it has MotW).
- Remove: Check "Unblock" > Apply (safe for trusted files only!).
- PowerShell: Get-Item filename -Stream Zone.Identifier (to view) or Unblock-File filename.
Pro Tip: Never unblock/untrust files from unknown sources — that's how malware often spreads!