Back to skill

Security audit

千问生图

Security checks for vulnerabilities and agentic risk

Overview

This is a small Qwen image-generation helper that sends prompts to Alibaba Cloud DashScope as expected, with no hidden code or persistence found.

Before installing, understand that generated-image prompts are sent to Alibaba Cloud DashScope using your DASHSCOPE_API_KEY and may incur provider billing. Do not include secrets, private personal data, regulated data, or confidential business material in prompts unless you have approved that third-party processing and selected the appropriate regional endpoint.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (4)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The description says to use the skill when the user asks AI to '生成图片、画图、文生图、text-to-image,或提到千问、阿里云生图'. Several of these triggers are broad everyday requests, and '提到千问' is especially ambiguous because merely mentioning Qwen does not clearly indicate an intent to invoke this image-generation skill. The file does not provide exclusion conditions or negative examples to narrow activation scope.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

使用 qwen-image-2.0-pro 模型(效果最佳):

bash
curl -X POST 'https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \
  -H 'Content-Type: application/json' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
88% confidence
Finding

The curl example demonstrates a live authenticated POST to an external image-generation service using user-supplied prompt content and an API key, with no warning about external disclosure. Because this skill is specifically for text-to-image generation, the transmitted content may include sensitive business, personal, or policy-restricted material if callers are not informed or constrained.

Content

Scanner excerpt · references/api.md (reported line 63)May include surrounding context.

| parameters.watermark | boolean | 否 | 添加水印,默认 false | | parameters.seed | integer | 否 | 随机种子,范围 [0, 2147483647] |

完整 curl 示例

bash
curl -X POST 'https://dashscope.aliyuncs.com/api/v1/services/aigc/multimodal-generation/generation' \

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The documentation instructs users to send prompts and API-authenticated requests to Alibaba Cloud endpoints but does not warn that user prompts, negative prompts, and related metadata will be transmitted to a third-party service. In a skill that may be invoked with arbitrary user content, this omission can cause unintentional disclosure of sensitive or regulated data to an external processor.

Content

No source excerpt is available for this finding.

Static analysis

Detected: suspicious.exposed_secret_literal

File appears to expose a hardcoded API secret or token.

Critical
Code
suspicious.exposed_secret_literal
Location
references/api.md:15