Detection rules › Sigma

Suspicious Rundll32 Setupapi.dll Activity

Severity
medium
Author
Konstantin Grishchenko, oscd.community
Source
upstream

setupapi.dll library provide InstallHinfSection function for processing INF files. INF file may contain instructions allowing to create values in the registry, modify files and install drivers. This technique could be used to obtain persistence via modifying one of Run or RunOnce registry keys, run process or use other DLLs chain calls (see references) InstallHinfSection function in setupapi.dll calls runonce.exe executable regardless of actual content of INF file.

MITRE ATT&CK coverage

TacticTechniques
Defense EvasionT1218.011 System Binary Proxy Execution: Rundll32

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation

Stages and Predicates

Stage 1: selection

Image|endswith: '\runonce.exe'
ParentCommandLine|contains: InstallHinfSection
ParentCommandLine|contains: setupapi.dll
ParentImage|endswith: '\rundll32.exe'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
Imageends_with
  • \runonce.exe corpus 4 (sigma 4)
ParentCommandLinematch
  • InstallHinfSection
  • setupapi.dll
ParentImageends_with
  • \rundll32.exe corpus 12 (sigma 12)