Sigma rule: Suspicious TCP Tunnel Via PowerShell Script

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-4e29e3c52e2c, updated 2022-07-08T00:00:00.000Z.

Rule

Title
Suspicious TCP Tunnel Via PowerShell Script
Status
test
Level
medium
Author
Nasreddine Bencherchali (Nextron Systems)
Date
2022-07-08
File
rules/windows/powershell/powershell_script/posh_ps_susp_proxy_scripts.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects powershell scripts that creates sockets/listeners which could be indicative of tunneling activity

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enabled

Detection

selection:
    ScriptBlockText|contains|all:
        - '[System.Net.HttpWebRequest]'
        - 'System.Net.Sockets.TcpListener'
        - 'AcceptTcpClient'
condition: selection

False positives (as the rule lists them)

  • Unknown

Tags

  • attack.command-and-control
  • attack.t1090

MITRE ATT&CK ids this rule names

References

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_susp_proxy_scripts.yml

Sources and licences

  • SigmaHQ

    "Suspicious TCP Tunnel Via PowerShell Script" by Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_susp_proxy_scripts.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Suspicious TCP Tunnel Via PowerShell Script",
entity page, dataset version ref-4e29e3c52e2c, updated 2022-07-08T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/bd33d2aa-497e-4651-9893-5c5364646595 (accessed 2026-11-03).
Underlying source: SigmaHQ rule bd33d2aa-497e-4651-9893-5c5364646595, 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.