Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

olevba - Add support for MHT files with macros #10

Closed
decalage2 opened this issue May 6, 2015 · 1 comment
Closed

olevba - Add support for MHT files with macros #10

decalage2 opened this issue May 6, 2015 · 1 comment

Comments

@decalage2
Copy link
Owner

Originally reported by: Philippe Lagadec (Bitbucket: decalage, GitHub: decalage2)


Greg (from SpamStopsHere) reported several recent malicious samples using the MHT format (MIME HTML), running VBA macros when opened in Word:

These MHT files can be created from Word, using the format "Single File Web Page - .mht (MHTML)". The resulting file is a MIME container, similar to an e-mail. It contains several files as attachements, including the Word document in XML format.

By default, MHT files are opened by Internet Explorer, which does not run macros. But if the file is renamed to ".doc", it will be opened in Word and macros can run as if it was a normal Word document.

If VBA macros are present, they are attached as a binary file named "editdata.mso", encoded in Base 64. This looks very similar to the Word 2003 XML format, already supported by olevba.

It should then be straightforward to add support for MHT files with VBA macros.


@decalage2
Copy link
Owner Author

Original comment by Philippe Lagadec (Bitbucket: decalage, GitHub: decalage2):


added support for Word MHTML files with macros (Single File Web Page), fixed issue #10

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant