Back to skill

Security audit

12agent Novel

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Chinese novel-writing workflow, but it should be reviewed because it asks to read local OpenClaw configuration files that may contain credentials and can start background child-agent work.

Review this skill before installing if your OpenClaw configuration files contain API keys or provider secrets. Prefer a host that exposes only model metadata, or manually enter model IDs instead of letting the skill read raw config files. Also be aware that the workflow can spawn background sessions for style research and later writing support using your project details.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Warning
Location
references/lifecycle-phase0.md:85
Finding

Overbroad Reading of Credential-Bearing Host Configuration

Content
View full analysis

Vulnerability Details

File Location: references/lifecycle-phase0.md:85-96, 138-146
Vulnerability Type: Sensitive configuration exposure through overbroad file access
Risk Level: Medium

Vulnerable Code

text
Coordinator reads openclaw.json, parses all available AI models
(provider/model-id format), and displays the model list to the user.

File paths are attempted in this order:

1. ~/.openclaw/openclaw.json
2. ./openclaw.json
3. /etc/openclaw/openclaw.json
javascript
// Coordinator pseudocode
const config = JSON.parse(read("~/.openclaw/openclaw.json"));
const availableModels = [];

for (const provider of config.providers) {
  for (const model of provider.models) {
    availableModels.push({
      id: `${provider.name}/${model.id}`,
      displayName: model.displayName,
      contextWindow: model.contextWindow,
      capabilities: model.capabilities
    });
  }
}

displayModelList(availableModels);

Technical Analysis

The workflow instructs the Coordinator to read an entire user-level, workspace-level, or system-level OpenClaw configuration file solely to enumerate model metadata. Such configuration files may also contain API keys, access tokens, passwords, provider secrets, endpoint credentials, or other sensitive values.

Although SKILL.md:50 states that credential fields must be filtered before configuration content is embedded in child-agent prompts, the Phase 0 procedure does not define or implement an allowlisted reader, trusted metadata API, or redaction step before the full configuration object is exposed to the Coordinator. Filtering only before child-agent dispatch does not prevent secrets from entering the Coordinator's context, tool traces, logs, telemetry, or error output.

This is a least-data-access failure rather than evidence of intentional credential theft. No audited code was found that deliberately transmits these values to an external d ...[truncated 1272 chars]

Remediation
View remediation

Remediation Suggestions

  1. Replace direct reads of openclaw.json with a trusted host API that returns only non-sensitive model metadata.
  2. If direct local parsing is unavoidable, perform it outside the model context and expose only an explicit allowlist:
    • provider.name
    • model.id
    • model.displayName
    • model.contextWindow
    • model.capabilities
  3. Never return the raw configuration object through tool output or include it in Coordinator or child-agent prompts.
  4. Recursively redact keys matching credential patterns such as apiKey, api_key, token, secret, password, credential, authorization, and privateKey.
  5. Ensure parse failures and debug logs report only the file path and a generic error, not file contents.
  6. Prefer manual model selection when the host cannot provide a safe metadata-only interface.
  7. Add tests using configuration fixtures containing nested credentials to verify that no sensitive values reach prompts, logs, traces, or displayed model lists.
  8. Limit configuration search locations to those explicitly authorized by the user or host environment rather than automatically probing system-level configuration.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (59)

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- 写正文前必须按轨道读取对应 Phase 文档与上下文策略:`references/lifecycle-phase2-normal.md` / `references/lifecycle-phase2-key-chapter.md` / `references/lifecycle-phase2-auto-advanc

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
s/lifecycle-phase2-normal.md` / `references/lifecycle-phase2-key-chapter.md` / `references/lifecycle-phase2-auto-advance.md` / `references/context-feeding-strat

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- **init 脚本安全**:`scripts/init-project.sh` 仅执行本地目录创建与模板文件复制/替换,不包含任何网络请求或破坏性命令,可安全执行

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
- **init 脚本安全**:`scripts/init-project.sh` 仅执行本地目录创建与模板文件复制/替换,不包含任何网络请求或破坏性命令,可安全执行

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The description states this is a '中文长篇小说' creation system, which constrains the skill to Chinese output. While the domain is novel writing, the file does not explicitly offer the user a language choice or frame the language restriction as an opt-in preference, which matches the locale/language policy concern for natural-language requirements.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The file's title, instructions, and example content are entirely in Chinese, which implies a fixed language requirement. There is no indication that users may choose another language or that this locale restriction is justified as region-specific, which matches the policy concern for forced language without opt-in.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The entire template, including headings and field labels, is written in Chinese with no indication that language selection is optional. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the locale restriction is clearly documented and justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This manifest contains multiple natural-language display names in Chinese for registered agents, such as "世界观构建", "角色设计", and similar entries. Because the file provides no indication of user opt-in, language selection, or a documented region-specific constraint, it may violate a language/locale policy requiring user choice rather than forcing a specific language.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The document is written entirely in Chinese and presents required configuration instructions as mandatory formatting guidance, but it does not indicate that language use is optional or limited to a justified Chinese-only context. Under the policy rule for natural-language violations, forcing a specific language without user opt-in is a reportable issue.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The title and all instructional content are written exclusively in Chinese, and the document presents its style requirements as mandatory defaults rather than offering a language or locale choice. Under the stated policy, forcing a specific language without user opt-in is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The entire template, including headings and instructions, is written in Chinese and provides no indication that other languages are supported. Under the language/locale policy, forcing a specific language without user opt-in can be a natural-language policy violation unless the constraint is explicitly justified.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The optimization launches a background research task using project title, genre, tone, and other project setup data, but the user-facing description only emphasizes speed and progress rather than clearly disclosing that project content will be processed in the background. In a creative-writing skill, early project details may include sensitive or proprietary ideas, so silent background processing creates a transparency and consent problem even if the mechanism is meant as a UX improvement.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The document is entirely written in Chinese and presents itself as the canonical character reference without offering any language or locale choice. Under the stated policy, forcing a specific language without user opt-in or a documented region-specific justification is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

This manifest contains user-facing agent titles entirely in Chinese, such as the project title and multiple agent names, but does not indicate that the skill is China-specific or that users can opt into this locale. That can violate language/locale policy because it effectively forces one language without documented user choice or justification.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · assets/project-template/meta/metadata.json (reported line 17)May include surrounding context.

json
"totalRequested": 0,
      "currentChapter": 0,
      "intervalSeconds": 6,
      "autoConfirm": false,
      "status": "idle"
    }
  },

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · projects/que-ye-ji-hun-ji/meta/metadata.json (reported line 17)May include surrounding context.

json
"totalRequested": 0,
      "currentChapter": 0,
      "intervalSeconds": 6,
      "autoConfirm": false,
      "status": "idle"
    }
  },

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · references/lifecycle-phase0.md (reported line 274)May include surrounding context.

md
"totalRequested": 0,
      "currentChapter": 0,
      "intervalSeconds": 6,
      "autoConfirm": false,
      "status": "idle"
    }
  },

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
85% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

Scanner excerpt · references/lifecycle-phase2-auto-advance.md (reported line 80)May include surrounding context.

md
"totalRequested": 0,
      "currentChapter": 0,
      "intervalSeconds": 6,
      "autoConfirm": false,
      "status": "idle"
    }
  },

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

The entire skill file is written in Chinese and presents the project metadata and content constraints only in that language, with no indication that users can choose another language or that the skill is intentionally limited to a Chinese-speaking context. Under the policy, a fixed language/locale without opt-in or clear justification is a natural-language policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The entire skill specification is written as a Chinese-only role/instruction set, with no indication that users may choose another language or that the skill is intentionally restricted to a Chinese-language context. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The entire skill specification is written as mandatory Chinese-language role instructions and does not indicate that the user may choose another language or locale. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale restriction is explicitly justified.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
83% confidence
Finding

The title and all operative instructions are written as a Chinese-only role definition, and the skill does not state that language choice is optional or user-configurable. Under the policy, forcing a specific language or locale without opt-in is a natural-language policy violation unless clearly justified as region-specific.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill file is written as a Chinese-only role and output specification, and it does not indicate that the user may choose another language or locale. Under the policy criteria, forcing a specific language without opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The entire skill definition, output template, and operational instructions are written to require Chinese-language interaction, and there is no indication that users may opt into another language. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation unless the locale constraint is clearly justified, which is not stated here.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The skill content is written entirely in Chinese and mandates output sections and behavior in Chinese-oriented phrasing, but it does not state that language selection is optional or limited to a specific Chinese-only deployment context. Under the policy, forcing a specific language without user opt-in is a natural-language policy violation.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.