deploy-folder-to-modelscope
Fail
Audited by Gen Agent Trust Hub on Sep 16, 2026
Risk Level: HIGHCOMMAND_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The scripts
scripts/deploy.pyandscripts/run.pymake extensive use ofsubprocess.run(..., shell=True)andsubprocess.check_output(..., shell=True)to perform Git and filesystem operations. - [COMMAND_EXECUTION]: Critical command injection vulnerabilities are present in
scripts/deploy.py. Themodelscope_urlandsource_foldervariables are directly interpolated into shell command strings. If these inputs contain shell metacharacters (e.g.,;,&,|,$(...)), they will be executed as arbitrary system commands. - [COMMAND_EXECUTION]: Similar injection vulnerability exists in
scripts/run.pywhen constructing the command to calldeploy.py, wheremodelscope_urlanddeploy_dirare included in a shell execution string. - [CREDENTIALS_UNSAFE]: The skill manages ModelScope URLs that typically include OAuth2 authentication tokens. These sensitive credentials are passed as command-line arguments to the deployment script, exposing them to any user or process capable of viewing the system's process list (e.g., via
psortop).
Recommendations
- AI detected serious security threats
Audit Metadata