Back to skill

Security audit

story-cover:小说封面生成

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a benign skill verdict: the flagged behavior relates to image generation and its API fallback, though one reference was missing during a partial scan.

The verdict is benign, not risk-free. Before installing or using the skill, consider whether prompts, book details, or reference images could be sensitive, and review the selected image-generation provider. The scan was partial because a local path-like reference in SKILL.md could not be resolved, so 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 90)May include surrounding context.

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

# URL 先下载到临时文件,本地路径直接用。用裸 mktemp 以保证 macOS/Linux 行为一致。
case "$REF_IMAGE" in

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

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

# URL 先下载到临时文件,本地路径直接用。用裸 mktemp 以保证 macOS/Linux 行为一致。
case "$REF_IMAGE" in

Image-generation steps transmit book details and reference images without a privacy disclosure.

Medium
Category
Output Handling
Confidence
91% confidence
Finding

The workflow instructs the agent to submit prompts containing book details and to load reference images into image-generation tools, including an API fallback. Although it discloses the generation routes and potential API charges, it does not warn that unpublished book information or local reference images will be sent to the selected generation provider.

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 76)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
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 workflows transmit prompts and reference images to an external provider without a privacy warning.

Medium
Category
Output Handling
Confidence
87% confidence
Finding

The workflow sends the complete prompt and reference image to OpenAI or the configured compatible proxy; the text-to-image workflow likewise sends the complete prompt. Although the file explains the upload mechanics, it does not warn users that potentially sensitive book content or private images will leave their system and be processed by that provider.

Content

No source excerpt is available for this finding.

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

Low
Category
Output Handling
Confidence
98% confidence
Finding

The instruction explicitly requires the generated design instructions to be in English, including prompts delivered directly in prompt-only mode. It neither offers user opt-in nor documents a technical reason that requires English.

Content

No source excerpt is available for this finding.

L002 requires design instructions to be written in English without user opt-in.

Low
Category
Output Handling
Confidence
99% confidence
Finding

The instruction “设计指令用英文” explicitly requires English for generated design instructions. Although book titles and pen names retain their original language, the English-only requirement for design instructions offers no user choice or documented technical justification.

Content

No source excerpt is available for this finding.