SecPod

Learn Search

Search across all Learn content

← Back to Security Research
MS Office Default Function Bring In Self-Replicating Malware

MS Office Default Function Bring In Self-Replicating Malware

Nov 28, 2017By Shakeel Bhat4 min read

macro-based self-replicating malware

vulnerability management tool

This flaw allows macros to write more macros. Although this Macro-based self-replicating technique is not new, Microsoft has already introduced a security mechanism. In MS Office, that, by default, limits this functionality. The researcher has discovered a simple technique that could allow anyone to bypass Microsoft’s security. Control and create and spread self-replicating malware while hiding behind unsuspecting MS Word documents. Also, using a patch management tool is critical to patch this vulnerability.

ms word settings
ms word settings
file location
file location

How Attack Works:

By default, Microsoft has disabled external (or untrusted) macros. To restrict default programming access to the Office VBA project. Object model users can manually enable “Trust access to the VBA project object model” whenever the requirement arises. When this setting enables, MS Office will trust all macros and run any code without showing a security warning or requiring the user’s permission.

Trust access to the VBA project object model

Buono has created a PoC video demonstrating how an MS Word document embedding malicious VBA code could be used to deliver self-replicating multi-stage malware. i.e. It first enables macros by updating Windows registry entries and then injects malicious macro payload (VBA code) into every doc file the victim interacts with.

Mechanism:

A new macro-based self-replicating ransomware using the above-described attack technique has been recently reported by Trend Micro, which has been called “qkG“. This ransomware employs Auto Close VBA macro. This technique allows the execution of malicious macro when the victim closes the document. According to researchers, this ransomware is more of an experimental project or a proof of concept (PoC) rather than malware using actively. qkG is the first ransomware that scrambles one file type or file. It is one of the few file-encrypting malware written in Visual Basic for Applications macros. Also, it is unique because, unlike regular ransomware, that only uses macros to download ransomware. It employs malicious macro codes, a technique used by .lukitus, a variant of Locky ransomware.

Though this method hasn’t been in use by attackers as yet. If they do, it will become very difficult to deal with Self-Replicating Malware the situation as the attack method exploits a legitimate MS Office feature, and most antivirus software doesn’t issue a warning or block VBA code-based MS documents.

According to a researcher, Microsoft doesn’t consider it a security issue. And instead, Microsoft claims that the feature is of design to function like this. All external and untrusting macros will be disable by default as per the latest change in the settings of macros. This limits the macro’s default access to the Office VBA project model. Users must manually enable external macros by clicking “Trust access to the VBA project object model“. This setting allows MS Office to automatically trust all macros and run the code without displaying a security warning or asking for the user’s permission to run it.

Buono suggests, “In order to (partially) mitigate the vulnerability, it is possible to move the “AccessVBOM” registry key from the HKCU hive to the HKLM, making it editable only by the system administrator.”

Impact:

This technique of bypassing default Microsoft Office settings can be useful. Trusting external or untrusting macros and automatically running any code without showing a security warning or requiring the user’s permission. Also, any victim who mistakenly allows the malicious doc file to run macros once his/her system remains open to macro-based attacks. However, the victim will unknowingly spread the same malicious code to other users by sharing infected office files from his/her systems.

Solution:
Currently, there is no solution to address this particular attack. We need to wait and see how Microsoft addresses this attack. Do they consider Buono’s suggestion to move particular registry keys under HKLM, or do they address it differently?

The best way to be safe from such malware attacks is to be suspicious of unusual documents. Receive via email and never click links inside those documents unless the source is adequately verified.

Featured Posts

Open November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities
November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities

CVE Research

November 2026 Linux Security Updates for Debian, Fedora, Red Hat and Ubuntu: Critical Browser, .NET and Enterprise Infrastructure Vulnerabilities

Nov 27, 2026

Open Cacti Zero-Day Enables Unauthenticated Remote Code Execution in Four HTTP Requests
threat intelligenceCacti Zero-Day Enables Unauthenticated Remote Code Execution in Four HTTP Requests

CVE Research

Cacti Zero-Day Enables Unauthenticated Remote Code Execution in Four HTTP Requests

A critical zero-day vulnerability in Cacti could allow unauthenticated attackers to execute arbitrary commands through a four-request exploit chain involving second-order SQL injection and poller configuration manipulation. The flaw affects Cacti 1.2.31 when guest access is enabled, posing serious risks to network monitoring infrastructure.

Nov 27, 2026

Open Drupal Installer Flaw Under Attack: Site Takeover Risk Persists
vulnerability researchDrupal Installer Flaw Under Attack: Site Takeover Risk Persists

CVE Research

Drupal Installer Flaw Under Attack: Site Takeover Risk Persists

CVE-2026-136716 is a highly critical Drupal core installer access-bypass vulnerability that is under active exploitation. An unauthenticated attacker can take over sites left in unusual or incomplete installation states, including some production sites. The earlier fix for CVE-2026-132165 does not cover every affected state. Fixed releases are Drupal Core 11.4.14, 11.3.23, and 10.6.23. This article covers how the flaw works, its relationship to the prior installer issue, impact, and remediation steps.

Nov 27, 2026

Open GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation
GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation

CVE Research

GT13 Campaign Targets 22 Organizations Through Check Point Security Management Server Exploitation

The GT13 campaign targeted at least 22 organizations worldwide by exploiting vulnerabilities in exposed services and Check Point Security Management Servers. The attackers used forged authentication sessions, SSH-based persistence, internal reconnaissance, lateral movement, and data exfiltration techniques to compromise systems and access sensitive information.

Nov 26, 2026