Huntress Analyzes Follina MSDT Exploit in Microsoft Office Documents

· Original article ↗

Summary

Huntress analyzed how malicious Office documents could invoke MSDT to execute code, including through RTF preview. The article details the exploit, detection and mitigations, and reports that a Microsoft patch was later validated for Windows 10 and 11.

Key points

  • Huntress reproduced the Follina technique, later identified as CVE-2022-30190, using a Microsoft Word document that invoked MSDT through an external HTML reference.
  • The examined payload used PowerShell commands to retrieve and decode a CAB file, then run an executable; the executable’s impact was unknown.
  • Huntress found that the exploit required HTML padding and documented a shortened trigger. RTF files could also invoke it through Windows Explorer’s Preview Pane.
  • The technique could execute code as the user opening or previewing the document; remote payload access could also expose NTLM hashes, according to the article.
  • Huntress described detecting suspicious child processes of msdt.exe and sdiagnhost.exe, and said it was monitoring for exploit variations.
  • Suggested mitigations included enabling the Office child-process Attack Surface Reduction rule or removing the ms-msdt file association.
  • An update said Microsoft had released a patch and Huntress had tested and verified its effectiveness on Windows 10 and Windows 11.

Article Details

Attack Vectors
  • A Microsoft Word document references attacker-hosted HTML that invokes the ms-msdt protocol and triggers the MSDT vulnerability.
  • The exploit can execute when a user opens a malicious document; an RTF file may also trigger it in Windows Explorer's Preview Pane.
  • The exploit embeds PowerShell expressions in MSDT parameters and uses cmd.exe to decode and execute a payload.
  • A remote-triggered connection may expose the victim's NTLM hash.
Defensive Notes
  • Apply Microsoft's patch for CVE-2022-30190; Huntress reported verifying the patch on Windows 10 and Windows 11.
  • Enable the Microsoft Defender Attack Surface Reduction rule “Block all Office applications from creating child processes” in Block mode; consider Audit mode first to check for adverse effects.
  • Removing the ms-msdt file-type association was described as a mitigation; back up registry settings before making changes.
  • Educate users to treat unexpected document attachments cautiously, including because an RTF file may trigger through Preview Pane.
  • Huntress identified child processes of msdt.exe, including sdiagnhost.exe and conhost.exe, as potential detection clues.

Indicators of compromise

TypeIndicatorContext
URLhxxps[:]//www[.]xmlformats[.]com/office/word/2022/wordprocessingDrawing/RDF842l.htmlExternal HTML resource referenced by the exploit document; the article reports the site was no longer online at the time of analysis.

MITRE ATT&CK

CVE

People

Vendors

Products

Related Articles