Back to skill

Security audit

Legionclaw Skill Manager

Security checks for vulnerabilities and agentic risk

Overview

This skill manages LegionClaw skill files as advertised, with persistent file changes that are expected for that purpose and no evidence of hidden exfiltration or destructive behavior.

Install only if you intend to let the agent create and modify LegionClaw skills in the skills workspace. Review generated skills before relying on them, and keep host permissions limited to the intended skills directory and bundled helper scripts.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • 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 (13)

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

声明描述的核心功能是“创建、修改和管理”技能文件包,强调交互式操作;而提供的代码只执行静态校验:读取目标目录下的 SKILL.md,解析 YAML frontmatter,检查 name/version/description/disable-model-invocation 字段和正文必需章节,并输出错误信息后退出。它不会创建文件、修改文件、管理文件包,也没有任何交互式流程。虽然校验可能是技能开发流程中的辅助环节,但该代码的主要目的与声明的主要用途明显不一致,因此应判定为描述与行为不匹配。

Content

No source excerpt is available for this finding.

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**检索方式**:遍历 `skills/` 下各子目录,阅读 `SKILL.md` frontmatter 与「何时使用」「目标」章节,判断能力是否匹配。

Ae1

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
**检索方式**:遍历 `skills/` 下各子目录,阅读 `SKILL.md` frontmatter 与「何时使用」「目标」章节,判断能力是否匹配。

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
88% confidence
Finding

The skill instructs the agent to read and write under the skills workspace and to execute local helper scripts, but the manifest does not declare any explicit tool scope such as allowed-tools or permissions. This creates unclear execution boundaries and increases the chance that a host agent grants broader filesystem access than intended, enabling unintended file modification if the skill is triggered.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger phrases include broad, everyday expressions like '创建技能', '修改技能', and 'skill manager', which can match common user requests with little indication that filesystem changes and script execution may follow. Over-broad activation can cause the skill to run in contexts the user did not intend, leading to unreviewed file creation or modification in the workspace.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The guidance says the common phrasings are 'not limited to' the listed examples, making invocation boundaries effectively open-ended. In a skill that can inspect the skills directory, create files, and run local scripts, ambiguous activation materially raises the risk of accidental execution and unintended workspace changes.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The trigger guidance encourages activation on generic requests such as merely needing a core function, which can cause the skill to engage when the user did not explicitly intend to invoke it. In a skill-manager context, overbroad activation increases the chance of unintended file creation or modification and can chain into more sensitive actions if downstream skills or templates include execution or network behavior.

Content

No source excerpt is available for this finding.

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/skill-md-spec.md (reported line 131)May include surrounding context.

  1. 执行以下命令:
bash
curl -sS -X POST "https://example.com/api" \
  -H "Content-Type: application/json" \
  -d '{"userId":"${USER_ID}"}'

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The API-call template instructs authors to send data to external endpoints but does not require any user-facing disclosure, consent, or data-sensitivity check before transmission. This is dangerous because derived skills may exfiltrate identifiers, prompts, or business data over the network without the user's informed approval.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
87% confidence
Finding

Although shown as a template, this example directly normalizes making arbitrary external POST requests without requiring trust validation, consent, or sensitivity review of transmitted fields. Because this document is a skill-writing spec, insecure examples are likely to be copied into real skills, making the omission materially risky in context.

Content

Scanner excerpt · references/skill-md-spec.md (reported line 423)May include surrounding context.

  1. 执行以下命令:
bash
curl -sS -X POST "<API_URL>" \
  -H "Content-Type: application/json" \
  -d '{"field1":"value1","field2":"value2"}'

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The file presents its usage documentation entirely in Chinese, and later generates a SKILL.md template whose headings and instructional text are also fixed in Chinese. This imposes a specific language/locale on users and generated artifacts without offering a language selection or documenting a justified regional constraint.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The template stored in SKILL_TEMPLATE is fully written in Chinese, including section headings and placeholder guidance, so every initialized skill inherits that locale by default. Because the script does not offer any alternative language selection, this is a natural-language locale policy concern.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

This code file contains human-readable usage and status text only in Chinese, including the module docstring and command-line usage guidance. Under the policy, forcing a specific language without user opt-in can be a natural-language policy violation when no locale choice or justification is provided.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.