Back to skill

Security audit

story-cover:小说封面生成

Security checks for vulnerabilities and agentic risk

Overview

The skill received a benign verdict because the reported image-generation workflow appears aligned with its purpose, though the scan notes privacy and language concerns and has one incomplete reference check.

Before installing, consider whether you are comfortable sending book details and any reference images to the configured image-generation provider, and check which endpoint is used. The scan is partial because a referenced local path was not found, so the evidence is incomplete.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

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

md
i=1; while [ -f "$BOOK_DIR/封面/封面_v${i}.png" ]; do i=$((i+1)); done
OUT="$BOOK_DIR/封面/封面_v${i}.png"
RESP=$(mktemp); REF_TMP=""
trap '[ -n "$REF_TMP" ] && rm -f "$REF_TMP"; rm -f "$RESP"' EXIT

case "$REF_IMAGE" in
  http://*|https//*)

Chaining Abuse

High
Category
Tool Misuse
Confidence
75% confidence
Finding

Tool calls are chained to bypass individual safety checks or escalate capabilities beyond what any single tool call would allow.

Content

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

md
i=1; while [ -f "$BOOK_DIR/封面/封面_v${i}.png" ]; do i=$((i+1)); done
OUT="$BOOK_DIR/封面/封面_v${i}.png"
RESP=$(mktemp); REF_TMP=""
trap '[ -n "$REF_TMP" ] && rm -f "$REF_TMP"; rm -f "$RESP"' EXIT

case "$REF_IMAGE" in
  http://*|https//*)

The skill requires English design instructions without offering a language choice.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The instruction explicitly requires the design portion of every prompt to be written in English, including prompts delivered directly in prompt-only mode. It provides neither user opt-in nor a documented justification for this language constraint.

Content

No source excerpt is available for this finding.

Image generation sends book-derived prompts and reference images to a generation service without a privacy warning.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The workflow instructs the agent to submit prompts assembled from local book information and to load reference images into the generation tool or API. Although it explains generation routes and API billing precautions, it does not warn that unpublished book details or reference images will be shared with the generation service.

Content

No source excerpt is available for this finding.

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/api-fallback.md (reported line 10)May include surrounding context.

md
| 变量 | 必填 | 默认 | 说明 |
|:-----|:----:|:-----|:-----|
| `GPT_IMAGE_API_KEY` | 是 | — | OpenAI 或兼容代理的 API Key |
| `GPT_IMAGE_BASE_URL` | | `https://api.openai.com/v1` | 用兼容代理时改这个 |
| `GPT_IMAGE_MODEL` | | `gpt-image-2` | 只在测试新模型时覆盖 |
| `GPT_IMAGE_SIZE` | | `1024x1536` | 官方接口竖版用 `1024x1536`(支持 `1024x1024`/`1024x1536`/`1536x1024`/`auto`,勿传非标 `768x1024` 免报 400);3:4 上传图由入口 Step 5 裁切导出 |
| `BOOK_DIR` | 是 | — | `封面/` 的上一层,按入口「收集信息」定的保存位置 |

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/api-fallback.md (reported line 23)May include surrounding context.

md
set -euo pipefail
: "${GPT_IMAGE_API_KEY:?请设置 export GPT_IMAGE_API_KEY=你的key}"
: "${PROMPT:?请先 export PROMPT=构建提示词步骤拼好的完整提示词}"
BASE_URL="${GPT_IMAGE_BASE_URL:-https://api.openai.com/v1}"
MODEL="${GPT_IMAGE_MODEL:-gpt-image-2}"
SIZE="${GPT_IMAGE_SIZE:-1024x1536}"
BOOK_DIR="${BOOK_DIR:?请先 export BOOK_DIR=书目录或 ./covers/<书名>}"

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/api-fallback.md (reported line 75)May include surrounding context.

bash
set -euo pipefail
: "${GPT_IMAGE_API_KEY:?缺 GPT_IMAGE_API_KEY}" "${PROMPT:?缺 PROMPT}" "${BOOK_DIR:?缺 BOOK_DIR}" "${REF_IMAGE:?缺 REF_IMAGE}"
BASE_URL="${GPT_IMAGE_BASE_URL:-https://api.openai.com/v1}"
MODEL="${GPT_IMAGE_MODEL:-gpt-image-2}"
SIZE="${GPT_IMAGE_SIZE:-1024x1536}"

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 · references/api-fallback.md (reported line 44)May include surrounding context.

md
--arg s "$SIZE" \
  '{model:$m, prompt:$p, size:$s}')

curl -fsS --max-time 180 --retry 2 --retry-delay 5 \
  "$BASE_URL/images/generations" \
  -H "Authorization: Bearer $GPT_IMAGE_API_KEY" \
  -H "Content-Type: application/json" \

The API workflow uploads prompts and reference images without a user-facing privacy warning.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The image-editing workflow sends the complete prompt and reference-image contents to the configured API provider, which can be OpenAI or a compatible third-party proxy. Although the API mechanics are documented, the file does not warn users that potentially private text and images will leave their system.

Content

No source excerpt is available for this finding.

L003 requires design instructions in English without user opt-in.

Low
Category
Output Handling
Confidence
98% confidence
Finding

“设计指令用英文” explicitly requires design instructions to be written in English. Although book titles and pen names retain their original language, the file offers no language choice or documented justification for requiring English for the instructions.

Content

No source excerpt is available for this finding.