MiniMax TTS
硬编码 API 密钥暴露是严重安全问题,同时存在未声明的文件系统写入操作
API 密钥被硬编码在源代码中,任何能访问代码的人都可以获取并使用该密钥。密钥类型为 sk-api- 格式,属于 MiniMax 平台的真实认证凭证。
scripts/tts.py:17 Why this conclusion was reached
2/4 dimensions flagged1 undeclared or violating capabilities were inferred.
2 lower-risk artifacts were extracted and still need context.
The report includes 3 attack-chain steps and 2 severe findings.
1 dependency or supply-chain issues need attention.
Attack Chain
Entry · SKILL.md:1
Escalation · scripts/tts.py:17
Impact · N/A
What drove the risk score up
scripts/tts.py:17 硬编码了真实 API 密钥 sk-api-Tszh1qpO-8wtcF_ySIPlvkPN_o9FizrEbr4O6BobaceSqXjknZ8Vy05GYjBWpnYWvmME1pSpDV7GFKrx6gOyTrakw8i3v23VYd4ndyeeCSJkI3H_LGT-LoE,任何能读取代码的人均可使用
SKILL.md 未声明文件系统 WRITE 权限,但代码会创建 ./audio/ 目录并写入音频文件
文档未提及密钥处理方式,存在误导性
Most important evidence
硬编码 API 密钥暴露
API 密钥被硬编码在源代码中,任何能访问代码的人都可以获取并使用该密钥。密钥类型为 sk-api- 格式,属于 MiniMax 平台的真实认证凭证。
scripts/tts.py:17 未声明的文件系统写入操作
SKILL.md 完全未提及技能会创建目录和写入文件,但代码在第73-74行会创建 ./audio/ 目录并保存音频文件
scripts/tts.py:73 requests 库无版本锁定
代码依赖 requests 库但未在 requirements.txt 中指定版本,可能引入依赖混淆风险
scripts/tts.py:8 Declared capability vs actual capability
scripts/tts.py:35 向 api.minimaxi.com 发起 API 请求,与 TTS 功能相关 scripts/tts.py:73-74 创建 ./audio/ 目录并写入音频文件 Suspicious artifacts and egress
https://platform.minimax.io/docs/api-reference/speech-t2a-http SKILL.md:4
https://api.minimaxi.com scripts/tts.py:14
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| requests | * | pip | No | 无版本锁定,存在供应链风险 |
File composition
scripts/tts.py SKILL.md