Detection rules › Sigma

Python Spawning Pretty TTY on Windows

Severity
high
Author
Nextron Systems
Source
upstream

Detects python spawning a pretty tty

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059 Command and Scripting Interpreter

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: selection_img

or:
Image|endswith: python.exe
Image|endswith: python2.exe
Image|endswith: python3.exe

Stage 2: 1 of selection_cli_1

CommandLine|contains: '.spawn('
CommandLine|contains: 'import pty'

Stage 3: 1 of selection_cli_2

CommandLine|contains: 'from pty import spawn'

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • .spawn(
  • from pty import spawn
  • import pty
Imageends_with
  • python.exe corpus 2 (sigma 2)
  • python2.exe corpus 2 (sigma 2)
  • python3.exe corpus 2 (sigma 2)