Regsvr32.EXE Calling of DllRegisterServer Export Function Implicitly
Description
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'.
Query · sigma
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: 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_*
Known false positives
- Legitimate usage as part of application installation, but less likely from e.g. temporary paths.