Anti-Malware-Alliance / docubleach

Tool to Purge and Remove all Macro And Dynamic Content from MS Office File
MIT License
2 stars 0 forks source link

Malicious MS Office Macro - Sanitizer #1

Closed rothoma2 closed 5 months ago

rothoma2 commented 7 months ago

The Problem.

VBA and OLE content on MS Office Files, is a large vehicle for Malware Delivery. As any Powerful tool, it can be used for Good or Evil Historically VBA Macros have been used to distribute Malware.

Microsoft has had multiple attempts at Disabling this Functionality by Default, but still has not address the fundamental problem.

In a large amount of Environments, Macros are not to be used. Therefore a CLI tool that allow to extract for analysis and removes completely all Macros and OLE, SILk or other Dynamic Content from the MS Office File (At the risk of potentially breaking the Functionality) should be written and made available to IT practitioners.

Unfortunately DocBleach has now been Archived and was Originally Written in Java. We should come up with a new similar simple tool, that is easier to be maintained by Security Community.

Requirements

Investigate Python Mechanism, to be able to Parse, Extract and Remove Macros, and other Dynamic content from MS Office Files.

Several links might be useful.

Current GitHub Projects have some overlaps but fail to address the requirements. Focus on a tool that is able to use a library to parse, remove and overwrite new sanitized version of file. Extensive testing required,