Security experts from JPCERT/CC have discovered a new attack technique known as “MalDoc in PDF.” This technique involves embedding one file type within another, allowing cyber attackers to bypass traditional security measures that detect malicious Office documents.
JPCERT/CC observed this attack technique in July 2023 and has provided a video demonstrating the attack. When the PDF file is opened in Microsoft Word  , the embedded Word file with a macro executes VBA code , enabling various malicious activities . The attackers disguise the Word file as a PDF file by using the .doc file extension , but it still opens as a Word file .
To detect such malicious files , JPCERT/CC recommends using the analysis tool OLEVBA to identify embedded macros and using Yara rules to detect discrepancies in file extensions within PDF documents . This technique poses a significant challenge to cybersecurity as it can evade detection by standard PDF viewers, sandbox environments , and antivirus software .
The “MalDoc in PDF” technique presents a significant challenge to cybersecurity. It allows attackers to evade detection and increase the effectiveness of their attacks on Windows systems . To mitigate the risks associated with this technique, organizations should implement the recommended detection methods provided by JPCERT/CC. Additionally, further research and development are needed to enhance security measures and stay ahead of evolving attack techniques.