Rundll32.EXE Calling DllRegisterServer Export Function Explicitly
Description
Detects when the DLL export function 'DllRegisterServer' is called in the commandline by Rundll32 explicitly where the DLL is located in a non-standard path.
Query · sigma
selection_image: - Image|endswith: \rundll32.exe - OriginalFileName: RUNDLL32.EXE selection_cmdline: CommandLine|contains: DllRegisterServer filter_main_legit_paths: CommandLine|contains: - :\Program Files (x86) - :\Program Files\ - :\Windows\System32\ - :\Windows\SysWOW64\ 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.
- Not every instance is considered malicious, but this rule will capture the malicious usages.