Back to skill

Security audit

story-long-write:长篇网文写作

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because it reports risky data-deletion behavior and functionality for retaining author preferences that is not disclosed in the stated writing purpose; analysis was partial.

Review the deletion behavior and the storage of author preferences before installing, and consider whether you are comfortable with those records persisting locally. Skillspector's analysis was partial: 72 of 85 components were scanned and 13 were only partially inspected, so the evidence does not establish that unexamined behavior is safe.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Rogue AgentSelf-Modification, Session Persistence
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (8)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

Author preferences are relevant to fiction writing, and file locking, validation, and atomic writes are supporting implementation details. However, maintaining durable author profiles and evidence histories is a distinct capability not disclosed by the description's planning-and-writing functionality. The forget operation only marks a record as superseded; it does not erase the stored assertion or evidence. The supplied code shows local persistence, not network transmission or unrelated command execution.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

Scanner excerpt · SKILL.md (reported line 115)May include surrounding context.

md
所有追踪写入都走 `scripts/tracking_commit.js`:追踪数据统一记在 `追踪/_tracking-state.json` 里,`上下文.md`、角色快照、`伏笔.md`、时间线都由它自动生成,默认不手改(手改会被 `check` 报 `drift_warnings` 提醒)。常规体积上限出软提醒

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/tracking-transaction.md (reported line 25)May include surrounding context.

node {当前 skill 根}/scripts/tracking_commit.js init --project {书项目根} --input {书项目根}/.story/work/init.json node {当前 skill 根}/scripts/tracking_commit.js check --project {书项目根} [--strict] node {当前 skill 根}/scripts/tracking_commit.js draft --project {书项目根} --chapter {N} [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter check --project {书项目根} --chapter {N} [--min-chars {下限} --max-chars {上限}] node {story-long-write skill 根}/scripts/storyctl.js chapter commit --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--ack-all <理由>] [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter accept-current-length --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--force]

text

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/tracking-transaction.md (reported line 26)May include surrounding context.

node {当前 skill 根}/scripts/tracking_commit.js check --project {书项目根} [--strict] node {当前 skill 根}/scripts/tracking_commit.js draft --project {书项目根} --chapter {N} [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter check --project {书项目根} --chapter {N} [--min-chars {下限} --max-chars {上限}] node {story-long-write skill 根}/scripts/storyctl.js chapter commit --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--ack-all <理由>] [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter accept-current-length --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--force]

text

Self-Modification

High
Category
Rogue Agent
Confidence
85% confidence
Finding

Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.

Content

Scanner excerpt · references/tracking-transaction.md (reported line 27)May include surrounding context.

node {当前 skill 根}/scripts/tracking_commit.js draft --project {书项目根} --chapter {N} [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter check --project {书项目根} --chapter {N} [--min-chars {下限} --max-chars {上限}] node {story-long-write skill 根}/scripts/storyctl.js chapter commit --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--ack-all <理由>] [--allow-gap] node {story-long-write skill 根}/scripts/storyctl.js chapter accept-current-length --project {书项目根} --chapter {N} --input {书项目根}/.story/work/第{NNN}章/tracking.json [--ack :<理由> ...] [--force]

text

- `init`:仅在 `_tracking-state.json` 不存在时执行(旧追踪文件自动移入 `追踪/_旧追踪存档/`);执行前读 [tracking-initialization.md](tracking-initialization.md)。

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

Conflict recovery instructs deletion of a handwritten chapter record without warning that unique author edits may be lost.

Medium
Category
Output Handling
Confidence
97% confidence
Finding

The conflict-recovery instruction tells the agent to delete a handwritten chapter record and rerun the transaction without requiring a backup, comparison, or author approval. A conflicting record can contain unique author edits, so treating it as disposable can cause irreversible loss of project continuity information.

Content

No source excerpt is available for this finding.

View regeneration silently deletes character Markdown files absent from the tracking state.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

During initialization or a commit, writeViews() unconditionally deletes every character-directory Markdown file absent from the newly rendered state, without checking whether the tool created it or preserving a backup. Although pruning obsolete generated views is legitimate, manually added character notes can therefore be permanently lost during an otherwise ordinary operation. This is particularly relevant to a long-form writing skill, where project directories may contain valuable author-maintained material; checkProject() warns about extra files, but that warning does not gate these deletions.

Content

No source excerpt is available for this finding.