Back to skill

Security audit

minimax-mcp

Security checks for vulnerabilities and agentic risk

Overview

This skill has a coherent MiniMax search/image purpose, but it needs review because its executable dependency and credential/data handling are under-scoped and partly inconsistent.

Review before installing. Use a pinned and reviewed minimax-coding-plan-mcp version, keep the API key in environment variables or a secret manager rather than config.json, and avoid sending private screenshots, documents, internal URLs, or secrets through the image/search features. Only set MINIMAX_PYTHON to a trusted absolute Python executable path.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/minimax_mcp.js:32
Finding

Command Injection Through the MINIMAX_PYTHON Environment Variable

Content
View full analysis
JSON.stringify(m)).join('\n') + '\n'; const result = execSync(`"${pythonExe}" -m minimax_mcp.server`, { env: { ...process.env, MINIMAX_API_KEY: apiKey, MINIMAX_API_HOST: apiHost, FASTMCP_LOG_LEVEL: 'ERROR', REQUESTS_CA_BUNDLE: VENV_CERTIFI_CA }, input, maxBuffer: 10 * 1024 * 1024, timeout: 60000, shell: true, windowsHide: true }); ``` ### Technical Analysis The value of `MINIMAX_PYTHON` is read from the process environment and interpolated directly into a command string passed to `execSync`. The command is explicitly executed with `shell: true`. Wrapping the value in double quotes is not sufficient shell escaping. A malicious value containing a closing quote followed by shell metacharacters can terminate the intended executable token and append another command. The exact metacharacters required depend on the operating system shell. This issue is reachable whenever the wrapper runs an MCP operation, including the `search`, `image`, and `tools` commands. Exploitation requires the attacker to influence the environment inherited by the Node.js process, such as through an editable OpenClaw configuration, deployment configuration, wrapper script, or compromised parent process. ### Attack Path 1. The attacker obtains the ability to modify `MINIMAX_PYTHON` in the environment or OpenClaw configuration. 2. The attacker supplies a value that closes the quoted executable path and appends a shell command. 3. A user or agent invokes the skill using `search`, `image`, or `tools`. 4. `runMCP()` constructs a com ...[truncated 829 chars]
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
SKILL_en.md:24
Finding

Unpinned Third-Party MCP Package Installation

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
config.example.json:2
Finding

Configuration Template Encourages Plaintext API-Key Storage

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (9)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill documents sending either local image files or remote image URLs to an external image-understanding service, but it gives no warning that image contents may leave the local machine and be processed by a third party. This can lead users to unknowingly upload sensitive screenshots, documents, or personal data, especially because the examples normalize local-file analysis as a routine action.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

Rp1

Medium
Category
MCP Rug Pull
Confidence
65% confidence
Finding

uvx/uv tool run commands without ==version create a rug-pull risk.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The skill documents local-file and URL-based image analysis without warning that images may be transmitted to third-party services for processing. Users may unknowingly upload sensitive screenshots, documents, or intranet-accessible image URLs, creating confidentiality and privacy risks that are amplified by the skill's convenience-oriented framing.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The script sends user-provided search queries and image sources directly to the external MiniMax API through the MCP server, but at execution time it does not present any clear disclosure, confirmation, or consent prompt. This creates a real data-exposure risk because users may provide sensitive text, local file paths, or remote image URLs without realizing that the content will be transmitted to a third-party service.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

The fallback chain states that search may automatically switch to Brave Search or Qwen Chat, but it does not warn users that their queries may be transmitted to third-party services with different privacy and retention practices. This is dangerous because users may assume a single provider or local handling when in fact their prompts could be redirected externally during failure conditions.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The natural-language comment is written only in Chinese and provides setup instructions without offering any language choice or alternative. This can violate a language/locale policy when skills are expected to avoid forcing a specific language absent explicit justification or user opt-in.

Content

No source excerpt is available for this finding.