Skip to content
WETNav

Execution · Windows · LOLBAS

regsvcs.exe

COM+ Services installation tool

.NET tool that installs assemblies into COM+ services. Like regasm, it can run code in an assembly during registration, so it is used for proxy execution.

Legitimate use

Developers use it to install serviced .NET components into COM+.

Worst caseHigh

Switches

/u

Uninstalls the assembly.

Medium
/c

Creates the target COM+ application.

Low
/fc

Finds or creates the target COM+ application.

Low

Command lines to worry about

  • High

    RegSvcs running an assembly from a user path

    RegSvcs installs a DLL from a writable folder, running its registration code. Check the DLL's source.

    Detection regexregsvcs(\.exe)?\s+.*\\(temp|appdata|programdata|public|downloads)\\[^\s]+\.dll

    T1218.009

Where it is recorded

  • Security4688Process creation with the full command line, when command-line auditing is enabled.
  • Sysmon1Process creation with command line, hashes and parent process.

Community detections

6 SigmaHQ rules for regsvcs.exe. The explainer checks every pasted command line against all of them.

  • High
    Bad Opsec Defaults Sacrificial Processes With Improper Arguments

    Detects attackers using tooling with bad opsec defaults. E.g. spawning a sacrificial process to inject a capability into the process without taking into account how the process is normally run. One trivial example of this is using rundll32.exe without arguments as a sacrificial process (default in CS, now highlighted by c2lint), running WerFault without arguments (Kraken - credit am0nsec), and…

    T1218.011by Oleg Kolesnikov @securonix invrep_de, oscd.community, Florian Roth (Nextron Systems), Christian Burkard (Nextron Systems)

  • High
    Potential PowerShell Execution Via DLL

    Detects potential PowerShell execution from a DLL instead of the usual PowerShell process as seen used in PowerShdll. This detection assumes that PowerShell commands are passed via the CommandLine.

    T1218.011by Markus Neis, Nasreddine Bencherchali (Nextron Systems)

  • High
    Suspicious Microsoft Office Child Process

    Detects a suspicious process spawning from one of the Microsoft Office suite products (Word, Excel, PowerPoint, Publisher, Visio, etc.)

    T1047T1204.002T1218.010by Florian Roth (Nextron Systems), Markus Neis, FPT.EagleEye Team, Vadim Khrykov, Cyb3rEng, Michael Haag, Christopher Peacock @securepeacock, @scythe_io

  • High
    Suspicious Microsoft OneNote Child Process

    Detects suspicious child processes of the Microsoft OneNote application. This may indicate an attempt to execute malicious embedded objects from a .one file.

    T1566T1566.001by Tim Rauch (Nextron Systems), Nasreddine Bencherchali (Nextron Systems), Elastic (idea)

  • Medium
    Potentially Suspicious Execution Of Regasm/Regsvcs From Uncommon Location

    Detects potentially suspicious execution of the Regasm/Regsvcs utilities from a potentially suspicious location

    T1218.009by Nasreddine Bencherchali (Nextron Systems)

  • Medium
    Potentially Suspicious Execution Of Regasm/Regsvcs With Uncommon Extension

    Detects potentially suspicious execution of the Regasm/Regsvcs utilities with an uncommon extension.

    T1218.009by Nasreddine Bencherchali (Nextron Systems)

Rules from SigmaHQ (rules/windows/process_creation), Detection Rule License (DRL) 1.1. Each rule links to its source and credits its authors.