Scan Report
65 /100
MiniMax TTS
调用 MiniMax 语音合成 API 生成语音
硬编码 API 密钥暴露是严重安全问题,同时存在未声明的文件系统写入操作
Do not install this skill
必须移除硬编码密钥,改用环境变量或安全的密钥管理机制;补充文件写入权限声明
Attack Chain 3 steps
◎
Entry 用户通过 SKILL.md 了解技能功能
SKILL.md:1⬡
Escalation 攻击者获取代码后发现硬编码的 API 密钥
scripts/tts.py:17◉
Impact 利用泄露的 API 密钥在 MiniMax 平台进行未授权消费或窃取服务
N/AFindings 3 items
| Severity | Finding | Location |
|---|---|---|
| Critical | 硬编码 API 密钥暴露 Credential Theft | scripts/tts.py:17 |
| High | 未声明的文件系统写入操作 Doc Mismatch | scripts/tts.py:73 |
| Medium | requests 库无版本锁定 Supply Chain | scripts/tts.py:8 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Network | READ | READ | ✓ Aligned | scripts/tts.py:35 向 api.minimaxi.com 发起 API 请求,与 TTS 功能相关 |
| Filesystem | NONE | WRITE | ✗ Violation | scripts/tts.py:73-74 创建 ./audio/ 目录并写入音频文件 |
2 findings
Medium External URL 外部 URL
https://platform.minimax.io/docs/api-reference/speech-t2a-http SKILL.md:4 Medium External URL 外部 URL
https://api.minimaxi.com scripts/tts.py:14 File Tree
2 files · 7.6 KB · 240 lines Python 1f · 177L
Markdown 1f · 63L
├─
▾
scripts
│ └─
tts.py
Python
└─
SKILL.md
Markdown
Dependencies 1 items
| Package | Version | Source | Known Vulns | Notes |
|---|---|---|---|---|
requests | * | pip | No | 无版本锁定,存在供应链风险 |
Security Positives
✓ 功能相对简单,核心逻辑清晰
✓ 使用了 HTTPS 进行 API 通信
✓ 有基本的错误处理和超时设置
✓ 未发现代码混淆或隐藏的恶意行为