{"id":"480e7e51-e797-47e3-8d72-ebfce65b6d8d","title":"Python Spawning Pretty TTY on Windows","description":"Detects python spawning a pretty tty","author":"Nextron Systems","status":"test","level":"high","date":"2022-06-03","modified":"","tags":["attack.execution","attack.t1059"],"technique_ids":["T1059"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unknown"],"references":["https://www.volexity.com/blog/2022/06/02/zero-day-exploitation-of-atlassian-confluence/"],"source_path":"rules/windows/process_creation/proc_creation_win_python_pty_spawn.yml","source_sha256":"9b20e6abf32a46370a1cdd32f45019b8b4fd9facf98e1efb01e825c116a10af4","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_python_pty_spawn.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Python Spawning Pretty TTY on Windows\nid: 480e7e51-e797-47e3-8d72-ebfce65b6d8d\nrelated:\n    - id: 899133d5-4d7c-4a7f-94ee-27355c879d90\n      type: derived\nstatus: test\ndescription: Detects python spawning a pretty tty\nreferences:\n    - https://www.volexity.com/blog/2022/06/02/zero-day-exploitation-of-atlassian-confluence/\nauthor: Nextron Systems\ndate: 2022-06-03\ntags:\n    - attack.execution\n    - attack.t1059\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_img:\n        Image|endswith:\n            - 'python.exe' # no \\ bc of e.g. ipython.exe\n            - 'python3.exe'\n            - 'python2.exe'\n    selection_cli_1:\n        CommandLine|contains|all:\n            - 'import pty'\n            - '.spawn('\n    selection_cli_2:\n        CommandLine|contains: 'from pty import spawn'\n    condition: selection_img and 1 of selection_cli_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1059","id":"T1059","name":"Command and Scripting Interpreter","page":"techniques/enterprise/T1059/"}],"data_path":"data/detection-rules/480e7e51-e797-47e3-8d72-ebfce65b6d8d.json","kind":"sigma"}
