The skill is vulnerable to prompt injection, exposes API
Claims to do
Image Gen — AI 图像生成: 支持文生图 + 图生图,自动管理 API Key,生成结果可直接插入 WPS 笔记。
Actually does
The skill executes a Python script (`comm_script/image_gen.py`) to generate images via OpenRouter, Alibaba Cloud Bailian, Volcengine Ark, or Google Gemini APIs. It encrypts and stores API keys in WPS notes using `wpsnote-cli` for persistence. Generated images are saved locally and can be inserted into WPS notes using `wpsnote-cli` or a fallback MCP function.
DeBERTa classifier detected prompt injection (confidence: 0.98)
The skill explicitly warns that third-party MCP plugins can read encrypted API keys from WPS Notes, indicating a significant supply chain risk where malicious plugins could steal sensitive credentials.
⚠️ 如果你添加了第三方 MCP 插件,该插件可读取笔记内容(含密文)
The skill implements a custom AES encryption for API keys, deriving the key from device/note IDs. Raw user-provided API keys are passed as command-line arguments to a local Python script for encryption, creating a sensitive attack surface for credential harvesting or manipulation if the script or environment is compromised.
python3 comm_script/image_gen.py encrypt-key ... --key "{用户提供的Key}"The `wpsnote-cli insert-image` command and its MCP fallback can insert images from local paths. If the `src` parameter can be manipulated by an attacker, it could potentially be used to exfiltrate arbitrary local files by embedding them into notes.
wpsnote-cli insert-image --src "{图片本地路径或URL}"[](https://mondoo.com/ai-agent-security/skills/github/wpsnote/wpsnote-skills/image-gen)<a href="https://mondoo.com/ai-agent-security/skills/github/wpsnote/wpsnote-skills/image-gen"><img src="https://mondoo.com/ai-agent-security/api/badge/github/wpsnote/wpsnote-skills/image-gen.svg" alt="Mondoo Skill Check" /></a>https://mondoo.com/ai-agent-security/api/badge/github/wpsnote/wpsnote-skills/image-gen.svgSkills can read files, run commands, and access credentials. Mondoo helps organizations manage the security risks of AI agent skills across their entire fleet.