melo-tts-metadata-creator
Skill silently installs multiple undeclared Python packages (torch, whisper, audio-separator, librosa) and executes shell commands (nvidia-smi, pip install) without disclosure in SKILL.md documentation.
为什么得出这个结论
1/4 个维度触发发现 5 项声明之外的能力或越权行为。
提取到 3 个一般风险产物,需要结合上下文判断。
没有形成明确的恶意路径。
发现 7 项需要关注的依赖或供应链线索。
风险分是怎么被拉高的
SKILL.md declares only 'python' as required but silently installs torch, torchaudio, whisper, audio-separator, librosa, pydub, huggingface-hub
SKILL.md does not mention subprocess/shell usage. env_manager.py runs nvidia-smi and pip install commands
Downloads PyTorch wheels from pytorch.org and packages from pypi.tuna.tsinghua.edu.cn not mentioned in docs
Creates venv directory and restarts script in venv without disclosure
最关键的证据
Undeclared silent package installation
SKILL.md metadata declares only 'python' as required bin, but generate_metadata_list.py:18-20 silently installs openai-whisper, torch, torchaudio via ensure_package.pip() without user consent or documentation.
scripts/generate_metadata_list.py:18 Undeclared subprocess shell execution
env_manager.py executes multiple shell commands via subprocess (nvidia-smi, pip install) to set up virtual environment and install dependencies. This is essential functionality not mentioned in SKILL.md.
scripts/env_manager.py:79 Undeclared extensive package dependencies
env_manager.py lines 188-194 install audio-separator, librosa, pydub, huggingface-hub[tqdm] - 4+ additional packages not declared anywhere.
scripts/env_manager.py:188 Unpinned package versions
All pip installs in ensure_package.py and env_manager.py use unpinned versions (*). This can lead to supply chain attacks via dependency confusion or typosquatting on future updates.
scripts/ensure_package.py:45 Undeclared network access for model downloads
Whisper model downloads to ./models/ directory (generate_metadata_list.py:47) and PyTorch wheels from external URLs (env_manager.py:148,161) are not disclosed.
scripts/generate_metadata_list.py:47 声明能力 vs 实际能力
scripts/config.py:20 creates LOG_DIR.parent.mkdir scripts/env_manager.py:79 subprocess.check_call pip install scripts/env_manager.py:148 downloads from pytorch.org scripts/env_manager.py:45 reads os.getenv(RUNNING_IN_VENV) scripts/generate_metadata_list.py:18 ensure_package.pip() auto-installs 可疑产物与外联
https://pypi.tuna.tsinghua.edu.cn/simple scripts/ensure_package.py:50
https://download.pytorch.org/whl/cpu scripts/env_manager.py:148
https://download.pytorch.org/whl/ scripts/env_manager.py:161
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| openai-whisper | * | pip (auto-installed) | 否 | Silent installation at runtime, not declared in docs |
| torch | * | pip (auto-installed) | 否 | Downloaded from pytorch.org |
| torchaudio | * | pip (auto-installed) | 否 | Downloaded from pytorch.org |
| audio-separator | * | pip (auto-installed) | 否 | Installed in env_manager.py but not required for core functionality |
| librosa | * | pip (auto-installed) | 否 | Installed but not imported anywhere in the codebase |
| pydub | * | pip (auto-installed) | 否 | Installed but not imported anywhere in the codebase |
| huggingface-hub | * | pip (auto-installed) | 否 | Installed but not imported anywhere in the codebase |
文件构成
scripts/env_manager.py scripts/generate_metadata_list.py scripts/ensure_package.py