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.
- Product
- windows
- Category
- process_creation
- Author
- frack113 (SigmaHQ), DRL 1.1
- Published
- 2022-05-28
- Updated
- 2026-07-31
ATT&CK techniques
Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
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.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
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