keepcalculator

06 Numbers and Powers

Malware Internet Explorer via Office? Risks & Fixes

Card No. 06·69184 · Updated · Standard formula, shown below

Yes, Office documents have been a primary way to deliver malware that targets Internet Explorer, but the risk depends on how the document is opened and which Office version you use. This article explains the attack chain, why it still matters, and how to protect yourself.

Background: Why Office and IE Are Linked

Microsoft Office and Internet Explorer share a common component called the MSHTML engine (also known as Trident). This engine renders web content inside Office documents—for example, when you embed a web page in a Word file or use an HTML-based email in Outlook. Attackers exploit this shared engine to run malicious code without needing a separate browser window. Even though IE is retired, the engine remains in Windows for compatibility, so Office documents can still trigger it.

Historically, the most notorious attacks used OLE objects (Object Linking and Embedding) or ActiveX controls that IE could call. A malicious Office file might contain an embedded IE control that loads a remote page with exploit code. In recent years, attackers have shifted to simpler methods like macro-based downloaders that fetch a payload from a URL, but the IE-specific vector still appears in targeted campaigns.

How the Attack Works

The typical chain has four steps:

  1. Delivery: You receive a Word, Excel, or PowerPoint file via email, a download, or a USB drive. The file looks legitimate—an invoice, a resume, or a report.
  2. Trigger: When you open the file, it may ask you to enable macros or click an embedded object. Alternatively, it may silently use a known vulnerability in the MSHTML engine without any user action (a “zero-click” exploit).
  3. Exploitation: The malicious code exploits a flaw in how Office handles HTML content. For instance, CVE-2021-40444 is a remote code execution vulnerability in MSHTML that was exploited via malicious Office documents. The document fetches an ActiveX control from a remote server, which then runs arbitrary code.
  4. Payload: The code downloads and installs malware—often ransomware, a remote access trojan (RAT), or a banking Trojan.

Because IE is integrated into Windows, even if you never open IE, the engine is present and can be abused by Office.

Why It Still Matters After IE’s Retirement

Internet Explorer was officially retired on June 15, 2022, but the underlying MSHTML engine is still part of Windows 10 and 11. Microsoft continues to patch it because many enterprise apps rely on it. However, the retirement means fewer security updates and less attention from users, making it a tempting target. Office 2016, 2019, and Microsoft 365 all support MSHTML for legacy features, so the attack surface remains.

Moreover, many users still open Office files from untrusted sources without thinking. Even if you use a modern browser like Edge, the vulnerability is in the engine, not the browser, so switching browsers doesn’t help if the attack comes through Office.

How to Protect Yourself

Here are concrete steps to reduce the risk:

  • Keep Office and Windows updated. Microsoft releases patches for MSHTML vulnerabilities on Patch Tuesday. Enable automatic updates.
  • Disable macros by default. In Office, go to Trust Center Settings and choose “Disable all macros with notification.” Never enable macros unless you are certain the document is safe.
  • Use Protected View. Office opens files from the internet in Protected View, which disables editing and active content. Do not click “Enable Editing” unless you trust the source.
  • Block ActiveX controls. In Trust Center, set ActiveX settings to “Disable all controls without notification.” This blocks the most common exploit vector.
  • Use a modern browser and email client. If you use Outlook, it uses the same engine for rendering HTML emails. Consider switching to Outlook on the web or a third-party client that doesn’t use MSHTML.
  • Uninstall IE if you don’t need it. On Windows 10/11, you can disable IE via “Optional Features.” This removes the browser, but the engine may still be present for Office. Removing IE reduces the attack surface.

Common Problems and Misconceptions

Misconception: “I don’t use IE, so I’m safe.” False. The MSHTML engine is used by Office and other apps. You don’t need to open IE for the exploit to work.

Problem: “The file looks fine, so I enabled macros.” Macros are the most common way to deliver malware. Even if the document looks harmless, a macro can download a payload from the internet.

Problem: “I have antivirus, so I’m protected.” Antivirus helps, but zero-day exploits (unknown vulnerabilities) can bypass it. The best defense is to avoid opening suspicious files and keep everything patched.

Comparison: Office vs. Other Attack Vectors

Office-based attacks are popular because they are easy to deliver and exploit human trust. Compared to malicious websites, Office files are more likely to be opened by the victim. Compared to PDFs, Office files have a larger attack surface because of macros and embedded objects. However, modern formats like .docx and .xlsx are ZIP containers, making it easier for security software to inspect them. Attackers often use obfuscation to hide the malicious code.

Cost and Impact

The cost of a successful attack can be huge: ransomware demands, data breach fines, and business downtime. For individuals, it might mean losing personal files or having your identity stolen. The cost of prevention is relatively low—time spent on updates and caution.

Alternatives to Reduce Risk

  • Use Office Online (free in a browser) instead of the desktop app for viewing untrusted files.
  • Use a virtual machine or sandbox to open suspicious files in isolation.
  • Switch to open-source alternatives like LibreOffice, which do not use MSHTML.
  • Use a dedicated HTML sanitizer if you must open files from unknown sources.

Frequently Asked Questions

Q: Can a Word document infect my PC without me clicking anything?
A: Yes, in some cases. A “zero-click” exploit can run when the file is opened, even if you don’t enable macros. However, these are rare and usually used in targeted attacks. The best defense is to keep Office updated and use Protected View.

Q: Is it safe to open .docx files from email?
A: Not always. Even .docx files can contain malicious macros or embedded objects. Use Protected View and never enable content unless you trust the sender. If in doubt, scan the file with antivirus or upload it to VirusTotal.

Q: Does disabling IE in Windows remove the MSHTML engine?
A: No. Disabling IE removes the browser, but the engine remains for Office and other system components. You can’t remove it without breaking some features. You can, however, disable ActiveX controls in Office.

Q: What should I do if I think I opened a malicious Office file?
A: Disconnect from the internet immediately. Run a full antivirus scan. Change your passwords from a different device. If you have important files, consider restoring from a backup. Report the incident to your IT department if at work.

Q: Are Macs vulnerable to this?
A: Yes, but less so. Microsoft Office for Mac does not use MSHTML, but it still supports macros. Macs are not immune to macro-based malware. The same precautions apply.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →