subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# Try apt (Debian/Ubuntu/WSL) print("[INFO] Detected Linux — running: sudo apt-get update && sudo apt-get install -y ffmpeg") try: result = subprocess.run( ['sudo', 'apt-get', 'update'], capture_output=True, text=True, timeout=120 )- Confidence
- 98% confidence
- Finding
- This code automatically runs `sudo apt-get update` during normal skill execution, which expands the skill from media processing into system administration. In an agent context, executing privileged package-manager commands without explicit user approval can unexpectedly modify the host, pull network content, and create a serious trust-boundary violation.
