subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: import subprocess result = subprocess.run( [sys.executable, str(skill_dir / "scripts" / "brain_service.py"), "help"], capture_output=True, text=True,- Confidence
- 91% confidence
- Finding
- The installer/verifier launches another script from the skill package with the current Python interpreter, which means verification is not side-effect free and can execute arbitrary code embedded in brain_service.py. In a hostile or tampered skill, a user running a seemingly harmless verification step would trigger code execution with the user's privileges.
