Sigma rule: PowerShell Remote Session Creation
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-c8103a9e1db7, updated 2023-01-02T00:00:00.000Z.
Rule
- Title
- PowerShell Remote Session Creation
- Status
- test
- Level
- medium
- Author
- frack113
- Date
- 2022-01-06
- Modified
- 2023-01-02
- File
- rules/windows/powershell/powershell_script/posh_ps_remote_session_creation.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Adversaries may abuse PowerShell commands and scripts for execution.
PowerShell is a powerful interactive command-line interface and scripting environment included in the Windows operating system
Log source
- product
- windows
- category
- ps_script
- definition
- Requirements: Script Block Logging must be enabled
Detection
selection:
ScriptBlockText|contains|all:
- 'New-PSSession'
- '-ComputerName '
condition: selectionFalse positives (as the rule lists them)
- Legitimate administrative script
Tags
- attack.execution
- attack.t1059.001
MITRE ATT&CK ids this rule names
References
- 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
Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_remote_session_creation.yml
Sources and licences
SigmaHQ
"PowerShell Remote Session Creation" by frack113 (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_remote_session_creation.yml.
Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License
Cite this page
Dragons Eye Ransomware Tracker, "Sigma rule: PowerShell Remote Session Creation",
entity page, dataset version ref-c8103a9e1db7, updated 2023-01-02T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/a0edd39f-a0c6-4c17-8141-261f958e8d8f (accessed 2026-11-03).
Underlying source: SigmaHQ rule a0edd39f-a0c6-4c17-8141-261f958e8d8f, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.