PowerShell PSAsyncShell Reverse Shell Activity via Script Block Logging

Detects PowerShell use of PSAsyncShell by matching the tool name in logged script block text.

FreeReviewedSigma · High · v2
Product
windows
Category
ps_script
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2022-10-04
Updated
2026-07-31
title: PowerShell PSAsyncShell Reverse Shell Activity via Script Block Logging
id: 5b93f9af-80a7-421f-b9b6-f6af87f710b2
status: test
description: This rule flags PowerShell script block content that contains the string "PSAsyncShell", indicating use of a TCP reverse shell tool. Reverse shells enable attackers to establish outbound interactive access and maintain persistence or remote control. The detection relies on PowerShell Script Block Logging telemetry that records executed script block text.
references:
  - https://github.com/JoelGMSec/PSAsyncShell
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_script/posh_ps_psasyncshell.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2022-10-04
tags:
  - attack.execution
  - attack.t1059.001
logsource:
  product: windows
  category: ps_script
  definition: "Requirements: Script Block Logging must be enabled"
detection:
  selection:
    ScriptBlockText|contains: PSAsyncShell
  condition: selection
falsepositives:
  - Unlikely
level: high
license: DRL-1.1
related:
  - id: afd3df04-948d-46f6-ae44-25966c44b97f
    type: derived