Malicious UAC Bypass via HKCU Environment windir Hijack

PremiumReviewedSigma · High · v1
Product
windows
Category
process_creation
Author
HuntRule
Published
2026-09-22
Updated
2026-09-22

ATT&CK techniques

Priv Esc → Defense Evasion
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Execution

  5. Persistence

  6. Cred Access

  7. Discovery

  8. Lateral Movement

  9. Collection

  10. C2

  11. Exfiltration

  12. Impact

What it detects

This rule detects reg add writing a windir value under the HKCU Environment key, the environment-variable hijack half of the SilentCleanup UAC bypass used by NightshadeC2. The botnet set windir to its payload path so an auto-elevating scheduled task would launch its code with high integrity. Poisoning the windir user environment variable is a well-known privilege-escalation technique with no legitimate use.

Related detections9 linkedT1548.002 — drag to rearrange
Suspicious NodeLoader UAC Bypass via PowerShell RunAs Batch Execution (via process_creation)
Malicious sdclt UAC Bypass via Folder Shell Open Command Hijack
Possible UAC Bypass via SilentCleanup Scheduled Task
Possible UAC Bypass via ComputerDefaults Execution
Possible UAC Bypass via easinvoker Spawning Batch Script (via process_creation)
Suspicious UAC Bypass by Disabling Admin Consent Prompt via registry_set
Malicious Cloud Atlas UAC Bypass via fodhelper (via process_creation)
Suspicious computerdefaults.exe Spawning Child Process
Suspicious UAC Bypass via control.exe App Paths or Shell Open Command Hijack
Malicious UAC Bypass via HKCU Environment windir Hijack
Pivot detection · T1548.002 · 9 related

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.