Skip to content

Does every file downloaded from the internet carry the Mark of the Web?

Short answer

No. Windows adds Mark of the Web (MOTW) to files from untrusted zones, such as browser downloads and email attachments, but it only applies to NTFS, not FAT32. Files fetched by the OneDrive sync client, files opened with Open in Desktop App, and files saved to an Office Trusted Location also bypass it, and the Unblock checkbox or Unblock-File removes it. The mark is a Zone.Identifier alternate data stream with a ZoneId (3 = Internet), so a missing mark is not proof a file is local.

Mark of the Web (MOTW) is a cornerstone of Windows' defence against malicious documents, which is why analysts must know exactly when it is, and is not, present.

What it is

Per Microsoft, MOTW "is added by Windows to files from an untrusted location, such as the internet or Restricted Zone," for example browser downloads or email attachments. It is stored as an NTFS alternate data stream. Every NTFS file has a main stream, and a named stream's full name has the form <filename>:<stream name>:<stream type>, so the mark lives in file:Zone.Identifier. You can read it with notepad file:Zone.Identifier; under [ZoneTransfer] a ZoneId of 3 means Internet and 4 means Restricted sites.

When it is missing

Microsoft states MOTW "only applies to files saved on an NTFS file system, not files saved to FAT32 formatted devices." On OneDrive and SharePoint, files downloaded by the sync client, or opened via Open in Desktop App, do not get the mark. Files in an Office Trusted Location ignore the MOTW check. And the user can remove it with the Unblock checkbox in Properties or the Unblock-File cmdlet.

Why it matters

Office uses MOTW to block macros in files from the internet by default, so an attacker wants the mark absent: delivery on a FAT32 or non-NTFS container, or a route that strips it. For defenders, "no MOTW" is not evidence of a local origin, and removal of the stream is itself worth hunting for.

Why the distractors are tempting

"Every download, any file system" ignores the NTFS dependency. "Only admins can clear it" is contradicted by Unblock. "Stored in the file's header" confuses it with an out-of-band NTFS stream.

What interviewers want

NTFS stream, Zone.Identifier and ZoneId, the exceptions, and the detection angle.

Likely follow-ups

  • How would you view the Zone.Identifier stream of a file, and what do the ZoneId values mean?
  • Why can a macro-enabled document still run without a warning even though it was originally emailed to the user?
  • What detections would you write for the mark being stripped from a downloaded file?

Sources

Get 100 cybersecurity interview questions + answers

Drop your email and we'll send you the free PDF pack and the flashcard deck.

No spam. Unsubscribe anytime.