← back to portfolio
Malware

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 Link T1204.002 User Execution T1548.002 Bypass User Account Control T1112 Modify Registry T1059.001 PowerShell T1136.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.
Table of Contents
  1. Scenario
  2. Evidence Collected
  3. Delivery and Download
  4. Timeline
  5. Key Findings
  6. Attack Chain
  7. Malicious File Analysis
  8. Endpoint Validation
  9. Indicators of Compromise
  10. Analyst Notes

Scenario

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.

Alert details showing a High severity malware alert on host Fiona, with Missing_DLL.exe launching fodhelper.exe
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

ArtifactValueWhy It Mattered
AlertHigh · Malware · Missing_DLL.exe → fodhelper.exeStarting point of the investigation
Phishing emailhelpdesk@microsoft[.]com → fiona@letsdefend.io · “Urgent: Download Microsoft DLL Package Now” · sender IP 204.8.156.142Delivery vector; the gateway action was Allowed
Exchange log204.8.156.142:35323 → 172.16.20.3:25Confirms the message reached the mail server
Browser downloadSysmon EID 15 · chrome.exe · ZoneId=3 · hxxps://files-ld[.]s3[.]us-east-2[.]amazonaws[.]com/Missing_DLL[.]zipShows the link was opened and where the ZIP came from
File creationSysmon EID 11 · Explorer.EXE · C:\Users\LetsDefend\Downloads\Missing_DLL.exeThe executable was extracted from the ZIP through Explorer
Registry writeSysmon EID 13 · Missing_DLL.exe (PID 2216) · HKCU:\Software\Classes\ms-settings\shell\open\command\(Default)Staging of the UAC bypass
Local accountonebl00d · Administrators · last logon NeverThe 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.

The phishing email with subject Urgent: Download Microsoft DLL Package Now, instructing the user to download and run a DLL package
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.

Log management rows: an Exchange entry at 14:30:25 followed by OS events at 20:36:12, 20:36:54 and 20:37:29
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.
TimeEventSource
2024-03-18 14:30:00Phishing email delivered to fiona@letsdefend.io; gateway action AllowedEmail security
2024-03-18 14:30:25SMTP connection from 204.8.156.142 to the mail server (172.16.20.3:25)Exchange
2024-03-18 20:36:12chrome.exe saves Missing_DLL.zip; the Zone.Identifier records the source URLSysmon EID 15
2024-03-18 20:36:54Explorer.EXE creates Missing_DLL.exe in the Downloads folderSysmon EID 11
2024-03-18 20:37:29Missing_DLL.exe sets the (Default) value of the ms-settings command key to the PowerShell commandSysmon EID 13
2024-03-18 23:37:32 (endpoint clock)Local account onebl00d created (password last set)net user output

Key Findings

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.

  1. 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.
  2. It launches fodhelper.exe with the runas verb.
  3. fodhelper.exe reads the key and runs the planted command instead of opening the Settings app.
  4. Because fodhelper.exe is a trusted, auto-elevating binary, the command runs with administrator rights without a UAC prompt.
  5. The elevated command runs net user to create onebl00d and net localgroup to add it to Administrators.
Decompiled main function of Missing_DLL.exe showing the PowerShell command string, the registry writes to the ms-settings command key and the ShellExecuteExA call to fodhelper.exe
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.
A standard Windows User Account Control consent prompt asking whether to allow the app to make changes
Figure 5.The UAC consent prompt that a -Verb RunAs request normally triggers. Routing the command through fodhelper.exe avoids it.
Process tree showing Missing_DLL.exe launching fodhelper.exe, then PowerShell, cmd.exe and net.exe commands that create the user and add it to Administrators
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.

Registry Editor showing the ms-settings Shell Open command key with the Default value set to a PowerShell command that creates a user
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.
Command prompt output of net user onebl00d showing an active account that is a member of the Administrators group with last logon Never
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.

Indicators of Compromise

TypeValueContext
Emailhelpdesk@microsoft[.]comSender as presented in the phishing email
IP204.8.156.142Sender IP
SubjectUrgent: Download Microsoft DLL Package NowPhishing email
URLhxxps://files-ld[.]s3[.]us-east-2[.]amazonaws[.]com/Missing_DLL[.]zipDownload source of the ZIP
FileMissing_DLL.zipArchive saved by chrome.exe
FileMissing_DLL.exeUAC bypass sample, run from the Downloads folder
SHA-256c61c9200d067a246233099eef350cc0ca123603a9f603f6d31fad4f29243b1b7File hash from the alert for Missing_DLL.exe
Registry keyHKCU\Software\Classes\ms-settings\Shell\Open\command(Default) and DelegateExecute values set by the sample
Commandpowershell.exe /c Start-Process cmd.exe -ArgumentList '/c net user onebl00d pwn3d /add & net localgroup Administrators onebl00d /add' -Verb RunAsValue written to the registry key
Accountonebl00dLocal 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.