subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) if download.returncode != 0: return None, (download.stderr or download.stdout or "failed to download install.sh").strip() result = subprocess.run( ["sh", str(script)], capture_output=True, text=True,- Confidence
- 96% confidence
- Finding
- The wrapper executes an install shell script via `sh` after optionally downloading it from a remote URL. This creates a direct remote-code-execution path during normal tool use, because compromise of the source, transport, or repository results in arbitrary code running with the user's privileges.
