subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""Try to reinstall skill via clawhub, then GitHub.""" print(" Reinstalling skill...") try: r = subprocess.run(["clawhub", "install", "stocki", "--force"], capture_output=True, text=True, timeout=30) if r.returncode == 0: print(" -> Reinstalled via clawhub")- Confidence
- 95% confidence
- Finding
- This command executes an external package-management binary to forcibly reinstall the skill. Even though arguments are passed as a list rather than a shell string, invoking a local executable by name relies on PATH resolution and triggers code execution outside the financial-analysis scope. In this skill context, self-reinstallation is unusually dangerous because it can replace local code with whatever the external installer delivers.
