Cyber Security

Specula Tool Leveraging Registry to Turn Outlook Into a C2 Server

Specula tool utilizes a Registry to turn Microsoft Outlook Into a C2 Server capable of executing arbitrary commands.

Fundamentally, Specula is a C2 framework that uses the Outlook home page feature.  It exposes the ability to develop a home page capable of attacking this vector. 

This ability to exploit the Outlook home page has been disclosed and identified as CVE-2017-11774.

This vulnerability allows an attacker to execute arbitrary commands due to how Microsoft Office handles objects in memory, identified as “Microsoft Outlook Security Feature Bypass Vulnerability.”

FireEye first noticed APT34 leveraging CVE-2017-11774 in June 2018. APT33 then adopted it for a much larger campaign that started in July 2018 and lasted for at least a year.

Microsoft fixes the vulnerability by modifying the way Microsoft Outlook manages memory objects. 

Unfortunately, even in current Office 365 installations, Outlook continues to use the Registry values that would have been set when the removed UI elements were used.

How to Build a Security Framework With Limited Resources IT Security Team (PDF) - Free Guide

“If an attacker can modify a single non-privileged Registry key, a C2 channel can be established despite it being thought to be a patched technique”, TrustedSec researchers said.

Setting The Registry Value

A graphical depiction demonstrates how to establish the required Registry value for first access.

Setting the Registry Value

Researchers say that if any Registry keys described by Microsoft in their workaround are used to define a custom home page, Outlook will download and display that HTML page when the relevant tab is selected, rather than the standard mailbox elements (inbox, calendar, sent, etc.).

Jscript and VBScript are run from the downloaded HTML page in a privileged context, granting them nearly complete access to the local system, just like script or wscript.exe would.

Certain restrictions may prevent this degree of access, although they are also managed via Registry keys that are accessible to non-privileged users.

“The resources rendered and returned via Specula allow for execution of vbscript within a trusted context. Full access is also allowed to any COM object that exposes methods via an IDispatch interface”, researchers said.

Although the Outlook Registry must initially be compromised on a device, once it is, attackers can leverage this technique to stay active on the targeted device and disseminate widely.

Hence, if a URL value is added or already exists under HKCU\Software\Microsoft\Office\16.0\Outlook\WebView\, it is recommended to set up monitoring.

Are you from SOC and DFIR Teams? – Analyse Malware Incidents & get live Access with ANY.RUN -> Free Access

Guru Baran

Gurubaran KS is a cybersecurity analyst, and Journalist with a strong focus on emerging threats and digital defense strategies. He is the Co-Founder and Editor-in-Chief of Cyber Security News, where he leads editorial coverage on global cybersecurity developments.

Recent Posts

Hackers Target AI Infrastructure With RCE, Prompt Injection and API Key Theft

Hackers are actively probing AI systems, turning exposed gateways and agent tools into routes for…

4 hours ago

Hackers Make Phishing Pages Change Their Code Every Time Someone Opens Them

Hackers are making some phishing pages harder to track by changing the code delivered to…

4 hours ago

Iran-Linked Hackers Reportedly Knock UK Power Plant Offline for Four Days

A cyber incident reportedly forced a British power plant to halt operations for about four…

5 hours ago

Russian Hackers Use New HOOKEDGE Malware to Spy on European Defense and Diplomatic Targets

Russian hackers have used a new backdoor called HOOKEDGE to target defense manufacturers, government bodies,…

5 hours ago

Ransomware Gang Claims AI Can Analyze 700GB of Stolen Data Every Hour

TITAN ransomware is pairing file encryption with an ambitious claim: artificial intelligence that can sort…

5 hours ago

Hackers Compromise Hundreds of WordPress Sites to Deploy Amatera Stealer via ClickFix

A fake student resume is being used to place a remote-access tool on researchers’ Windows…

7 hours ago