subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return log("Running memory audit...") result = subprocess.run( ["python3", str(AUDIT_SCRIPT)], capture_output=True, text=True, timeout=30 )- Confidence
- 92% confidence
- Finding
- The script executes an external Python file referenced by AUDIT_SCRIPT via subprocess, which extends trust beyond this file into another script whose contents and integrity are not validated. In this skill, that is especially risky because the maintenance tool is presented as deterministic/safe, yet it can run arbitrary code from the workspace path during an audit operation.
