Sigma rule: Regsvr32.EXE Calling of DllRegisterServer Export Function Implicitly

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4b53d2b80ab8, updated 2023-10-17T00:00:00.000Z.

Rule

Title
Regsvr32.EXE Calling of DllRegisterServer Export Function Implicitly
Status
test
Level
medium
Author
Andreas Braathen (mnemonic.io), Nasreddine Bencherchali (Nextron Systems)
Date
2023-10-17
File
rules-threat-hunting/windows/process_creation/proc_creation_win_regsvr32_dllregisterserver_exec.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects execution of regsvr32 with the silent flag and no other flags on a DLL located in an uncommon or potentially suspicious location.
When Regsvr32 is called in such a way, it implicitly calls the DLL export function 'DllRegisterServer'.

Log source

product
windows
category
process_creation

Detection

selection_image:
    - Image|endswith: '\regsvr32.exe'
    - OriginalFileName: 'REGSVR32.EXE'
selection_cmdline:
    CommandLine|contains:
        - ' /s '
        - ' /e '
filter_main_paths:
    - CommandLine|contains:
          - ':\Program Files (x86)'
          - ':\Program Files\'
          - ':\Windows\System32\'
          - ':\Windows\SysWOW64\'
    - CurrentDirectory|contains:
          - ':\Program Files (x86)'
          - ':\Program Files\'
          - ':\Windows\System32\'
          - ':\Windows\SysWOW64\'
filter_main_other_flags:
    # Note: We filter other flags to keep the logic of the rule
    CommandLine|contains:
        - ' /i:'
        - '/U '
filter_main_rpcproxy:
    ParentCommandLine|endswith: ':\Windows\System32\RpcProxy\RpcProxy.dll'
    CommandLine: 'regsvr32 /s rpcproxy.dll'
condition: all of selection_* and not 1 of filter_main_*

False positives (as the rule lists them)

  • Legitimate usage as part of application installation, but less likely from e.g. temporary paths.

Tags

  • attack.stealth
  • attack.t1218
  • detection.threat-hunting

MITRE ATT&CK ids this rule names

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_regsvr32_dllregisterserver_exec.yml

Sources and licences

  • SigmaHQ

    "Regsvr32.EXE Calling of DllRegisterServer Export Function Implicitly" by Andreas Braathen (mnemonic.io), Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules-threat-hunting/windows/process_creation/proc_creation_win_regsvr32_dllregisterserver_exec.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Regsvr32.EXE Calling of DllRegisterServer Export Function Implicitly",
entity page, dataset version ref-4b53d2b80ab8, updated 2023-10-17T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/ce2c44b5-a6ac-412a-afba-9e89326fa972 (accessed 2026-11-03).
Underlying source: SigmaHQ rule ce2c44b5-a6ac-412a-afba-9e89326fa972, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.