subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
success_marker = notifier.get("success_marker", "") or "" try: proc = subprocess.run( argv, input=message if use_stdin else None, text=True,- Confidence
- 92% confidence
- Finding
- This code executes a notifier command taken from configuration and passes message content directly into that process via stdin or argument substitution. Although it does not use shell=True, it still creates a dangerous command-execution boundary where a modified config or malicious notifier script can exfiltrate secrets or run arbitrary code under the agent's privileges.
