subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""安装skill""" import subprocess try: result = subprocess.run( ['skillhub', 'install', slug], capture_output=True, text=True,- Confidence
- 95% confidence
- Finding
- The import path installs skills by passing attacker-controlled package data (`slug`) into an external command. Although `subprocess.run` is invoked with an argument list rather than a shell, this still triggers installation of arbitrary remote/local skills from untrusted input, which can lead to execution of untrusted code or supply-chain compromise in the skill ecosystem.
