superuser5 / archiver-MOTW-support-comparison

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Comparison of MOTW (Mark of the Web) propagation support of archiver software for Windows

Background

On 3 March 2022, Microsoft announced that the default behavior of Office applications on Windows will be changed to block macros in files from the internet (such as email attachment).

An excerpt from the announcement:

VBA macros are a common way for malicious actors to gain access to deploy malware and ransomware. Therefore, to help improve security in Office, we’re changing the default behavior of Office applications to block macros in files from the internet.

...

This change only affects Office on devices running Windows and only affects the following applications: Access, Excel, PowerPoint, Visio, and Word.

The change will begin rolling out in Version 2203, starting with Current Channel (Preview) in early April 2022. Later, the change will be available in the other update channels, such as Current Channel and Monthly Enterprise Channel.

This is a great improvement of defense against malicious Office document files.

According to the announcement, whether blocking macro or not is determined based on MOTW (Mark of the Web) attribute of the file. Applications such as web browsers and email clients put MOTW on downloaded files and email attachments that come from the internet. MOTW is stored in Zone.Identifier NTFS alternate data stream.

To block macro of malicious Office document files that are extracted from archive files, an archiver software has to propagate MOTW to extracted files when an archive file has MOTW. If archiver software does not propagate MOTW, malicious Office documents in archive files can circumvent blocking.

A question came up: "What archiver software can propagate MOTW to extracted files?" So I tested some archiver software and summarized the result.

Comparison table (as of 3 May 2022)

Name Tested version License MOTW propagation Note
"Extract all" built-in function of Windows Explorer Windows 10 21H2 proprietary Yes ✔️
Bandizip Standard Edition 7.25 freeware Yes ✔️ Only for specific file extensions *1
Explzh 8.63 proprietary for commercial use Yes ✔️
WinRAR 6.11 (trial) proprietary Yes ✔️ Only for specific file extensions *2
WinZip 26.0 (trial) proprietary Yes ✔️
7-Zip 21.07 GNU LGPL No ❌
Ashampoo ZIP Free 1.0.7 freeware (registration required) No ❌
CAM UnZip 5.2.1.0 proprietary for commercial use No ❌
CubeICE 1.1.1 freeware No ❌
IZArc 4.5 freeware No ❌
LhaForge 1.6.7 MIT No ❌
Lhaplus 1.74 freeware No ❌
NanaZip 1.1.194.0 MIT No ❌
PeaZip 8.6.0 GNU LGPL No ❌
PowerArchiver 21.00.15 (trial) proprietary No ❌
StuffIt Expander 15.0.8 freeware No ❌
ZipGenious 6.3.2.3116 freeware No ❌
Zipware 1.6 freeware No ❌

*1: Accoring to the document of Bandizip, Bandizip propagates MOTW to files with the following file extensions:

  • .exe .com .msi .scr .bat .cmd .pif .bat .lnk
  • .zip .zipx .rar .7z .alz .egg .cab .bh
  • .iso .img .isz .udf .wim .bin .i00
  • .js .jse .vbs .vbe .wsf
  • .url .reg
  • .docx .doc .xls .xlsx .ppt .pptx .wiz

I previously tested Bandizip with a ZIP archive file that contained only text files, and I misunderstood that Bandizip does not propagate MOTW.

*2: Jernej Simončič (@jernej__s) kindly contacted the developer of WinRAR and got the answer that WinRAR propagates MOTW only to Microsoft Office document files. It seems that the supported file types are not documented. I did additional tests with WinRAR 6.11 and confirmed that it propagates MOTW to document files of Word, Excel, and PowerPoint (files of Access and Publisher are not supported).

I previously tested WinRAR with a ZIP archive file that contained only text files, and I misunderstood that WinRAR does not propagate MOTW.

FAQ

References

Author

Nobutaka Mantani (@nmantani)

About