Regsvr32 Silent and Install Parameter DLL Loading
Detection of regsvr32.exe being used with the silent and DLL install parameter to load a DLL, a technique used by RATs like Remcos and njRAT to execute arbitrary code.
This threat brief focuses on the abuse of regsvr32.exe, a legitimate Microsoft Windows utility, to load and execute malicious DLLs. Attackers, including those using Remote Access Trojans (RATs) like Remcos and njRAT, leverage regsvr32.exe with the /s (silent) parameter and the DLLInstall function call. The activity is observed by analyzing process command-line arguments and parent process details from Endpoint Detection and Response (EDR) agents. This technique allows attackers to bypass application whitelisting and execute arbitrary code, maintain persistence, and compromise the system further. The detection described was published in splunk-escu on 2026-05-04.
Attack Chain
- An attacker gains initial access via an unknown vector (e.g., phishing, exploit).
- The attacker deploys a malicious DLL on the compromised system.
- The attacker executes
regsvr32.exewith the/s(silent) parameter and theDLLInstallfunction, for example:regsvr32.exe /s /i:DLLInstall <malicious_dll_path>. Regsvr32.exeloads the specified DLL.- The DLLInstall function within the DLL executes, performing malicious actions. This could involve installing services, modifying registry keys, or injecting code into other processes.
- The attacker establishes persistence through registry modifications or scheduled tasks created by the DLL.
- The attacker executes arbitrary commands on the system, potentially installing additional malware or exfiltrating data.
- The attacker achieves their final objective, such as data theft, system disruption, or ransomware deployment.
Impact
Successful exploitation can allow attackers to execute arbitrary code, bypass application whitelisting, and establish persistence on compromised systems. This can lead to data theft, system disruption, or ransomware deployment. The affected systems can be remotely controlled by the attacker, enabling further lateral movement within the network.
Recommendation
- Deploy the Sigma rule
Regsvr32 Silent and Install Param Dll Loadingto detect instances ofregsvr32.exebeing used with the/sand/iparameters. - Enable Sysmon process creation logging (Event ID 1) and Windows Event Log Security Auditing (Event ID 4688) to capture the necessary process and command-line information.
- Investigate any instances of
regsvr32.exeexecution with the silent and DLLInstall parameters, paying close attention to the parent process and the DLL being loaded. - Implement application control policies to restrict the execution of
regsvr32.exeor other LOLBins from untrusted locations.
Detection coverage 2
Regsvr32 Silent and Install Param Dll Loading
highDetects regsvr32.exe being used with the silent parameter and DLLInstall execution, often used by malware to load malicious DLLs.
Suspicious Regsvr32 Parent Process
mediumDetects regsvr32.exe being executed from suspicious parent processes such as cmd.exe or powershell.exe.
Detection queries are kept inside the platform. Get full rules →