subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not script.is_file(): return try: proc = subprocess.run( [sys.executable, str(script), "--print-response"], capture_output=True, text=True, timeout=15, )- Confidence
- 91% confidence
- Finding
- This code executes another Python script discovered from repository-controlled paths using subprocess. Even though it avoids shell injection by passing an argument list, it still transfers code-execution trust to an external script inside the repo or .agents directory, so a tampered or untrusted check_update.py would run automatically when this helper is invoked.
