Back to skill

Security audit

Volc Image Gen

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Volcengine image-generation skill, but its image-edit features can read arbitrary local files or internal URLs and send their contents outward.

Review before installing. Use this only in a constrained runtime with a narrowly scoped Volcengine key, fixed trusted API base URL, outbound network restrictions, spending limits, and no access to sensitive local files. Do not pass private documents, secrets, internal URLs, or regulated images as image inputs.

Vulnerability Patterns
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
  • 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
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
Findings (4)

T05 · Unauthorized Access and Privilege Escalation

Error
Location
src/utils.js:70
Finding

Arbitrary Local File Read and Outbound Disclosure

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
src/image-gen.js:103
Finding

Unrestricted API Base URL Can Exfiltrate Credentials and Request Data

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Error
Location
src/utils.js:41
Finding

Server-Side Request Forgery Through Caller-Controlled Image URLs

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
src/image-gen.js:235
Finding

Unbounded Inputs Permit Resource Exhaustion and Excessive API Charges

Content
View full analysis
limit(async () => { return await generateImage({ prompt, size, style, n: 1 }); }) ) ); ``` Unbounded variation loop: ```javascript async function createVariations(image, { n = 3, strength = 0.5, size = '1024x1024' } = {}) { const results = []; for (let i = 0; i < n; i++) { const result = await editImage({ image, prompt: 'Preserve the original image style and content and generate a similar variation', strength, size, maxRetries: 2 }); if (result.success) { results.push(...result.images); } } ``` ### Technical Analysis Several externally influenced values lack type validation and upper bounds: - Remote responses are fully buffered in memory through `arraybuffer`. - Local files ...[truncated 1931 chars]
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • YARA SignaturesMalware Match, Webshell Match, Cryptominer Match
Findings (20)

YARA rule 'backdoor_persistence': Backdoor persistence with malicious payloads (shell commands, SSH key injection, hidden root users) [malware]

High
Category
YARA Match
Confidence
75% confidence
Finding

YARA rule matched a known malware signature (reverse shell, backdoor, ransomware, C2 framework, or info stealer).

Content

Scanner excerpt · README.md (reported line 59)May include surrounding context.

�控制** - 批量生成时控制并发数,避免限流

  • 📐 多尺寸支持 - 7 种尺寸可选,最高 1536x1536
  • 🛡️ 完整错误处理 - 详细的错误信息和错误码

🚀 快速开始

1. 安装依赖

bash
cd /home/node/openclaw-skills/volc-image-gen
npm install

2. 配置环境变量

Linux/macOS:

bash
# 添加到 ~/.bashrc 或 ~/.zshrc
echo 'export VOLC_API_KEY="your_api_key_here"' >> ~/.bashrc
echo 'export VOLC_API_BASE="https://ark.cn-beijing.volces.com/api/v3"' >> ~/.bashrc
source ~/.bashrc

Windows PowerShell:

powershell
[System.Environment]::SetEnvironmentVariable("VOLC_API_KEY", "your_api_key_here", "User")
[System.Environment]::SetEnvironmentVariable("VOLC_API_BASE", "https://ark.cn-beijing.volces.com/api/v3", "User")

3. 获取 API Key

  1. 访问 火山引擎方舟控制台
  2. 登录/注册账号
  3. 创建或选择应用
  4. 获取 API Key

4. 测试安装

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The README describes image generation and editing features but does not clearly disclose that user prompts and input images are transmitted to a third-party Volcengine API. In a skill that may process sensitive prompts or private images, this omission can mislead users about data handling and create privacy, compliance, and consent risks.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly supports sending user prompts and input images to the Volcano Engine third-party API, but the documentation does not clearly warn that those inputs leave the local environment and may contain sensitive personal, proprietary, or regulated data. This can lead users to unknowingly transmit confidential images or prompts to an external service, creating privacy, compliance, and data-governance risk.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The alias set for the image-generation command includes very generic triggers such as "img", "image", and common Chinese phrases for generating pictures. In agent environments that route on simple alias matching, broad triggers can cause accidental invocation from ordinary user text, leading to unintended API calls, cost incurrence, or side effects like image generation and downstream file handling.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The manifest advertises automatic local image downloads but provides no warning, path restrictions, or indication of user consent around filesystem effects. In a skill that processes remote-generated content, automatic writes can create unwanted local persistence, fill disk space, or save untrusted files in sensitive locations if implementation controls are weak.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This file's natural-language content, including comments, errors, and console output, is entirely in Chinese, and there is no indication that users can choose another language or that the skill is intentionally region- or locale-specific. The policy requires flagging language or locale constraints when they are imposed without user opt-in or justification.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

This JavaScript file uses Chinese-only natural-language comments and user-visible status/error strings throughout, beginning with the module description and continuing in returned errors and logs. Under the policy, forcing a specific language without an explicit user choice is a locale/language policy violation unless the constraint is clearly documented and justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The function sends the composed prompt and generation parameters to the Volcengine Ark API using axios.post. While the module comment says it calls the API, there is no explicit warning that user-supplied prompt content will be transmitted to a third-party service, which is relevant for privacy-sensitive prompts.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
85% confidence
Finding

The code automatically downloads generated images to a local path via downloadImage(img.url, filename), which is a file-write operation. Although there are progress logs, they do not clearly disclose beforehand that files will be saved locally, and the inline comments/docstrings do not warn users about this storage side effect.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The user-facing descriptions, errors, help text, and primary command aliases are written in Chinese throughout the file, with no indication that other languages are supported or that the language is configurable. This is a natural-language policy concern because the skill effectively imposes a specific language/locale on users without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

This file's natural-language content is entirely in Chinese, including module documentation and user-facing error/log strings. Under the stated policy, forcing a specific language without user opt-in can be a locale-policy violation when no justification or alternative language path is provided.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The utility exposes arbitrary local file reading by accepting either a URL or any existing local path and then base64-encoding the file contents without restriction. If untrusted input can reach loadImage(), an attacker could read sensitive local files such as credentials, keys, or application data, making this a real file disclosure issue rather than a harmless helper.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The documentation advertises caching and later examples mention local paths, but it does not clearly warn that generated images and cached results may be written to local disk. This can expose sensitive generated content to other local users, backups, or disk forensics if operators assume processing is memory-only.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description is entirely in Chinese and does not indicate that users can choose another language or that the skill is intentionally limited to a Chinese-speaking or China-region audience. This creates a natural-language locale-policy concern because it implicitly fixes the skill's presentation to one language without opt-in.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
89% confidence
Finding

Using a caret range for axios allows future installs to resolve to different patch/minor releases, reducing build reproducibility and making it harder to verify whether a safe version is installed. In a network-facing library like axios, this also increases supply-chain risk because vulnerable or behavior-changing releases may be pulled in unexpectedly.

Content

Scanner excerpt · package.json (reported line 18)May include surrounding context.

json
"author": "OpenClaw Skill Master",
  "license": "MIT",
  "dependencies": {
    "axios": "^1.6.0",
    "p-limit": "^3.1.0",
    "node-cache": "^5.1.2"
  },

Unverifiable Dependency: axios has 16 known advisory(ies) (CVE-2026-44494 (axios Vulnerable to Full Man-in-the-Middle via Prototype Pollution Gadget in `co); CVE-2026-44495 (axios Vulnerable to Credential Theft and Response Hijacking via Prototype Pollut); CVE-2025-62718 (Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF) +13 more), but the manifest does not pin a version, so it is unknown whether the installed release is affected

Low
Category
Supply Chain
Confidence
91% confidence
Finding

The manifest uses axios without pinning an exact version, and axios has multiple known advisories in some releases. Because the resolved installed version is not fixed here, it is impossible to verify from this file alone whether deployments may include a vulnerable axios release, which is significant in a skill likely to make outbound API requests.

Content

No source excerpt is available for this finding.

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
82% confidence
Finding

Using a caret range for p-limit makes dependency resolution non-deterministic across environments and weakens supply-chain assurance. Although p-limit is lower risk than an HTTP client, unpinned dependencies can still introduce malicious or vulnerable code through later published versions.

Content

Scanner excerpt · package.json (reported line 19)May include surrounding context.

json
"license": "MIT",
  "dependencies": {
    "axios": "^1.6.0",
    "p-limit": "^3.1.0",
    "node-cache": "^5.1.2"
  },
  "engines": {

Unpinned Dependencies

Low
Category
Supply Chain
Confidence
82% confidence
Finding

Using a caret range for node-cache means installations may silently pick up different releases over time, which undermines reproducibility and dependency integrity. While the direct impact is limited in this manifest alone, it is still a supply-chain hygiene weakness.

Content

Scanner excerpt · package.json (reported line 20)May include surrounding context.

json
"dependencies": {
    "axios": "^1.6.0",
    "p-limit": "^3.1.0",
    "node-cache": "^5.1.2"
  },
  "engines": {
    "node": ">=18.0.0"

Vague Triggers

Low
Category
Not specified by scanner
Confidence
84% confidence
Finding

The help command exposes the alias "帮助"/"usage", which is a common everyday phrase and may be triggered unintentionally if the platform matches aliases loosely. While lower risk than content-generating commands, unintended activation can still leak capability details, confuse routing, or create noisy behavior that makes abuse and phishing-style prompt steering easier.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file’s human-facing text, including the header comment and all console output, is written exclusively in Chinese. This creates a natural-language locale constraint without any opt-in, fallback, or indication that the skill is intentionally region-specific.

Content

No source excerpt is available for this finding.