Back to skill

Security audit

China Image Gen

Security checks for vulnerabilities and agentic risk

Overview

This skill is a straightforward SiliconFlow image-generation guide that uses a user-provided API key and sends image prompts to the expected third-party service.

Install only if you are comfortable using SiliconFlow as the image provider. Treat prompts as data sent to a third party, keep your API key private, and avoid including secrets, personal identifiers, confidential work, or regulated data in image prompts.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (11)

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

md
emoji: "🎨"
    requires:
      bins:
        - curl
    requires_env:
      - name: SILICONFLOW_API_KEY
        description: 硅基流动 API Key,在 cloud.siliconflow.cn 注册后创建,新用户有免费额度

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

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

md
emoji: "🎨"
    requires:
      bins:
        - curl
    requires_env:
      - name: SILICONFLOW_API_KEY
        description: 硅基流动 API Key,在 cloud.siliconflow.cn 注册后创建,新用户有免费额度

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

  1. 进入「API密钥」页面,创建并复制 API Key
  2. 在 OpenClaw 中设置环境变量: export SILICONFLOW_API_KEY="sk-xxxxxxxxxxxxxxxx" 或写入 ~/.openclaw/.env 文件
text

---

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 11)May include surrounding context.

md
emoji: "🎨"
    requires:
      bins:
        - curl
    requires_env:
      - name: SILICONFLOW_API_KEY
        description: 硅基流动 API Key,在 cloud.siliconflow.cn 注册后创建,新用户有免费额度

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The activation examples include generic phrases like “画一张...” and “生成一张[风格][内容]的图”, which are common conversational requests and may match ordinary chat rather than deliberate skill invocation. The section does not provide exclusion conditions or negative examples to clarify when this skill should not activate.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill sends user-supplied prompts to a third-party API but does not clearly disclose that prompt content leaves the local environment and is processed by SiliconFlow. If users include sensitive personal, business, or regulated information in prompts, that data could be exposed to an external service without informed consent.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

This command transmits the user's prompt to an external image-generation endpoint. While this is core functionality rather than malicious behavior, it becomes a real security/privacy issue if users are not warned that their content is being shared with a third party and may contain sensitive information.

Content

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

基础调用(FLUX.1-schnell,最常用)

bash
curl -s -X POST "https://api.siliconflow.cn/v1/images/generations" \
  -H "Authorization: Bearer $SILICONFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

The Kolors example also sends prompt content, including potentially revealing descriptive text, to SiliconFlow's API. In context this is intended behavior, but it still represents external disclosure risk if the skill is used with confidential or personal data.

Content

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

Kolors(中文 prompt 最佳)

bash
curl -s -X POST "https://api.siliconflow.cn/v1/images/generations" \
  -H "Authorization: Bearer $SILICONFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
89% confidence
Finding

This is another explicit third-party transmission of user content to a remote image-generation service. The risk is contextual rather than inherently malicious: the skill normalizes sending arbitrary prompts off-box without sufficient warning or consent language.

Content

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

FLUX.1-dev(最高质量)

bash
curl -s -X POST "https://api.siliconflow.cn/v1/images/generations" \
  -H "Authorization: Bearer $SILICONFLOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% 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 · references/models.md (reported line 7)May include surrounding context.

所有模型均使用同一接口:

text
POST https://api.siliconflow.cn/v1/images/generations

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
88% confidence
Finding

This markdown file presents all instructions and model guidance only in Chinese, which can constitute a language/locale policy issue when no user opt-in or alternative language option is provided. The content does not indicate that the skill is region-specific or that Chinese-only output is an intentional, justified constraint.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.