subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for attempt in range(retries): try: result = subprocess.run( ["clawhub", "install", slug], capture_output=True, text=True,- Confidence
- 88% confidence
- Finding
- The code executes an external installer command using a slug derived from remote API data (`requires_skills`). Although `subprocess.run` is invoked without a shell, this still grants a remote service the ability to trigger local software installation, which is a meaningful code and supply-chain trust boundary crossing.
