Back to skill

Security audit

novel-generator 是一个中文爽文小说生成技能。用户只需提供一句话方向(如"写个都市重生爽文"),AI 代理即可自动完善提示词、规划大纲、逐章创作并输出为独立 Markdown 文件。 核心特性: 智能提示词生成:从一句话方向自动补全世界观、人设、冲突、爽点设计 分章节创作:每章 2000-3000 字,层层递进,章章有爽点 记忆系统:通过 .learnings/ 记录角色、地点、情节、世界观,确保故事前后一致 情节图解:关键战斗、人物关系、势力分布自动生成 Mermaid 图 失败记录:穿帮、矛盾、崩塌等问题自动记录,持续优化 多题材支持:都市、修仙、玄幻、重生、系统流、末世、科幻、游戏 兼容 Claude Code、Cursor、OpenAI Codex、GitHub Copilot 等所有支持 Agent Skills 的工具。

Security checks for vulnerabilities and agentic risk

Overview

This is a coherent Chinese novel-writing skill that writes story files and continuity notes locally, with a scoped cleanup option users should handle carefully.

Install this if you want a Chinese long-form novel workflow that stores generated chapters and continuity notes in local markdown files. Avoid using --clean unless you are comfortable deleting prior generated output and resetting the story memory files.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (12)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · scripts/init-novel.sh (reported line 78)May include surrounding context.

sh
if [ "$CLEAN" = true ]; then
    log_step "清除旧的输出文件..."
    rm -rf "$OUTPUT_DIR"/*.md 2>/dev/null || true

    log_step "重置记忆文件..."

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
80% confidence
Finding

The natural-language description presents the skill as a Chinese-language novel generator and all usage examples and instructions are in Chinese. There is no indication that users may choose another language or that the Chinese-only behavior is an intentional, documented locale constraint.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The README states that the skill will output chapter files and persist memory and error logs, but it does not clearly warn users that local files will be created and retained over time. In an agent-skill context, silent persistence can expose sensitive prompts, story ideas, personal data, or workspace contents to unintended retention and later reuse, especially if the agent runs in a shared repository or syncs files to version control.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The activation description is very broad and matches generic creative-writing requests, which increases the chance the skill will auto-trigger in situations where the user did not specifically want file-writing, memory management, or multi-step workflow behavior. In this skill, that matters because activation can lead to reading and writing project files such as .learnings/ and output/, expanding the skill’s operational scope beyond simple text generation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The metadata fixes the skill language to zh-CN, and the document consistently instructs Chinese-language operation without indicating that users may choose another language. This can violate language-choice policy when the skill is used in broader contexts not explicitly limited to a China-specific compliance or regional workflow.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The skill instructs use of an initialization script that clears prior .learnings/ records, but it does not require an explicit warning, backup, or user confirmation before destructive action. This creates a real risk of accidental data loss, especially because .learnings/ is the persistence mechanism for story continuity and may contain valuable prior work.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

This markdown template is entirely written in Chinese and defines section headings and field values in Chinese, which implicitly constrains downstream skill use to a specific language. The file does not offer an opt-in, alternative locale, or justification that the skill is intended only for a Chinese-language context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The file title and instructions are entirely in Chinese and direct the model to auto-complete prompts in that language. This imposes a specific language/locale by default, and the template does not provide any opt-in or alternative language selection for users.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The --clean path performs destructive actions by deleting prior output markdown files and overwriting multiple memory files with no confirmation, backup, or dry-run safeguard. In an agent-integrated workflow, accidental invocation or misuse can cause irreversible loss of user-authored content and project state.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
98% confidence
Finding

SQP-3 applies to all file types and includes language or locale policy violations. This markdown file presents all instructions and content exclusively in Chinese, and nowhere indicates that the user may choose another language or that the skill is intentionally limited to a Chinese-language context.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
78% confidence
Finding

SQP-3 applies to all file types and covers natural-language policy violations such as forcing a specific language without user opt-in. This document presents all guidance in Chinese with no indication that users may choose another language or locale, which can amount to an implicit language constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
91% confidence
Finding

All comments, usage text, logs, and prompts are presented only in Chinese, which imposes a specific language on users without any opt-in or documented locale limitation. Under the language/locale policy, a skill should either offer a language choice or clearly justify being region- or audience-specific.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.