T08 · Insecure Dependencies
- Location
SKILL.md:43- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This skill is a straightforward MiniMax image-generation integration with normal API-key and network behavior, though users should note third-party data sharing and local save hardening gaps.
Install only if you are comfortable sending prompts, reference image URLs, or base64 image data to MiniMax under your account. Use a dedicated MiniMax API key, avoid sensitive images or confidential prompts, prefer saving into a dedicated output directory, and consider pinning `requests` before installation.
SKILL.md:43Unpinned Third-Party Dependency Installation
scripts/minimax_image_gen.py:268Unrestricted Download of Remote API-Provided Image URLs
Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.
'Content-Type': 'application/json',
'Authorization': f'Bearer {key}'
}
response = requests.post(url, json=data, headers=headers, timeout=120)
response.raise_for_status()
return response.json()
Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
def get_api_key():
"""Get API key from environment or skill config."""
# Try environment first
key = os.environ.get('MINIMAX_API_KEY')
if key:
The skill documents use of an API key and an external API, but it does not declare an explicit permission or allowed-tools scope. That weakens least-privilege controls and can cause the agent runtime or reviewer to underestimate that the skill can access environment secrets and make outbound network requests.
The skill sends user prompts and, for i2i, reference image URLs or base64 image content to the external MiniMax service, but the description does not clearly disclose this data transfer. Users may unknowingly submit sensitive prompts or images to a third party, creating privacy, confidentiality, and compliance risk.
The manifest in _meta.json says the skill provides only "Text-to-image generation using MiniMax API." However, the provided skill context describes a broader capability: both text-to-image and image-to-image generation using MiniMax models. This is a semantic mismatch between the manifest's declared behavior and the skill's stated functionality.
Prompts and optional reference image data are transmitted to an external third-party API, which can expose sensitive user content if users are unaware of the data-sharing boundary. In an agent skill context, this is more relevant because prompts or image inputs may contain private or proprietary information and there is no explicit consent or warning in the interface.
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.
'Content-Type': 'application/json',
'Authorization': f'Bearer {key}'
}
response = requests.post(url, json=data, headers=headers, timeout=120)
response.raise_for_status()
return response.json()
The code writes downloaded content to a caller-controlled filepath without constraining the destination to a safe directory. If this tool is invoked by an untrusted user or agent, it can overwrite arbitrary files accessible to the current user, making this a path traversal / arbitrary file write risk in the local context.
response = requests.get(url, timeout=30)
response.raise_for_status()
with open(filepath, 'wb') as f:
f.write(response.content)
return (True, filepath)
except Exception as e:
The natural-language schema values for style_type are only provided in Chinese ("漫画", "元气", "中世纪", "水彩"), which imposes a specific language/locale on users without opt-in. The policy calls for flagging language or locale constraints unless the skill offers a choice or clearly justifies the region-specific requirement.
The script accesses a sensitive credential from MINIMAX_API_KEY or ~/.openclaw/openclaw.json. Although this is typical for API-backed tools, there is no explicit disclosure in user-facing text that the skill reads credentials from these locations.
The natural-language interface exposes style choices only as Chinese strings ("漫画", "元气", "中世纪", "水彩"). This imposes a specific language in the user-facing API without opt-in or alternative labels, which can violate language/locale policy expectations.
The manifest describes both text-to-image and image-to-image generation, and the implementation supports both via image_url/image_base64 inputs and an optional --save path that writes downloaded output to disk. However, the exported tool description at L190 says only 'Text-to-image generation', which misrepresents the broader behavior exposed by the code.
Both the tool schema and CLI argument choices expose style values only in Chinese, which is a user-facing language constraint. There is no indication that the skill is region-specific or that users can choose their preferred language.
The argparse description says 'MiniMax Text-to-Image Generation Tool', but the program also accepts --image-url and --image-base64 and sends them as subject_reference for image-to-image transformations. This is an active mismatch between the documentation shown to users and the actual supported behavior.