Back to skill

Security audit

MiniMax DOCX Pro

Security checks for vulnerabilities and agentic risk

Overview

This Word document skill mostly matches its stated purpose, but it can automatically download and run a .NET installer and modify the user's local .NET runtime without clear top-level disclosure.

Review before installing. Use this only where automatic network installation and persistent writes to ~/.dotnet are acceptable, or preinstall .NET and disable/remove the auto-provisioning path. Avoid running its audit or map-apply commands on untrusted DOCX files in shared workers unless archive extraction is sandboxed or resource-limited.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • 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
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
docx_engine.py:209
Finding

Automatic Retrieval and Execution of an Unpinned Remote .NET Installer

Content
View full analysis
Optional[Path]: """Download and install .NET SDK automatically. Returns: Path to the installed binary, or None on failure. """ os_type = platform.system() channel = required_dotnet_channel() print(" Acquiring .NET SDK...") try: if os_type == "Windows": installer_url = "https://dot.net/v1/dotnet-install.ps1" target_dir = Path.home() / ".dotnet" powershell_script = f""" $ErrorActionPreference = 'Stop' [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 $installer = Invoke-WebRequest -Uri '{installer_url}' -UseBasicParsing $execution = [scriptblock]::Create($installer.Content) & $execution -Channel {channel} -InstallDir '{target_dir}' """ subprocess.run( ["powershell", "-Command", powershell_script], capture_output=True, text=True, timeout=300 ) binary = target_dir / "dotnet.exe" else: installer_url = "https://dot.net/v1/dotnet-install.sh" target_dir = Path.home() / ".dotnet" installer_path = Path(tempfile.gettempdir()) / "dotnet-bootstrap.sh" subprocess.run( ["curl", "-sSL", installer_url, "-o", str(installer_path)], check=True, timeout=60 ) installer_path.chmod(0o755) subprocess.run( [str(installer_path), "--channel", channel, "--install-dir", str(target_dir)], check=True, timeout=300 ) binary = target_dir / "dotnet" if binary.exists(): verify = subprocess.run([str(binary), "--version"] ...[truncated 3247 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
docx_engine.py:1383
Finding

Unbounded Extraction of Untrusted DOCX Archives Enables Resource Exhaustion

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
Findings (45)

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

Repairing and normalizing existing WordprocessingML structures is a materially different capability from simple document generation and should be disclosed. Structural mutation of user-supplied documents can alter content fidelity, strip artifacts, or unexpectedly rewrite files, which is more sensitive in enterprise document workflows.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

High
Category
Not specified by scanner
Confidence
98% confidence
Finding

This section performs network-backed installation by downloading installer scripts and then executing them. In a document-generation skill, that is especially dangerous because it creates an unnecessary remote code execution and supply-chain attack surface unrelated to processing DOCX content itself.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · docx_engine.py (reported line 637)May include surrounding context.

python
print("  + Compiled")

    print(">> Generating...")
    run_env = os.environ.copy()
    run_env.setdefault("DOTNET_ROLL_FORWARD", "LatestMajor")
    proc = subprocess.run(
        [

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
94% confidence
Finding

The skill exposes operationally sensitive capabilities through documented shell execution, file read/write, and environment access, but does not declare any explicit tool scope or permission boundaries. In an agent setting, this increases the chance of over-broad execution and makes it harder for a policy layer to constrain what the skill may do.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · docx_engine.py (reported line 188)May include surrounding context.

python
return ("absent", None, None)

    try:
        proc = subprocess.run(
            [str(binary), "--version"],
            capture_output=True, text=True, timeout=10
        )

Description-Behavior Mismatch

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill's declared purpose is document generation, but it silently expands scope into runtime acquisition and installation. That hidden behavior is security-relevant because users invoking a document tool may not expect software installation and remote code retrieval, increasing the chance of unsafe execution in sensitive environments.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
97% confidence
Finding

This code downloads PowerShell content from the internet and immediately executes it in-process without signature verification, pinning, or explicit user confirmation at the moment of execution. That creates a supply-chain remote code execution path: if the network path, upstream host, or returned content is tampered with, arbitrary code runs with the user's privileges.

Content

Scanner excerpt · docx_engine.py (reported line 231)May include surrounding context.

python
$execution = [scriptblock]::Create($installer.Content)
            & $execution -Channel {channel} -InstallDir '{target_dir}'
            """
            subprocess.run(
                ["powershell", "-Command", powershell_script],
                capture_output=True, text=True, timeout=300
            )

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
95% confidence
Finding

This command retrieves an installer script over the network into a temporary file. On its own it is a download step, but in this workflow it directly feeds an execution path, making the system dependent on remote content integrity and exposing users to supply-chain compromise.

Content

Scanner excerpt · docx_engine.py (reported line 241)May include surrounding context.

python
target_dir = Path.home() / ".dotnet"

            installer_path = Path(tempfile.gettempdir()) / "dotnet-bootstrap.sh"
            subprocess.run(
                ["curl", "-sSL", installer_url, "-o", str(installer_path)],
                check=True, timeout=60
            )

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
97% confidence
Finding

After downloading a script to /tmp, the code marks it executable and runs it automatically. This is dangerous because it executes untrusted network-fetched code with no integrity validation, and temporary directories can also introduce local tampering concerns in some environments.

Content

Scanner excerpt · docx_engine.py (reported line 246)May include surrounding context.

python
check=True, timeout=60
            )
            installer_path.chmod(0o755)
            subprocess.run(
                [str(installer_path), "--channel", channel, "--install-dir", str(target_dir)],
                check=True, timeout=300
            )

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · docx_engine.py (reported line 253)May include surrounding context.

python
binary = target_dir / "dotnet"

        if binary.exists():
            verify = subprocess.run([str(binary), "--version"], capture_output=True, text=True)
            if verify.returncode == 0:
                print(f"  + Provisioned: {verify.stdout.strip()}")
                return binary

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

guarantee_dotnet() can automatically trigger download/install behavior and even delete ~/.dotnet in the corrupted case, all without an explicit confirmation prompt at the point of action. That is unsafe operationally and security-wise because merely running a normal workflow command can lead to remote code execution and destructive local changes.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · docx_engine.py (reported line 308)May include surrounding context.

python
pandoc_binary = shutil.which("pandoc")
    if pandoc_binary:
        try:
            proc = subprocess.run(["pandoc", "--version"], capture_output=True, text=True, timeout=5)
            ver = proc.stdout.split("\n")[0].split()[-1] if proc.returncode == 0 else "?"
            inventory["pandoc"] = ("available", ver)
        except Exception:

Dynamic import via __import__()

Medium
Category
Dangerous Code Execution
Confidence
75% confidence
Finding

Dynamic import() can load arbitrary modules at runtime, bypassing static analysis and potentially importing malicious code.

Content

Scanner excerpt · docx_engine.py (reported line 329)May include surrounding context.

python
for pkg in ["playwright", "matplotlib", "PIL"]:
        try:
            __import__(pkg if pkg != "PIL" else "PIL.Image")
            inventory[pkg] = ("available", None)
        except ImportError:
            inventory[pkg] = ("optional", None)