Medium severityET ATTACK RESPONSEActive in PcapHub scans

ET ATTACK_RESPONSE Nishang Invoke-PowerShellTcp Shell Prompt Outbound

SID 2038605 · rev 2 · classtype bad-unknown

What this signature means

An attack response rule: a reply that suggests an earlier attack worked, such as command output or an error message leaking. Traffic that is potentially bad but not tied to a specific known threat. Worth a look, often benign.

Generated from the rule itself: its category, classtype and metadata. Nothing here is guessed.

What it watches

TCP traffic from a monitored host to any host, in an established connection, from client to server.

It fires when

  • the packet payload starts with "Windows PowerShell running as user"
  • the packet payload contains "|20|on|20|" (bytes between | | are hexadecimal) (within 258 bytes of the previous match)

What Emerging Threats says

  • Emerging Threats rates it minor with high confidence.
  • Target: Client Endpoint.
  • Meant for perimeter sensors.
  • Performance impact on the sensor: low.

Good to know

  • Active in PcapHub's scan set: every uploaded capture is checked against it.

Public captures that trigger it1

Rule

alert tcp-pkt $HOME_NET any -> any any (msg:"ET ATTACK_RESPONSE Nishang Invoke-PowerShellTcp Shell Prompt Outbound"; flow:established,to_server; stream_size:server,<,5; content:"Windows PowerShell running as user"; startswith; fast_pattern; content:"|20|on|20|"; within:258; reference:url,github.com/samratashok/nishang/blob/master/Shells/Invoke-PowerShellTcp.ps1; classtype:bad-unknown; sid:2038605; rev:2; metadata:attack_target Client_Endpoint, created_at 2022_08_24, deployment Perimeter, performance_impact Low, confidence High, signature_severity Minor, tag Description_Generated_By_Proofpoint_Nexus, updated_at 2024_12_12;)

Emerging Threats Open. Rule created Aug 24, 2022. Last revised by ET Dec 12, 2024. Text on PcapHub refreshed 7mo ago.