LoFP LoFP / in rare administrative cases, this function might be used to check network connectivity

Techniques

Sample rules

Potential Powershell ReverseShell Connection

Description

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.

Detection logic

condition: all of selection_*
selection_cli:
  CommandLine|contains|all:
  - ' Net.Sockets.TCPClient'
  - .GetStream(
  - .Write(
selection_img:
- OriginalFileName:
  - PowerShell.EXE
  - pwsh.dll
- Image|endswith:
  - \powershell.exe
  - \pwsh.exe