Sigma medium test sigma

Suspicious Rundll32 Setupapi.dll Activity

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.

View Source

Detection Logic

{
  "selection": {
    "Image
| endswith": "\\runonce.exe",
    "ParentImage
| endswith": "\\rundll32.exe",
    "ParentCommandLine
| contains
| all": [
      "setupapi.dll",
      "InstallHinfSection"
    ]
  },
  "condition": "selection"
}

False Positives

  • Scripts and administrative tools that use INF files for driver installation with setupapi.dll

Field Validations

Loading…

Comments (0)

Loading comments...