Back to skill

Security audit

MiniMax CLI

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent MiniMax CLI helper, but it asks users to install an unpinned global npm package and shows an API key being passed on the command line.

Review this before installing. Prefer a pinned, verified `mmx-cli` version or a local/project-scoped install, avoid running npm with elevated privileges, and do not paste a live API key directly into a shared terminal or logged agent session. Use a safer authentication flow if the CLI supports it, check permissions on `~/.mmx/config.json`, and monitor MiniMax quota or billing after use.

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 (2)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:10
Finding

Unpinned Global Installation of a Third-Party npm Package

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:17
Finding

API Key Exposed Through a Command-Line Argument

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

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · SKILL.md (reported line 19)May include surrounding context.

Setup

bash
# Authenticate (get key from https://platform.minimax.io)
mmx auth login --api-key sk-xxxxx

# Verify

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Skill selects an external model or provider that may use a different account or billing plan than the operator expects. Undisclosed model switches can cause unexpected cost or quota consumption.

Content

Scanner excerpt · SKILL.md (reported line 32)May include surrounding context.

Text Chat

bash
mmx text chat --message "prompt"
mmx text chat --model MiniMax-M2.7 --message "prompt" --stream
mmx text chat --system "You are a helpful assistant" --message "prompt"
mmx text chat --messages-file ./conversation.json --output json

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The skill instructs users to pass an API key directly on the command line, which can expose the credential through shell history, process listings, terminal logs, or agent telemetry. While this is common in examples, omitting any warning or safer alternative creates a real credential-handling risk in an agent-oriented skill.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.