Back to skill

Security audit

Mmx Text Researcher

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent MiniMax research helper, but it uses broad auto-activation and includes an unsafe API-key login pattern.

Review before installing. Use this only for non-sensitive research unless you are comfortable sending prompts and retrieved content to MiniMax. Avoid entering a real API key in command-line arguments; use a safer authentication method if the CLI supports one, and narrow when the skill should activate.

Vulnerability Patterns
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:14
Finding

API Key Exposure Through Command-Line Arguments

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, line 14
Vulnerability Type: API key disclosure through process arguments and shell history
Risk Level: Medium

Vulnerable Code Snippet:

bash
- If not authenticated: `mmx auth login --api-key <key>`

Technical Analysis

The skill instructs users or agents to place a MiniMax API key directly in the mmx command line. After replacing the placeholder with a real credential, the secret may become visible in shell history, process listings, terminal transcripts, command telemetry, audit logs, or agent execution logs.

Command-line arguments are generally not an appropriate secret-transport mechanism because they can be recorded or inspected outside the authenticated process. Although the document does not contain a hardcoded credential, following its authentication guidance can disclose a user-supplied credential.

Attack Path

  1. A user or agent follows the prerequisite instructions.
  2. The placeholder is replaced with a valid MiniMax API key.
  3. The authentication command is executed with the key in its argument list.
  4. The command or process arguments are retained in shell history, logs, telemetry, or process-monitoring output.
  5. A local user, monitoring service, log reader, or other party with access to those records retrieves the key.
  6. The exposed key is used to access MiniMax services under the victim's account, subject to the key's permissions.

Impact Assessment

Exploitation requires access to process metadata, command history, terminal records, or execution logs containing the command. A recovered key could permit unauthorized API requests, consumption of the victim's quota or credits, access to capabilities granted to the credential, and activity attributed to the victim's account. The precise scope is limited by the API key's assigned permissions and provider-side controls.

Remediation
View remediation

Remediation Suggestions

  • Remove examples that pass API keys through command-line arguments.
  • Prefer the CLI's interactive authentication flow with hidden input, if supported.
  • Alternatively, provide the credential through standard input, an operating-system credential store, or another vendor-supported secret mechanism that does not expose it in process arguments.
  • If an environment variable is the only supported noninteractive option, load it from a permission-restricted secret manager rather than placing it in shell history, and document the residual risk that environment data may be visible to sufficiently privileged processes.
  • Ensure terminal transcripts and agent logs redact authentication values.
  • Advise users who previously followed this command with a real key to inspect relevant histories and logs, remove exposed records where feasible, revoke the key, and issue a replacement.
Vulnerability Patterns
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (6)

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

This step explicitly sends search results to an external model provider for synthesis, creating a data egress path to a third-party service. If the query or retrieved results contain sensitive, proprietary, or user-specific information, that content may be exposed outside the primary system boundary.

Content

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

text
1. SEARCH  → mmx search "<query>" [--output json]
2. SYNTH   → mmx text chat --model MiniMax-Text-01 --message "Summarize from: <results>"
3. STRUCT  → mmx text chat --output json --message "Extract key facts as JSON"
4. VERIFY  → mmx search "<specific claim>" to cross-check
5. COMPILE → Final synthesis in requested format

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

The skill instructs use of a named external model for research synthesis, again establishing third-party processing of potentially sensitive topics and prompts. Because this is presented as the preferred path for deep research, the exposure is systematic rather than incidental.

Content

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

Deep Research Chat (MiniMax-Text-01 best for synthesis)

bash
mmx text chat --model MiniMax-Text-01 --message "Research brief: <topic>. Provide structured output with: key findings, confidence level per finding, sources, and remaining unknowns."

Streaming Research (for long investigations)

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Streaming long research queries to an external model can increase both the amount and immediacy of data disclosed, especially if users include raw notes, internal context, or identifiers in the query. Streaming also makes review and redaction harder before transmission, raising accidental leakage risk.

Content

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

Streaming Research (for long investigations)

bash
mmx text chat --model MiniMax-Text-01 --message "<research query>" --stream

Multi-turn Research Thread

External Model or Provider Selection

High
Category
Excessive Agency
Confidence
90% confidence
Finding

Although the output is structured as JSON, the prompt still sends task content and findings to an external model provider, so the core risk is unchanged: third-party exposure of potentially sensitive research material. The structured-output framing may encourage broader use in automated workflows, increasing the blast radius if sensitive data is included.

Content

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

Structured Output (JSON)

bash
mmx text chat --model MiniMax-Text-01 --output json --message "Extract into JSON: { topic, findings: [{ claim, confidence, source }], gaps: [], next_steps: [] }"

Fact Verification Loop

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill’s activation conditions are very broad and include generic knowledge-work phrases like research, investigate, and find information, which can cause the skill to trigger in many normal conversations. Over-broad invocation increases the chance that external search and model calls occur without deliberate user intent, potentially sending sensitive prompts or context to third-party services.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The common trigger list contains highly generic phrases such as 'find information about' and 'verify whether,' which are likely to match routine user requests. This makes accidental skill activation more likely and expands the situations in which data may be routed to external tooling without sufficient user awareness or need.

Content

No source excerpt is available for this finding.