Suspicious Execution of Troubleshooting Pack Cmdlet (via ps_script)

This rule detects execution of "TroubleshootingPack" cmdlets to abuse CVE-2022-30190 or action similar to "msdt" lolbin (as described in LOLBAS)

SigmamediumWindowsv1
sigma
title: Suspicious Execution of Troubleshooting Pack Cmdlet (via ps_script)
id: f506639b-241a-5b54-aa8b-2ee886b580ec
status: stable
description: This rule detects execution of "TroubleshootingPack" cmdlets to abuse CVE-2022-30190 or action similar to "msdt" lolbin (as described in LOLBAS)
references:
    - https://attack.mitre.org/techniques/T1202/
    - https://twitter.com/nas_bench/status/1537919885031772161
    - https://lolbas-project.github.io/lolbas/Binaries/Msdt/
author: Huntrule Team
date: 2026-06-07
tags:
    - attack.stealth
    - attack.t1202
logsource:
    product: windows
    category: ps_script
    definition: 'Requirements: Script Block Logging must be enabled'
detection:
    selection:
        ScriptBlockText|contains|all:
            - 'Invoke-TroubleshootingPack'
            - 'C:\Windows\Diagnostics\System\PCW'
            - '-AnswerFile'
            - '-Unattended'
    condition: selection
falsepositives:
    - Unknown
level: medium

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.