Movatterモバイル変換


[0]ホーム

URL:


  1. Home
  2. Techniques
  3. Enterprise
  4. System Binary Proxy Execution
  5. Regsvcs/Regasm

System Binary Proxy Execution: Regsvcs/Regasm

Adversaries may abuse Regsvcs and Regasm to proxy execution of code through a trusted Windows utility. Regsvcs and Regasm are Windows command-line utilities that are used to register .NETComponent Object Model (COM) assemblies. Both are binaries that may be digitally signed by Microsoft.[1][2]

Both utilities may be used to bypass application control through use of attributes within the binary to specify code that should be run before registration or unregistration:[ComRegisterFunction] or[ComUnregisterFunction] respectively. The code with the registration and unregistration attributes will be executed even if the process is run under insufficient privileges and fails to execute.[3][4]

ID: T1218.009
Sub-technique of: T1218
Platforms: Windows
Contributors: Casey Smith
Version: 2.1
Created: 23 January 2020
Last Modified: 24 October 2025

Procedure Examples

IDNameDescription
S0331 Agent Tesla

Agent Tesla has dropped RegAsm.exe onto systems for performing malicious activity.[5]

Mitigations

IDMitigationDescription
M1042 Disable or Remove Feature or Program

Regsvcs and Regasm may not be necessary within a given environment.

M1038 Execution Prevention

Block execution of Regsvcs.exe and Regasm.exe if they are not required for a given system or network to prevent potential misuse by adversaries.

Detection Strategy

IDNameAnalytic IDAnalytic Description
DET0361Detecting .NET COM Registration Abuse via Regsvcs/RegasmAN1028

Abuse of Regsvcs.exe or Regasm.exe to execute arbitrary code embedded in .NET assemblies via [ComRegisterFunction]/[ComUnregisterFunction]. Behavioral chain: (1) Process creation of regsvcs/regasm with suspicious assembly paths/flags → (2) Assembly/DLL load inside regsvcs/regasm → (3) Registry writes to HKCR\CLSID/ProgID during COM registration → (4) Optional child process or network activity spawned by installer/registration code.

References

×

[8]ページ先頭

©2009-2026 Movatter.jp