tts-train
Fail
Audited by Gen Agent Trust Hub on Mar 17, 2026
Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSREMOTE_CODE_EXECUTIONDATA_EXFILTRATION
Full Analysis
- [COMMAND_EXECUTION]: The script
tune_qwen3_1.7b_bayesian.pyis vulnerable to shell command injection. It constructs a shell command string using f-string interpolation of thedatasetparameter—which is a user-controllable command-line option—and executes it viasubprocess.run(..., shell=True). An attacker could exploit this by providing a malicious dataset name (e.g.,horus; touch /tmp/pwned) to execute arbitrary code on the host system. While a 'fixed' version of this script exists in the skill, the vulnerable script remains part of the package and could be accidentally or maliciously invoked. - [EXTERNAL_DOWNLOADS]: The skill automatically downloads third-party code and model weights from GitHub (
github.com/QwenLM/Qwen3-TTS), HuggingFace, and ModelScope. Additionally, the skill's transcription pipeline pulls and runs a Docker image from an unverified personal repository on GitHub Container Registry (ghcr.io/jim60105/whisperx), which increases the risk of supply-chain attacks. - [REMOTE_CODE_EXECUTION]: The skill implements a workflow that clones a remote repository and applies a local patch file (
001-fix-sft-optimizations.patch) at runtime. This dynamic modification and execution of external code circumvent static verification of the model's behavior. The skill also relies heavily on Docker for execution of complex audio processing logic from remote sources. - [DATA_EXFILTRATION]: The inference and tokenization logic in
qwen_tts/inference/qwen3_tts_model.pyandqwen3_tts_tokenizer.pyutilizesurllib.request.urlopento download audio files from user-supplied URLs. This creates a Server-Side Request Forgery (SSRF) vulnerability where an attacker could induce the agent to probe internal network services, access restricted local metadata endpoints, or leak internal information via request parameters.
Recommendations
- AI detected serious security threats
Audit Metadata