LoFP LoFP / scripts and administrative tools that use inf files for driver installation with setupapi.dll

Techniques

Sample rules

Suspicious Rundll32 Setupapi.dll Activity

Description

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.

Detection logic

condition: selection
selection:
  Image|endswith: \runonce.exe
  ParentCommandLine|contains|all:
  - setupapi.dll
  - InstallHinfSection
  ParentImage|endswith: \rundll32.exe