# 网络标记

**网络标记（Mark of the Web，MotW）** 是 Windows 的一项安全功能，它将下载文件的来源记录为一个区域标识符，存放在名为 Zone.Identifier 的隐藏 NTFS 备用数据流中，以便 Windows、Microsoft Office 和 SmartScreen 在文件被打开或运行之前采取额外的预防措施。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup> Windows 利用这一信息来决定文件在打开前是否应显示安全警告。<sup>[2](https://support.microsoft.com/en-US/Windows/Security/information-about-the-attachment-manager-in-microsoft-windows)</sup>

| 关键事实 | 详情 |
|---|---|
| 存储位置 | 附加在文件上的名为 Zone.Identifier 的隐藏 NTFS 备用数据流（ADS），而非文件本身内部的数据<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup><sup> • </sup><sup>[3](https://office-watch.com/2024/mark-of-the-web/)</sup> |
| 区域值 | 0 本地计算机，1 本地 Intranet，2 受信任站点，3 Internet，4 受限站点；Internet（3）通常与 MotW 触发的保护机制相关联<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup> |
| 写入者 | Internet Explorer、Edge、Outlook、Chrome 和 Firefox，直接写入或通过 IAttachmentExecute 接口写入<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup> |
| 触发内容 | 对可执行文件的 SmartScreen 信誉检查、Office 保护视图，以及默认阻止来自 Internet 的文件中的 VBA 宏<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup><sup> • </sup><sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup><sup> • </sup><sup>[3](https://office-watch.com/2024/mark-of-the-web/)</sup> |
| 文件系统限制 | 需要 NTFS；复制到 FAT 卷时该数据流会丢失，在 FAT32 上则会静默失败<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup><sup> • </sup><sup>[6](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)</sup> |
| 主要绕过类别 | 不支持 ADS 的容器格式（ISO、VHD）以及无法传播该标记的压缩工具<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup><sup> • </sup><sup>[7](https://www.zscaler.com/blogs/cybersecurity-best-practices/iso-files)</sup> |
| 起源 | 随 Windows XP Service Pack 2 的本地计算机区域锁定功能引入，建立在 Internet Explorer 4.0 于 1997 年推出的安全区域之上<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup><sup> • </sup><sup>[8](https://news.microsoft.com/source/1997/06/03/microsoft-announces-innovative-security-zones/)</sup> |

## 网络标记是什么

MotW 是关于文件来源的元数据，而非文件内容本身。当文件从 Internet 下载时，Windows 会为其附加一个名为 Zone.Identifier 的隐藏 NTFS 备用数据流，其中携带 MotW 值。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup> 由于它是 NTFS 文件系统的属性而非文档的组成部分，MotW 不会随文件内容一起保存；它出现在资源管理器属性对话框的“安全”标签下，且在 FAT32 驱动器上不存在。<sup>[3](https://office-watch.com/2024/mark-of-the-web/)</sup>

来自 Internet 的文件携带一个 ZoneId 条目，值为 3 表示 Internet 区域。<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup><sup> • </sup><sup>[7](https://www.zscaler.com/blogs/cybersecurity-best-practices/iso-files)</sup> 应用程序读取该数据流来决定对文件的信任程度：Office 可能会在保护视图中打开带标记的文档，Windows Defender SmartScreen 则会处理带标记的可执行文件。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup>

## 工作原理

**区域标识符。** Zone.Identifier 数据流存储五种区域值之一：0 表示本地计算机，1 表示本地 Intranet，2 表示受信任站点，3 表示 Internet，4 表示受限站点。<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup>

**谁写入标记。** 所有处理下载或附件的主要 Windows 软件——包括 [Internet Explorer](https://www.edgepedia.org/zh/internet-explorer)、Edge、Outlook、Chrome 和 Firefox——都会写入 Zone.Identifier 数据流，方式可以是直接写入，也可以通过 IAttachmentExecute 接口写入，该接口的行为由附件管理器中的 SaveZoneInformation 属性控制。<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup> 应用程序写入该标记的推荐方式是使用 IAttachmentExecute::Save() API，它会应用客户端的配置并保持应用程序与格式变更的兼容性。<sup>[9](https://textslashplain.com/2022/12/02/mark-of-the-web-additional-guidance/)</sup>

**标记触发什么。** 从 MS Office 10 开始，携带 MotW 的 Office 文件可能会在保护视图中打开，该视图可以只读模式打开文件、禁用编辑，并禁用宏或活动内容。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup><sup> • </sup><sup>[2](https://support.microsoft.com/en-US/Windows/Security/information-about-the-attachment-manager-in-microsoft-windows)</sup> 携带 MotW 的可执行文件会由 SmartScreen 处理，后者将其与已知程序的允许列表进行比对，当文件不受信任时向用户发出警告。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup> Office 2016 增加了一项设置（后来回溯移植到 Office 2013），可禁用带 MotW 标记文件中的宏，并显示最终用户无法轻易关闭的警告。<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup>

在搭载 Chromium 浏览器的当前 [Windows 11](https://www.edgepedia.org/zh/windows-11) 上进行的实证测试发现，直接下载、blob: URL 下载以及通过资源管理器解压受密码保护的 ZIP 文件，都会产生 ZoneId=3 的文件，并被 SmartScreen 阻止。<sup>[10](https://attackd.com/blog/smartscreen-and-motw/)</sup>

## 历史与演变

区域概念早于 MotW。1997 年，随着 Internet Explorer 4.0 的发布，微软引入了安全区域，允许用户和管理员根据站点的来源、协议、域名或目录将网络划分为具有不同安全设置的区域；IE 4.0 附带四个预定义区域（Intranet、受信任 Extranet、通用 Internet 和不受信任）。<sup>[8](https://news.microsoft.com/source/1997/06/03/microsoft-announces-innovative-security-zones/)</sup>

网络标记本身是在 Windows XP Service Pack 2 中作为本地计算机区域锁定功能的一部分引入的，允许将文件标记为来源于 Internet 区域。<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup> 最早的形式有所不同：Internet Explorer 最初通过在页面内嵌入 HTML 注释来标记保存的网页，后来该机制通过 NTFS Zone.Identifier 数据流扩展到了其他文件类型。<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup> [Windows 10](https://www.edgepedia.org/zh/windows-10) 开始在该数据流中保留原始 URL 信息，而不仅仅是 ZoneID。<sup>[9](https://textslashplain.com/2022/12/02/mark-of-the-web-additional-guidance/)</sup>

## 滥用与绕过

MotW 是一种客户端信任信号，已记录的绕过方法可归为少数几类。

**不支持 ADS 的容器格式。** 由于 MotW 是 NTFS 的功能，压缩包（.arj、.gzip）和磁盘映像（.iso、.vhd）内的文件在容器被解压或挂载后可能不会继承该标记。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup> ISO 映像使用的文件系统不支持 ADS，因此虽然 .iso 文件本身带有标记，其中的文件却无法携带 MotW，会被视为本地文件；这使得 ISO 成为一种常见的绕过格式。<sup>[7](https://www.zscaler.com/blogs/cybersecurity-best-practices/iso-files)</sup> 2022 年 11 月 8 日，微软修补了 CVE-2022-41091，该漏洞曾使攻击者能够通过将有效载荷隐藏在 ISO 文件中来绕过 MotW 保护。<sup>[7](https://www.zscaler.com/blogs/cybersecurity-best-practices/iso-files)</sup>

**无法传播标记的压缩工具。** 7-Zip 在从其图形界面双击文件时会传播 Zone.Identifier 数据流，但在通过解压按钮手动解压时，它在历史上不会传播该数据流，无论压缩格式如何。<sup>[4](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)</sup> CVE-2025-0411 存在于 24.09 之前的 7-Zip 版本中，未能为双重压缩的文件传播 MotW 标记，自 2024 年 9 月起被俄罗斯威胁行为者作为零日漏洞利用，针对乌克兰政府和私营组织传播 SmokeLoader。<sup>[11](https://asec.ahnlab.com/en/87091/)</sup> 后来的一个缺陷 CVE-2026-58052 影响 Windows 版 7-Zip 直至 26.01（以及 26.02）：其针对压缩包提供的 Zone.Identifier 数据流的防护机制匹配精确名称 Zone.Identifier，因此一个名为 :Zone.Identifier:$DATA 的精心构造的 RAR5 记录会被 NTFS 规范化为同一数据流，并用 ZoneId=0 覆盖已传播的 Internet 区域标记；第二个名为 ::$DATA 的记录会覆盖文件的默认数据流，从而绕过 SmartScreen 警告并伪造文件内容。<sup>[12](https://nvd.nist.gov/vuln/detail/cve-2026-58052)</sup>

**其他渠道。** 当从 [WebDAV](https://www.edgepedia.org/zh/webdav) 共享文件夹复制文件时，Windows 资源管理器会在不应用标记的情况下处理它们；这在分发 LummaStealer 的 DarkGate 活动中被利用。<sup>[11](https://asec.ahnlab.com/en/87091/)</sup> 该数据流也可以被直接修改；Amadey 加载器曾重写 :Zone.Identifier 数据流以将区域设为零。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup>

**已知事件中的滥用。** 已记录的 MotW 绕过滥用包括：APT29 在 HTML 中嵌入 ISO 映像和 VHDX 文件，APT38 使用 ISO 和 VHD 文件部署恶意软件，QakBot 打包在 ISO 文件中，以及 TA505 使用 .iso 文件部署恶意 .lnk 文件。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup>

**缓解措施。** 微软的指南包括通过 Windows 资源管理器注册表文件关联禁用磁盘映像文件（.iso、.img、.vhd、.vhdx）的自动挂载，以及在 Web 或电子邮件网关处阻止容器文件类型。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup>

## 近期发展

**默认宏阻止。** 2022 年全年，Microsoft 365 for Windows 增加了基于 MotW 的默认阻止来自 Internet 的 Office 文档中的 VBA 宏的功能，用红色阻止栏取代了“启用宏”警告。该推广从 2022 年中期持续到 2023 年初，适用于 Word、Excel、PowerPoint、Access 和 Visio。<sup>[3](https://office-watch.com/2024/mark-of-the-web/)</sup> 当文档位于受信任位置、使用受信任发布者证书进行数字签名，或之前已通过“启用内容”获得信任时，宏仍然被允许。<sup>[3](https://office-watch.com/2024/mark-of-the-web/)</sup>

**传播改进。** 截至 2022 年 12 月的 Windows 11 更新，包含在 .iso 等虚拟磁盘中的文件会继承包含它的 .iso 文件的 MotW，即使嵌入文件自身没有 Zone.Identifier 数据流。<sup>[9](https://textslashplain.com/2022/12/02/mark-of-the-web-additional-guidance/)</sup> 2025 年初，包括 7-Zip v24.09 和 Alzip v12.30 在内的压缩工具发布了补丁，旨在解压嵌套压缩包时保留 MotW。<sup>[13](https://iieta.org/journals/ijsse/paper/10.18280/ijsse.160303)</sup>

这些变更并未被第三方软件统一采纳：在 2022 年的变更之后，[WinRAR](https://www.edgepedia.org/zh/winrar)、7-Zip 以及许多其他工具不会像 Windows 资源管理器那样传播 MotW。<sup>[14](https://dfir.ru/2026/06/29/mark-of-the-web-the-rules-changed-the-tools-didnt/)</sup>

## 与其他防御机制的比较

macOS 有一个直接的对应物：com.apple.quarantine 扩展属性，应用于应用程序创建的文件，在首次启动时触发 Gatekeeper 检查。应用程序通过在其 Info.plist 中添加 LSFileQuarantineEnabled 键来选择加入，因此隔离覆盖范围取决于哪些应用程序参与。<sup>[15](https://www.zscaler.com/blogs/cybersecurity-best-practices/gatekeeper)</sup> 文件隔离最初是 [Mac OS X 10.4 Tiger](https://www.edgepedia.org/zh/mac-os-x-tiger) 中的下载验证功能，并在 Snow Leopard 10.6 中扩展。<sup>[15](https://www.zscaler.com/blogs/cybersecurity-best-practices/gatekeeper)</sup>

SmartScreen 在 MotW 的基础上，将带标记的可执行文件与已知程序的允许列表进行比对。<sup>[1](https://attack.mitre.org/techniques/T1553%2F005/)</sup> MotW 的已知弱点是结构性的：它仅存在于 NTFS 上，可以被删除或重写，且第三方工具的传播方式不一致。<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup><sup> • </sup><sup>[14](https://dfir.ru/2026/06/29/mark-of-the-web-the-rules-changed-the-tools-didnt/)</sup>

## 实际影响与局限

**策略控制。** 管理员可以通过附件管理器策略 DoNotPreserveZoneInformation 管理 Windows 是否用区域信息标记附件，适用于 Windows 10 版本 1703 及更高版本，路径为 ./User/Vendor/MSFT/Policy/Config/AttachmentManager/DoNotPreserveZoneInformation。<sup>[6](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)</sup> 如果未配置该策略，Windows 默认会用区域信息标记文件附件。<sup>[6](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)</sup>

**文件系统与路径限制。** 区域保留需要 NTFS，在 FAT32 上会静默失败。<sup>[6](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)</sup> Zone.Identifier 数据流在文件于 NTFS 磁盘之间复制时会随文件一起移动，但如果文件被复制到 FAT 文件系统（如 USB 闪存盘或 CD），则会丢失。<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup>

**压缩包解压。** Windows 资源管理器会将 MotW 数据流传播到从 ZIP 压缩包中解压的每个文件，文件属性对话框底部的“解除锁定”按钮会移除该数据流。<sup>[5](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)</sup> 许多压缩工具会将标记从下载的 ZIP 复制到解压后的文件，但有时需要配置，例如 7-Zip。<sup>[16](https://isc.sans.edu/diary/31732)</sup> 7-Zip 的“传播 Zone.Id 数据流”设置默认为“否”；将其设为“是”或“仅 Office 文件”可重新启用传播。<sup>[10](https://attackd.com/blog/smartscreen-and-motw/)</sup>

**残余缺口。** 即使使用已修补的工具，解压路径也可能不同：在 Windows 11 Enterprise 24H2（Build 26100.1742）上的测试表明，显式解压路径保留了 Zone.Identifier 数据流，而压缩包查看器内的递归执行路径创建了一个临时可执行文件，没有继承 Zone.Identifier。<sup>[13](https://iieta.org/journals/ijsse/paper/10.18280/ijsse.160303)</sup> 一个提议的补救措施是将信任标记转移到通过 IAttachmentExecute 的 Windows 委托模型，包括基于 SetReferrer 的来源传播，以便派生文件获得一致的策略应用。<sup>[13](https://iieta.org/journals/ijsse/paper/10.18280/ijsse.160303)</sup> 由于该标记可能在非 NTFS 卷上丢失、被有漏洞的工具剥离，或在来自 WebDAV 等渠道的文件上缺失，MotW 最好作为与 SmartScreen、宏策略和网关过滤并列的一层防护，而非独立的控制措施。<sup>[6](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)</sup><sup> • </sup><sup>[11](https://asec.ahnlab.com/en/87091/)</sup>

## References

1. [Subvert Trust Controls: Mark-of-the-Web Bypass, T1553.005, MITRE ATT&CK](https://attack.mitre.org/techniques/T1553%2F005/)
2. [Information about the Attachment Manager in Microsoft Windows, Microsoft Support](https://support.microsoft.com/en-US/Windows/Security/information-about-the-attachment-manager-in-microsoft-windows)
3. [Exploring Mark of the Web: Microsoft's Office Macro Protection Feature, Office Watch (2024)](https://office-watch.com/2024/mark-of-the-web/)
4. [Mark-of-the-Web from a Red Team's Perspective, Outflank (2020)](https://www.outflank.nl/blog/2020/03/30/mark-of-the-web-from-a-red-teams-perspective/)
5. [Understanding Local Machine Zone Lockdown, IEInternals (Microsoft Learn archive)](https://learn.microsoft.com/en-us/archive/blogs/ieinternals/understanding-local-machine-zone-lockdown)
6. [Policy CSP - AttachmentManager, Microsoft Learn](https://learn.microsoft.com/en-us/windows/client-management/mdm/policy-csp-attachmentmanager)
7. [Why so, ISO? Mark-of-the-Web, explained, Zscaler](https://www.zscaler.com/blogs/cybersecurity-best-practices/iso-files)
8. [Microsoft Announces Innovative Security Zones (1997 press release)](https://news.microsoft.com/source/1997/06/03/microsoft-announces-innovative-security-zones/)
9. [Mark-of-the-Web: Additional Guidance, Eric Lawrence, text/plain (2022)](https://textslashplain.com/2022/12/02/mark-of-the-web-additional-guidance/)
10. [SmartScreen and MotW: The Forgotten Phishing Obstacle, ATTACKD](https://attackd.com/blog/smartscreen-and-motw/)
11. [Mark of the Web (MoTW) Bypass Vulnerability, AhnLab ASEC](https://asec.ahnlab.com/en/87091/)
12. [CVE-2026-58052, NIST National Vulnerability Database](https://nvd.nist.gov/vuln/detail/cve-2026-58052)
13. [Trust Propagation Failure in the Recursive-Execution Path of Nested Archives, International Journal of Safety and Security Engineering (IIETA)](https://iieta.org/journals/ijsse/paper/10.18280/ijsse.160303)
14. [Mark-of-the-Web: the rules changed, the tools didn't, dfir.ru (2026)](https://dfir.ru/2026/06/29/mark-of-the-web-the-rules-changed-the-tools-didnt/)
15. [Gatekeeping in macOS: Keeping adversaries off our Apples, Zscaler](https://www.zscaler.com/blogs/cybersecurity-best-practices/gatekeeper)
16. [Mark of the Web: Some Technical Details, SANS Internet Storm Center](https://isc.sans.edu/diary/31732)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 网络与安全 › Malware and endpoint threats › Malware by platform and type

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/mark-of-the-web

English original: https://www.edgepedia.org/mark-of-the-web
