subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if author: cmd.append(f"--author={author}") result = subprocess.run( cmd, capture_output=True, text=True, timeout=15 )- Confidence
- 93% confidence
- Finding
- This subprocess invocation runs `git log` over attacker-controlled local repositories discovered by broad filesystem scanning. Even without `shell=True`, invoking Git inside untrusted repositories can trigger dangerous Git behaviors, hooks/config interactions, or parsing of hostile repository data, especially when the skill automatically enumerates and processes many repos without trust boundaries.
