Detectionmediumtest

Scripting/CommandLine Process Spawned Regsvr32

Detects various command line and scripting engines/processes such as "PowerShell", "Wscript", "Cmd", etc. spawning a "regsvr32" instance.

Convert In Phoenix Studio

Open this Sigma rule in the converter with the YAML preloaded and ready for backend selection.

Launch
Florian Roth (Nextron Systems), Nasreddine Bencherchali (Nextron Systems)Created Fri May 26ab37a6ec-6068-432b-a64e-2c7bf95b1d22windows
Log Source
WindowsProcess Creation
ProductWindows← raw: windows
CategoryProcess Creation← raw: process_creation

Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.

Detection Logic
Detection Logic2 selectors
detection:
    selection:
        ParentImage|endswith:
            - '\cmd.exe'
            - '\cscript.exe'
            - '\mshta.exe'
            - '\powershell_ise.exe'
            - '\powershell.exe'
            - '\pwsh.exe'
            - '\wscript.exe'
        Image|endswith: '\regsvr32.exe'
    filter_main_rpcproxy:
        ParentImage: C:\Windows\System32\cmd.exe
        CommandLine|endswith: ' /s C:\Windows\System32\RpcProxy\RpcProxy.dll'
    condition: selection and not 1 of filter_main_*
False Positives

Legitimate ".bat", ".hta", ".ps1" or ".vbs" scripts leverage legitimately often. Apply additional filter and exclusions as necessary

Some legitimate Windows services

MITRE ATT&CK
Related Rules
Similar

8e2b24c9-4add-46a0-b4bb-0057b4e6187d

Rule not found
Rule Metadata
Rule ID
ab37a6ec-6068-432b-a64e-2c7bf95b1d22
Status
test
Level
medium
Type
Detection
Created
Fri May 26
Path
rules/windows/process_creation/proc_creation_win_regsvr32_susp_parent.yml
Raw Tags
attack.defense-evasionattack.t1218.010
View on GitHub