Regasm.exe
Part of .NET
Paths
C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exeC:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exeC:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exeC:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe
Commands
AWL Bypass
Loads the target .NET DLL file and executes the RegisterClass function.
Use case: Execute code and bypass Application whitelisting
Privileges: Local Admin
regasm.exe {PATH:.dll}
Execute
Loads the target .DLL file and executes the UnRegisterClass function.
Use case: Execute code and bypass Application whitelisting
Privileges: User
regasm.exe /U {PATH:.dll}
Detection
- Sigma: https://github.com/SigmaHQ/sigma/blob/6312dd1d44d309608552105c334948f793e89f48/rules/windows/process_creation/proc_creation_win_lolbin_regasm.yml
- Elastic: https://github.com/elastic/detection-rules/blob/12577f7380f324fcee06dab3218582f4a11833e7/rules/windows/execution_register_server_program_connecting_to_the_internet.toml
- Splunk: https://github.com/splunk/security_content/blob/bc93e670f5dcb24e96fbe3664d6bcad92df5acad/docs/_stories/suspicious_regsvcs_regasm_activity.md
- Splunk: https://github.com/splunk/security_content/blob/bee2a4cefa533f286c546cbe6798a0b5dec3e5ef/detections/endpoint/detect_regasm_with_network_connection.yml
- IOC: regasm.exe executing dll file