minimax-web-search
Hardcoded API key embedded in source code with inadequate security warnings creates critical credential exposure risk.
A complete MiniMax API key is embedded in plaintext in scripts/mmsearch.py and scripts/mmvision.py. This key grants access to the MiniMax Coding Plan API and can be extracted by anyone with read access to the source code.
scripts/mmsearch.py:11 为什么得出这个结论
1/4 个维度触发声明资源与推断能力基本一致。
提取到 1 个一般风险产物,需要结合上下文判断。
报告包含 4 步攻击链,另有 2 项高危或严重发现。
发现 2 项需要关注的依赖或供应链线索。
攻击链
exposure · scripts/mmsearch.py:11
exposure · scripts/mmvision.py:11
最终危害 · scripts/mmsearch.py:11
最终危害 · SKILL.md:31
风险分是怎么被拉高的
API key 'sk-cp-_opubDWoTJY5qpJAoI...' embedded in both mmsearch.py and mmvision.py (lines 11 in both)
No attempt to mask or secure the key; exposed in plaintext
SKILL.md says key is 'built-in' (已内置) presenting it as a feature rather than a security risk
Key visible in source, commits, and logs if skill is shared/distributed
最关键的证据
Hardcoded API Key in Source Code
A complete MiniMax API key is embedded in plaintext in scripts/mmsearch.py and scripts/mmvision.py. This key grants access to the MiniMax Coding Plan API and can be extracted by anyone with read access to the source code.
scripts/mmsearch.py:11 Duplicate Hardcoded API Key
The same API key is duplicated in scripts/mmvision.py, line 11
scripts/mmvision.py:11 Misleading Security Documentation
SKILL.md presents the hardcoded key as a feature ('已内置在脚本中' - built into scripts) rather than disclosing it as a security risk. Users may unknowingly share this skill with exposed credentials.
SKILL.md:31 Unpinned Dependency Version
The uvx command runs 'minimax-coding-plan-mcp' without version pinning, which could allow a malicious package update
scripts/mmsearch.py:23 声明能力 vs 实际能力
SKILL.md declares file access for scripts Makes API calls to api.minimaxi.com subprocess.Popen for uvx command execution 可疑产物与外联
https://api.minimaxi.com scripts/mmsearch.py:11
依赖与供应链
| 包名 | 版本 | 来源 | 漏洞 | 备注 |
|---|---|---|---|---|
| uvx | * | pip | 否 | CLI tool runner, no known CVEs |
| minimax-coding-plan-mcp | * | uvx | 否 | Version not pinned - potential supply chain risk |
文件构成
scripts/mmvision.py scripts/mmsearch.py SKILL.md