subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: install_script = Path(__file__).parent / "install_skills.py" target_root = Path(__file__).parent.parent.parent.parent.parent subprocess.run([sys.executable, str(install_script), str(target_root)], check=True) print(f"✅ Installed:{target_root / '.claude' / 'skills'}") flag = True except Exception as e:- Confidence
- 92% confidence
- Finding
- The subprocess call itself is not using shell=True, so it avoids command injection, but it launches a separate installer script automatically as part of a scan operation. In this skill context, that means a user invoking a security scan can unknowingly trigger installation and execution of additional code, which creates an unjustified execution path and expands trust to another script without explicit consent.
