Sigma rule: Potential Powershell ReverseShell Connection
A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-5b9c10f04ab4, updated 2023-04-05T00:00:00.000Z.
Rule
- Title
- Potential Powershell ReverseShell Connection
- Status
- stable
- Level
- high
- Author
- FPT.EagleEye, wagga, Nasreddine Bencherchali (Nextron Systems)
- Date
- 2021-03-03
- Modified
- 2023-04-05
- File
- rules/windows/process_creation/proc_creation_win_powershell_reverse_shell_connection.yml
- Commit
- ccbb0369507f796db0b0ae6854c8a2be471b9d84
Detects usage of the "TcpClient" class. Which can be abused to establish remote connections and reverse-shells. As seen used by the Nishang "Invoke-PowerShellTcpOneLine" reverse shell and other.
Log source
- product
- windows
- category
- process_creation
Detection
selection_img:
- OriginalFileName:
- 'PowerShell.EXE'
- 'pwsh.dll'
- Image|endswith:
- '\powershell.exe'
- '\pwsh.exe'
selection_cli:
CommandLine|contains|all:
- ' Net.Sockets.TCPClient'
- '.GetStream('
- '.Write('
condition: all of selection_*False positives (as the rule lists them)
- In rare administrative cases, this function might be used to check network connectivity
Tags
- attack.execution
- attack.t1059.001
MITRE ATT&CK ids this rule names
References
- https://www.volexity.com/blog/2021/03/02/active-exploitation-of-microsoft-exchange-zero-day-vulnerabilities/
- https://www.microsoft.com/security/blog/2021/03/02/hafnium-targeting-exchange-servers/
- https://github.com/samratashok/nishang/blob/414ee1104526d7057f9adaeee196d91ae447283e/Shells/Invoke-PowerShellTcpOneLine.ps1
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/process_creation/proc_creation_win_powershell_reverse_shell_connection.yml
Sources and licences
SigmaHQ
"Potential Powershell ReverseShell Connection" by FPT.EagleEye, wagga, Nasreddine Bencherchali (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/process_creation/proc_creation_win_powershell_reverse_shell_connection.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: Potential Powershell ReverseShell Connection",
entity page, dataset version ref-5b9c10f04ab4, updated 2023-04-05T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/edc2f8ae-2412-4dfd-b9d5-0c57727e70be (accessed 2026-11-03).
Underlying source: SigmaHQ rule edc2f8ae-2412-4dfd-b9d5-0c57727e70be, 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.