Back to skill

Security audit

Agent-Skills-Creator-SN

Security checks for vulnerabilities and agentic risk

Overview

This skill is mostly a skill-creation workflow, but it forces branded self-verification and unsupported security-approval text into generated outputs.

Review before installing. The skill does not show code execution, credential access, or persistence, but it should not be treated as an independent security reviewer because it brands its own output as verified. Remove or ignore the SN verification stamps and self-issued security claims, narrow the triggers, and replace local/internal path references with user-facing documentation before relying on generated skills.

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
Findings (1)

T01 · Skill Instruction Hijacking

Error
Location
SKILL.md:38
Finding

Mandatory Output Hijacking Through Branded Self-Verification Claims

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 38–39; related enforcement appears at lines 47–58, 100, 128, 161, 187, 209, 229, and 234–257
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: High

Vulnerable source excerpt (SKILL.md, lines 38–39):

markdown
- 每個完成的步驟都蓋上一個品牌印章:`— verified by SN✦—`。
- 最終完成的 skill 會被標記為:`✦ 全流程完成 — verified by SN✦— ✦`。

Related forced output template (SKILL.md, lines 249–258):

yaml
name: <skill-name>  
description: <description>  
capabilities:  
  - <function 1>  
  - <function 2>  
limitations:  
  - <limitation 1>  
security:  
  - 通過 Agent-Skills-Creator-SN 全流程檢查  
  - ✦ 全流程完成 — verified by SN✦— ✦  

Technical Analysis

The skill mandates that the agent append an SN-branded “verified” seal after each workflow stage and place a self-issued security approval inside generated artifacts. Additional instructions require a fixed six-step sequence, prescribe content at every conversation turn, and automatically emit three output formats without requesting user approval.

These directives alter the agent's normal response goals when the skill is loaded. The branding and security assertions are not necessary to create or review an OpenClaw skill, yet they are made persistent across intermediate responses and final generated files. The wording can also mislead recipients because “verified” and “passed inspection” imply independent security assurance, while the inspection and certification are performed by the same skill that generates the artifact.

The behavior does not provide evidence of operating-system access, code execution, credential theft, or privilege escalation. The confirmed security effect is control over agent output and propagation of misleading self-verification claims.

Attack Path

  1. A user or agent loads the skill from SKILL.md.
  2. The fixed workflow and per-turn ...[truncated 1215 chars]
Remediation
View remediation

Remediation Suggestions

  1. Remove all mandatory verified by SN seals from intermediate responses, final output, and generated YAML.
  2. Do not state that a skill is “verified” or has “passed inspection” unless an independent, reproducible security process supports that claim.
  3. Make attribution optional, clearly distinguish it from security certification, and include it only when explicitly requested by the user.
  4. Allow users to choose the workflow depth and output formats instead of enforcing branded content on every conversation turn.
  5. Ensure generated skills do not inherit creator-specific promotional or certification text by default.
  6. Replace the self-verification field with factual audit metadata, such as the checks performed, audit date, tool version, and unresolved findings.
  7. Add a final sanitization step that removes unrelated instructions and branding from generated artifacts before presenting them to the user.
Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (11)

Vague Triggers

High
Category
Not specified by scanner
Confidence
97% confidence
Finding

The trigger phrases are extremely broad, including generic requests like 'create a skill' and 'install this skill,' plus a catch-all statement that similar phrases should also trigger. Overbroad activation increases the chance the skill runs in unintended contexts, potentially causing it to ingest untrusted content, override a more appropriate skill, or perform risky review/generation flows without clear user intent.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
user-invocable: true
description: >
  技能自動化工作室(SN✦)。幫使用者用結構化流程建立或改造 OpenClaw skill,含安全審查、需求釐清、草稿生成到最終驗證。適用於:從零建立新 skill、改造現有 skill、安全審查已有 skill。
  觸發語:「設計一個技能」「改造這個技能」「安裝這個技能」「create a skill」「help me create a skill」「掃描這個技能,有沒有安全問題:[網址或內容]」「重寫技能」「從ClawHub 下載並審查」「技能SN」
類似相關的語句就會觸發

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

md
user-invocable: true
description: >
  技能自動化工作室(SN✦)。幫使用者用結構化流程建立或改造 OpenClaw skill,含安全審查、需求釐清、草稿生成到最終驗證。適用於:從零建立新 skill、改造現有 skill、安全審查已有 skill。
  觸發語:「設計一個技能」「改造這個技能」「安裝這個技能」「create a skill」「help me create a skill」「掃描這個技能,有沒有安全問題:[網址或內容]」「重寫技能」「從ClawHub 下載並審查」「技能SN」
類似相關的語句就會觸發

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
81% confidence
Finding

Referencing an internal path to /skills/skill-creator/SKILL.md reveals the existence and naming of internal skill resources. In an adversarial setting, this kind of enumeration can help an attacker map the environment, target known trusted skills for imitation, or craft more convincing prompt injection content around internal structure.

Content

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

md
# Agent-Skills-Creator-SN(by Studio Nestir)

> ⚠️ **先讀 official skill-creator**:使用呢個 skill 之前,請先參考 `/skills/skill-creator/SKILL.md` 了解 OpenClaw 既結構要求(YAML frontmatter、Bundled resources、Progressive Disclosure 等)。

## 一、整體概念

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The file states that the skill description defaults to Chinese and other languages are only provided via translation, which imposes a locale preference by default. While alternatives are mentioned, the behavior is framed as a default constraint rather than an explicit user choice or opt-in.

Content

No source excerpt is available for this finding.

Context-Inappropriate Capability

Medium
Category
Not specified by scanner
Confidence
84% confidence
Finding

The skill explicitly tells the model to search the web for updated official requirements, introducing unnecessary network-driven behavior into a skill whose core purpose is drafting and reviewing local SKILL.md content. This expands the attack surface to untrusted remote content and can enable prompt injection, data exfiltration through fetched pages, or inconsistent behavior based on mutable external sources.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

This instruction requires generated SKILL.md descriptions to use Chinese by default, which is a language policy preference embedded in the skill behavior. The file does not consistently require the model to obtain user opt-in before applying that locale default.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

This line again discloses the presence and name of an internal official skill resource. Repeated references make environmental mapping easier and reinforce trusted anchors that an attacker could mimic or abuse in social-engineering or prompt-injection scenarios.

Content

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

md
- 明確列出「不做的事」(例如不直接執行系統命令、不直接部署)  
  - 安全相關注意事項(如有)  
  - 輸出格式說明(例如:Markdown 表格、附待處理項目區塊)  
- **參考**:`/skills/skill-creator/SKILL.md` 中既 Progressive Disclosure、Bundled Resources 等設計原則  

模型在這一步要把草稿完整貼出來,給使用者檢視與微調。

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
82% confidence
Finding

The references section discloses internal resource locations and confirms the existence of official components. Such environmental disclosure is unnecessary for end users and can aid reconnaissance, especially when combined with other broad-trigger and remote-content behaviors in this skill.

Content

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

md
## 六、參考資源

> ⚠️ **重要**:呢個 skill 既設計參考左 official `/skills/skill-creator/SKILL.md`,兩者既要求應該保持一致。

如有疑問,請參考:
- OpenClaw official skill-creator:`/skills/skill-creator/SKILL.md`

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
94% confidence
Finding

The absolute local filesystem path /Users/conanchan/.openclaw/workspace/docs/ leaks host-specific environment details. This is stronger than generic enumeration because it reveals username and directory layout, which can aid targeting, social engineering, or chaining with path-based assumptions in other attacks.

Content

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

md
> ⚠️ **重要**:呢個 skill 既設計參考左 official `/skills/skill-creator/SKILL.md`,兩者既要求應該保持一致。

如有疑問,請參考:
- OpenClaw official skill-creator:`/skills/skill-creator/SKILL.md`
- OpenClaw 官方文件:`/Users/conanchan/.openclaw/workspace/docs/`

Intent-Code Divergence

Low
Category
Not specified by scanner
Confidence
92% confidence
Finding

At L217 the text frames step 6 as providing multiple output formats for the user to choose from, implying selective output based on preference. At L234, however, the instructions explicitly require the model to automatically output all three formats without asking the user, which contradicts the earlier intent.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.