subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for req in REQUIREMENTS: print(f" - {req}") try: subprocess.run(cmd, check=True) except subprocess.CalledProcessError as exc: fail( f"pip install failed (exit={exc.returncode}). "- Confidence
- 86% confidence
- Finding
- The script installs and executes third-party packages from a remote package mirror marked as trusted, which expands the trust boundary to an external repository. In a skill that may process arbitrary repositories, this creates supply-chain risk: a compromised mirror, malicious package, or weakened TLS validation path could result in attacker-controlled code being installed and later executed during mkdocs build.
