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 Why this conclusion was reached
1/4 dimensions flaggedDeclared resources and inferred behavior are broadly aligned.
1 lower-risk artifacts were extracted and still need context.
The report includes 4 attack-chain steps and 2 severe findings.
2 dependency or supply-chain issues need attention.
Attack Chain
exposure · scripts/mmsearch.py:11
exposure · scripts/mmvision.py:11
Impact · scripts/mmsearch.py:11
Impact · SKILL.md:31
What drove the risk score up
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
Most important evidence
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 Declared capability vs actual capability
SKILL.md declares file access for scripts Makes API calls to api.minimaxi.com subprocess.Popen for uvx command execution Suspicious artifacts and egress
https://api.minimaxi.com scripts/mmsearch.py:11
Dependencies and supply chain
| Package | Version | Source | Known vuln | Notes |
|---|---|---|---|---|
| uvx | * | pip | No | CLI tool runner, no known CVEs |
| minimax-coding-plan-mcp | * | uvx | No | Version not pinned - potential supply chain risk |
File composition
scripts/mmvision.py scripts/mmsearch.py SKILL.md