Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

jimeng generator

v0.1.1

即梦 4.0 图片生成器,通过文本描述生成高质量图片,支持多图编辑与智能比例。

0· 386·7 current·7 all-time
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
high confidence
!
Purpose & Capability
The name/description, README, SKILL.md and scripts/generate.ts consistently implement a VolcEngine (jimeng) image generator that requires VOLCENGINE_AK/VOLCENGINE_SK (or VOLCENGINE_TOKEN). However the registry metadata lists no required environment variables or primary credential — that is a clear mismatch between declared requirements and actual code/instructions.
Instruction Scope
SKILL.md instructs the agent/user to create a .env with VolcEngine credentials, run npm install, and invoke the TypeScript script which submits tasks, polls status, and writes images to ./output. The instructions and the script operate within the stated purpose (submit tasks to visual.volcengineapi.com and save results). The script reads only the project .env and writes output images; it does not try to read unrelated system paths or exfiltrate data to unexpected endpoints.
Install Mechanism
No install spec in registry (instruction-only), but the package includes a Node.js script and package.json that requires running npm install (axios, ts-node, typescript). Installing npm deps is normal for this tool; dependencies come from standard npm registries/mirrors (package-lock uses a mirror). There is no remote arbitrary download or extract of unknown archives in the skill files. Still, because code will be executed locally, users should install and run it in a controlled environment.
!
Credentials
The code and SKILL.md legitimately require VolcEngine credentials (VOLCENGINE_AK, VOLCENGINE_SK, optionally VOLCENGINE_TOKEN). That access is proportional to the stated purpose. The concern is that the skill metadata did not declare these required env vars, so an installer/agent might not realize credentials are needed — increasing the chance a user will supply secrets without noticing. No other unrelated credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs as a local CLI script; autonomy (agent-initiated invocation) is enabled by default but not combined with other red flags.
What to consider before installing
This package appears to be a legitimate VolcEngine (Jimeng) image generator: it will ask you to supply VOLCENGINE_AK and VOLCENGINE_SK (or a temporary token) in a .env file and then run a TypeScript script that signs requests and calls visual.volcengineapi.com, saving images to ./output. Before installing or running it: 1) note the registry metadata did NOT declare required env vars — treat that as a packaging oversight and verify you are intentionally providing VolcEngine credentials; 2) prefer using a short-lived STS token or least-privilege key and rotate/revoke keys after testing; 3) run npm install and execute the script in an isolated environment (container or sandbox) so network calls and file writes are contained; 4) inspect scripts/generate.ts yourself (or a reviewer) — it is the real runtime code and currently does not contain obfuscated or unexpected endpoints; 5) verify dependency sources if you are concerned about supply-chain risk (npm mirror entries are present in package-lock.json). If any of these checks make you uncomfortable, do not provide long-lived credentials or run the code on sensitive hosts.

Like a lobster shell, security has layers — review code before you run it.

latestvk97abp644s692f6rxyaj4n0vvn82hah1
386downloads
0stars
2versions
Updated 10h ago
v0.1.1
MIT-0

即梦 4.0 图片生成器

基于火山引擎即梦 AI 4.0 生成图片。一条命令完成:提交任务 → 等待完成 → 保存图片。

配置凭证

使用前需要配置火山引擎凭证。请按以下步骤操作:

  1. 前往 火山引擎控制台 → 访问控制 → 密钥管理,获取 Access Key 和 Secret Key
  2. 在项目根目录创建 .env 文件,写入你的凭证:
VOLCENGINE_AK=你的AccessKey
VOLCENGINE_SK=你的SecretKey

如果使用 STS 临时凭证,改为填写 AK + Token:

VOLCENGINE_AK=你的AccessKey
VOLCENGINE_TOKEN=你的SecurityToken

项目已提供 .env.example 模板,也可以直接复制后修改:

cp .env.example .env

.env 文件已被 .gitignore 忽略,不会提交到仓库,请放心填写真实凭证。

安装

npm install

基本用法

npx ts-node scripts/generate.ts "提示词"

脚本会自动提交 → 轮询 → 保存图片到 ./output/

完整用法

npx ts-node scripts/generate.ts "提示词" [选项]

选项

选项说明默认值
--images <url,...>参考图片 URL,逗号分隔,最多 10 张
--width <n>输出宽度自动
--height <n>输出高度自动
--size <n>输出面积自动
--scale <0-1>文本影响程度0.5
--single强制单图输出false
--out <dir>输出目录./output
--no-save不保存,只输出 URLfalse
--interval <ms>轮询间隔3000
--timeout <ms>最大等待时间180000
--debug调试模式false

使用示例

文生图

npx ts-node scripts/generate.ts "水墨山水画"

指定尺寸

npx ts-node scripts/generate.ts "赛博朋克城市" --width 2560 --height 1440

图片编辑

npx ts-node scripts/generate.ts "背景换成星空" --images "https://example.com/photo.jpg"

多图组合

npx ts-node scripts/generate.ts "合成一张合照" --images "https://a.jpg,https://b.jpg"

强制单图 + 高影响

npx ts-node scripts/generate.ts "精细插画风格的城堡" --single --scale 0.8

输出格式

脚本结果通过 stdout 输出一行 JSON,便于解析。请用其中的 files 数组直接作为“生成结果”返回给用户(本地文件路径,可用来展示或附件),不要只贴直链或把本地路径藏在文案里。

成功时示例:

{
  "success": true,
  "taskId": "7392616336519610409",
  "prompt": "水墨山水画",
  "count": 1,
  "files": ["/path/to/output/1.png"],
  "urls": ["https://..."]
}
字段说明
files本地文件路径数组,即生成图片的保存位置,应作为主结果直接返回给用户
urls图片直链(可选),仅作备用
taskId任务 ID
count图片张数

集成建议:解析 stdout 该行 JSON,若 success === true,则把 files 中的路径作为“已生成的图片”直接提供给用户(例如展示图片或作为附件),无需再组织成“直链在这:… 本地文件在:…”的文案。

失败时错误信息在 stderr,JSON 形如:

{
  "success": false,
  "error": { "code": "FAILED", "message": "错误描述" }
}

即梦 4.0 特性

  • 智能比例:可在 prompt 中描述比例,模型自动适配最优宽高
  • 多图输入:最多 10 张参考图,支持图片编辑和多图组合
  • 多图输出:单次最多输出 15 张关联图片
  • 4K 输出:支持从 1K 到 4K 分辨率
  • 中文增强:显著提升中文生成准确率

推荐尺寸

分辨率1:14:33:216:921:9
2K2048×20482304×17282496×16642560×14403024×1296
4K4096×40964694×35204992×33285404×30406198×2656

Comments

Loading comments...