
Summary
The Nishang PowershellTCPOneLine detection rule identifies the use of the Nishang utility's Invoke-PowerShellTCPOneLine function. This method enables communication with a remote Command and Control (C2) server through PowerShell and is notably concerning as it can lead to remote access and potential data exfiltration. This detection leverages data from EDR solutions, scrutinizing PowerShell processes for references to specific .NET classes, namely Net.Sockets.TCPClient and System.Text.ASCIIEncoding. Confirmed use cases of this utility raise fears of unauthorized system control and data compromise, thus necessitating careful monitoring of endpoints for these patterns.
Categories
- Endpoint
Data Sources
- Process
- Windows Registry
- Logon Session
ATT&CK Techniques
- T1059
- T1059.001
Created: 2024-12-16