Suspicious PowerShell Remote Session Creation (via ps_script)
This rule detects threat actors may misuse PowerShell commands and scripts for execution. PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system
SigmamediumWindowsv1
sigma
suspicious-powershell-remote-session-creation-via-ps-script
title: Suspicious PowerShell Remote Session Creation (via ps_script)
id: 5238d653-b1b8-50ec-8c6a-928e79a8d975
status: stable
description: This rule detects threat actors may misuse PowerShell commands and scripts for execution. PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system
references:
- https://attack.mitre.org/techniques/T1059/001/
- https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1059.001/T1059.001.md#atomic-test-10---powershell-invoke-downloadcradle
- https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/new-pssession?view=powershell-7.4
author: Huntrule Team
date: 2026-06-26
tags:
- attack.execution
- attack.t1059.001
logsource:
product: windows
category: ps_script
definition: 'Requirements: Script Block Logging must be enabled'
detection:
selection:
ScriptBlockText|contains|all:
- 'New-PSSession'
- '-ComputerName '
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.