Powershell Suspicious Win32_PnPEntity (via ps_script)

This rule detects threat actors may attempt to gather information about attached peripheral devices and components connected to a computer system.

SigmalowWindowsv1
sigma
title: Powershell Suspicious Win32_PnPEntity (via ps_script)
id: 13540946-aeff-543b-988d-9a983957eef9
status: stable
description: This rule detects threat actors may attempt to gather information about attached peripheral devices and components connected to a computer system.
references:
    - https://attack.mitre.org/techniques/T1120/
    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1120/T1120.md
author: Huntrule Team
date: 2026-04-03
tags:
    - attack.discovery
    - attack.t1120
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains: Win32_PnPEntity
    condition: selection
falsepositives:
    - Unknown
level: low

Known false positives

  • Unknown

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.