Inline Python Execution - Spawn Shell Via OS System Library
Description
Detects execution of inline Python code via the "-c" in order to call the "system" function from the "os" library, and spawn a shell.
Query · sigma
selection_img: - Image|endswith: - /python - /python2 - /python3 - Image|contains: - /python2. - /python3. selection_cli: CommandLine|contains|all: - ' -c ' - os.system( CommandLine|contains: - /bin/bash - /bin/dash - /bin/fish - /bin/sh - /bin/zsh condition: all of selection_*
Known false positives
- Unknown