Abuse of Regsvr32 for Application Control Bypass
Attackers abuse the trusted Microsoft Regsvr32 utility to proxy malicious code execution via 'scrobj.dll', a technique commonly known as 'Squiblydoo' used to bypass application control.
Regsvr32.exe is a command-line utility used to register and unregister OLE controls, such as DLLs, in the Windows Registry. Because it is a signed, trusted Microsoft binary, it is frequently abused by threat actors to proxy the execution of arbitrary malicious code, effectively bypassing application control mechanisms such as AppLocker or Windows Defender Application Control (WDAC). This technique, often referred to as "Squiblydoo," involves using Regsvr32.exe to load a remote or local script file via the "scrobj.dll" component. By executing scripts through this legitimate binary, attackers can achieve code execution and establish persistent access while remaining hidden from signature-based security controls. This activity has been observed in various campaigns, including ransomware operations and Cobalt Strike deployments. Defenders must monitor process creation and command-line arguments to detect the loading of scrobj.dll by regsvr32.exe, as this is a high-fidelity indicator of malicious intent.
Attack Chain
- Attacker gains initial access to the Windows host through a spearphishing email or exploitation of a service.
- Attacker writes a malicious script (.sct file) to a local directory or identifies a remote URL hosting the script.
- Attacker executes
regsvr32.exefrom a command prompt or terminal. - The
regsvr32.exeprocess is invoked with command-line arguments specifying the "/s" (silent) flag. - The attacker includes the "/i" flag followed by the path or URL of the malicious .sct file.
regsvr32.exeloadsscrobj.dllto parse and execute the script content within the context of the trusted process.- The malicious script executes its payload, such as a shellcode stager or backdoor.
- The attacker achieves code execution, persistence, or begins lateral movement within the environment.
Impact
Successful exploitation of this technique allows attackers to bypass application control policies, enabling the execution of unauthorized or malicious code. This can lead to full system compromise, exfiltration of sensitive data, deployment of ransomware, or the establishment of long-term persistence in the target environment. The use of a trusted system binary makes this activity difficult to detect without specific telemetry focused on process behavior and command-line arguments.
Recommendation
- Deploy the Sigma rules below to your SIEM to monitor for suspicious invocations of regsvr32.exe.
- Ensure that process creation events (specifically Sysmon Event ID 1) are being ingested and that command-line arguments are captured in full.
- Implement AppLocker or WDAC policies that explicitly restrict the execution of untrusted scripts or the use of Regsvr32 in a manner consistent with script loading.
- Use the provided process creation telemetry to alert on regsvr32.exe command lines containing "scrobj.dll" or ".sct" files.
Immediate actions
Deploy Sigma rule to identify Regsvr32/scrobj.dll abuse.
Threat Hunt
Search for regsvr32.exe processes with command lines containing remote URL patterns or .sct extensions.
Data: Process creation events with command-line arguments
Mitigations
Configure AppLocker or WDAC to enforce strict rules for script-hosting binaries.
T1218.010
Detection coverage 1
Detect Regsvr32 Application Control Bypass
mediumDetects the abuse of Regsvr32.exe to proxy execution of malicious code, specifically by loading 'scrobj.dll'.
Detection queries are available on the platform. Get full rules →