2018-06-09 00:15:06 +02:00
|
|
|
---
|
|
|
|
Name: Regasm.exe
|
2018-09-24 21:59:43 +02:00
|
|
|
Description: Part of .NET
|
|
|
|
Author: 'Oddvar Moe'
|
2021-01-10 16:04:52 +01:00
|
|
|
Created: 2018-05-25
|
2018-06-09 00:15:06 +02:00
|
|
|
Commands:
|
2021-01-10 16:04:52 +01:00
|
|
|
- Command: regasm.exe AllTheThingsx64.dll
|
2018-06-09 00:15:06 +02:00
|
|
|
Description: Loads the target .DLL file and executes the RegisterClass function.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Execute code and bypass Application whitelisting
|
2022-09-11 04:55:32 +02:00
|
|
|
Category: AWL Bypass
|
2020-03-20 18:51:21 +01:00
|
|
|
Privileges: Local Admin
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1218.009
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2021-01-10 16:04:52 +01:00
|
|
|
- Command: regasm.exe /U AllTheThingsx64.dll
|
2020-03-20 18:51:21 +01:00
|
|
|
Description: Loads the target .DLL file and executes the UnRegisterClass function.
|
2018-09-24 21:59:43 +02:00
|
|
|
Usecase: Execute code and bypass Application whitelisting
|
|
|
|
Category: Execute
|
|
|
|
Privileges: User
|
2021-11-05 19:58:26 +01:00
|
|
|
MitreID: T1218.009
|
2021-12-14 16:50:17 +01:00
|
|
|
OperatingSystem: Windows vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11
|
2018-12-10 14:28:12 +01:00
|
|
|
Full_Path:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\regasm.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe
|
|
|
|
- Path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regasm.exe
|
2021-01-10 16:04:52 +01:00
|
|
|
Code_Sample:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Code:
|
2018-09-24 21:59:43 +02:00
|
|
|
Detection:
|
2021-11-15 14:19:03 +01:00
|
|
|
- Sigma: https://github.com/SigmaHQ/sigma/blob/a04fbe2a99f1dcbbfeb0ee4957ae4b06b0866254/rules/windows/process_creation/win_possible_applocker_bypass.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
|
2018-06-09 00:15:06 +02:00
|
|
|
Resources:
|
2018-09-24 21:59:43 +02:00
|
|
|
- Link: https://pentestlab.blog/2017/05/19/applocker-bypass-regasm-and-regsvcs/
|
|
|
|
- Link: https://oddvar.moe/2017/12/13/applocker-case-study-how-insecure-is-it-really-part-1/
|
2021-11-05 19:58:26 +01:00
|
|
|
- Link: https://github.com/redcanaryco/atomic-red-team/blob/master/atomics/T1218.009/T1218.009.md
|
2018-09-24 21:59:43 +02:00
|
|
|
Acknowledgement:
|
|
|
|
- Person: Casey Smith
|
|
|
|
Handle: '@subtee'
|