Rapid7

module

Maldoc in PDF Polyglot converter

Disclosed
N/A
Created
Jun 6, 2025

Description

A malicious MHT file created can be opened in Microsoft Word even though it has magic numbers and file
structure of PDF.

If the file has configured macro, by opening it in Microsoft Word, VBS runs and performs malicious behaviors.

The attack does not bypass configured macro locks. And the malicious macros are also not executed when the
file is opened in PDF readers or similar software.

Author

mekhalleh (RAMELLA Sebastien)

Platform

Windows

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':


msf > use auxiliary/fileformat/maldoc_in_pdf_polyglot
msf auxiliary(maldoc_in_pdf_polyglot) > show actions
...actions...
msf auxiliary(maldoc_in_pdf_polyglot) > set ACTION < action-name >
msf auxiliary(maldoc_in_pdf_polyglot) > show options
...show and set options...
msf auxiliary(maldoc_in_pdf_polyglot) > run

Title
Rapid7 Labs

2026 Global Threat Landscape Report

The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.