PowerShell: Signed UtilityFunctions.ps1 Loading Managed DLL via Proxy Execution

Flags PowerShell command lines referencing UtilityFunctions.ps1 with RegSnapin usage consistent with managed DLL proxy execution.

FreeReviewedSigma · Medium · v2
Product
windows
Category
process_creation
Author
frack113 (SigmaHQ), DRL 1.1
Published
2022-05-28
Updated
2026-07-31
title: "PowerShell: Signed UtilityFunctions.ps1 Loading Managed DLL via Proxy Execution"
id: a86beccb-2e9f-4052-8e32-84e8f526f925
status: test
description: This rule matches PowerShell process command lines that include UtilityFunctions.ps1 and the string "RegSnapin ", indicating proxy-style loading of a managed DLL from a Microsoft signed script. Attackers can use signed utility scripts to blend into legitimate activity while executing or side-loading malicious functionality via .NET assemblies. It relies on Windows process creation telemetry, specifically the PowerShell command-line content.
references:
  - https://lolbas-project.github.io/lolbas/Scripts/UtilityFunctions/
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/process_creation/proc_creation_win_lolbin_utilityfunctions.yml
author: frack113, Huntrule Team
date: 2022-05-28
tags:
  - attack.stealth
  - attack.t1216
logsource:
  category: process_creation
  product: windows
detection:
  selection:
    CommandLine|contains:
      - UtilityFunctions.ps1
      - "RegSnapin "
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: 0403d67d-6227-4ea8-8145-4e72db7da120
    type: derived