Python Spawning Pretty TTY on Windows

Last updated on:

About the rule

Rule Type

Standard

Rule Description

Detects python spawning a pretty tty

Severity

Trouble

Rule Requirement

Criteria

Action1: actionname = "Process started" AND PROCESSNAME endswith "python.exe,python3.exe,python2.exe" AND ((COMMANDLINE contains "import pty" AND COMMANDLINE contains ".spawn(") OR COMMANDLINE contains "from pty import spawn") select Action1.HOSTNAME,Action1.MESSAGE,Action1.COMMANDLINE,Action1.FILE_NAME,Action1.PROCESSNAME,Action1.USERNAME,Action1.PARENTPROCESSNAME

Detection

Execution Mode

realtime

Log Sources

Windows

Author

Nextron Systems