Python Reverse Shell Execution Via PTY And Socket Modules
Description
Detects the execution of python with calls to the socket and pty module in order to connect and spawn a potential reverse shell.
Query · sigma
selection: Image|contains: python CommandLine|contains|all: - ' -c ' - import - pty - socket - spawn - .connect condition: selection
Known false positives
- Unknown