Back to skill

Security audit

FDE Skill

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report possible external data sharing, an unpinned package execution path, and other risky or unclear behavior; the evidence is incomplete because one referenced path was missing.

Review the external model data-sharing path and the package installation behavior before installing, and consider whether the skill’s testing guidance could touch operational knowledge data. The scan was partial because a referenced path was missing; treat the result as incomplete rather than as assurance that no other risks exist.

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
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
Findings (26)

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Tp2

High
Category
MCP Tool Poisoning
Confidence
85% confidence
Finding

Mixing characters from multiple Unicode scripts in a single identifier is a common technique to create visually ambiguous tool names.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The executable statement introduces an undeclared code-execution capability without validation or isolation. The surrounding comments acknowledge the vulnerability and recommend safer alternatives, but do not prevent execution. Although the file may be intended as security-review documentation, the supplied executable behavior does not implement the declared purpose.

Content

No source excerpt is available for this finding.

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
65% 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 · agents/engineer/SKILL.md (reported line 143)May include surrounding context.

md
- ❌ `npm publish`
- ❌ 修改 `.sofagent/` 目录
- ❌ 硬编码密钥、令牌
- ❌ `rm -rf` / `git reset --hard`

## 📋 范围自检(每次提交前使用)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · harness/entry-gate.md (reported line 20)May include surrounding context.

md
| 检查项 | 命令 | 权限边界 | OpenClaw | WorkBuddy | Web | 结果标注 |
|---|---|---|:---:|:---:|:---:|---|
| 编排 | `command -v sofagent orchestrator` | 不可谎称编排可用 | ✅ | ⚠️ | ❌ | 编排=可用/手动 |
| bash | `command -v bash` | 不可 `rm -rf /`/删非项目文件/改系统配置/`curl\|bash` | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| git | `command -v git` | 不可 `push --force` 到 main/master/改 `.git/config` | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| jq/node | `command -v jq\|node` | — | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| 文件写入 | shell 判定 | 不可覆盖 `.git/`/`~/.ssh/`/宪法文件 | ✅ | ⚠️ | ❌ | ✅/❌/N/A |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% 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 · harness/entry-gate.md (reported line 20)May include surrounding context.

md
| 检查项 | 命令 | 权限边界 | OpenClaw | WorkBuddy | Web | 结果标注 |
|---|---|---|:---:|:---:|:---:|---|
| 编排 | `command -v sofagent orchestrator` | 不可谎称编排可用 | ✅ | ⚠️ | ❌ | 编排=可用/手动 |
| bash | `command -v bash` | 不可 `rm -rf /`/删非项目文件/改系统配置/`curl\|bash` | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| git | `command -v git` | 不可 `push --force` 到 main/master/改 `.git/config` | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| jq/node | `command -v jq\|node` | — | ✅ | ⚠️ | ❌ | ✅/❌/N/A |
| 文件写入 | shell 判定 | 不可覆盖 `.git/`/`~/.ssh/`/宪法文件 | ✅ | ⚠️ | ❌ | ✅/❌/N/A |

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · harness/installer.md (reported line 58)May include surrounding context.

诊断表:

text
{ "step": 2, "status": "failed", "exitCode": 1, "stderrTail": "<最后 5 行>", "advice": "按 stderr 指路修复后重跑本步", "rollback": "rm -rf ~/.sofagent/<本版目录>(安装未完成时);已存在旧版则恢复备份" }

回滚:install.sh 迁移旧目录失败会自行中止(数据安全语义);Agent 侧只需确认 ~/.sofagent/ 状态与安装前一致(第 1 步检测时记的快照)。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · harness/installer.md (reported line 58)May include surrounding context.

诊断表:

text
{ "step": 2, "status": "failed", "exitCode": 1, "stderrTail": "<最后 5 行>", "advice": "按 stderr 指路修复后重跑本步", "rollback": "rm -rf ~/.sofagent/<本版目录>(安装未完成时);已存在旧版则恢复备份" }

回滚:install.sh 迁移旧目录失败会自行中止(数据安全语义);Agent 侧只需确认 ~/.sofagent/ 状态与安装前一致(第 1 步检测时记的快照)。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
90% 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 · harness/installer.md (reported line 58)May include surrounding context.

诊断表:

text
{ "step": 2, "status": "failed", "exitCode": 1, "stderrTail": "<最后 5 行>", "advice": "按 stderr 指路修复后重跑本步", "rollback": "rm -rf ~/.sofagent/<本版目录>(安装未完成时);已存在旧版则恢复备份" }

回滚:install.sh 迁移旧目录失败会自行中止(数据安全语义);Agent 侧只需确认 ~/.sofagent/ 状态与安装前一致(第 1 步检测时记的快照)。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% 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 · harness/installer.md (reported line 58)May include surrounding context.

诊断表:

text
{ "step": 2, "status": "failed", "exitCode": 1, "stderrTail": "<最后 5 行>", "advice": "按 stderr 指路修复后重跑本步", "rollback": "rm -rf ~/.sofagent/<本版目录>(安装未完成时);已存在旧版则恢复备份" }

回滚:install.sh 迁移旧目录失败会自行中止(数据安全语义);Agent 侧只需确认 ~/.sofagent/ 状态与安装前一致(第 1 步检测时记的快照)。

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% 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 · harness/loop-check.md (reported line 39)May include surrounding context.

md
🟢继续 / 🟡调整(子任务间→改下个子任务;60%→全量重编排剩余)/ 🔴暂停等确认。历史优先:有 Loop 记录时加倍检查最容易出问题的节点。

> ⛔ 重大操作前自检(约束回响):执行 rm / git reset / DROP / 外部 API 等不可逆操作前,先自问——当前生效的铁律有哪些?最近一条反思区记录是什么?如果答不上来,说明加载链已失效,暂停操作等用户确认。

> ⛔ **防雪崩**:共享状态(文件系统、git working tree、环境变量)被多个子任务并发修改,会导致 Agent「自己修自己改、越修越乱」。规则:
> 1. 子任务间必须显式标注共享状态变更——在 task/logs 中记录「修改了 X 文件/变量 Y」

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% 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 · harness/task-aware.md (reported line 28)May include surrounding context.

md
| 🟡 | 多步清楚/3-5文件 | 「收到。中途需要确认的问你。」 | ❌ |
| 🔴 | 模糊/多模块/高风险/犹豫 | 「涉及[简述],拆解一下?」→ 确认后澄清 | ✅ |

**硬信号强制 🔴**:文件删除/重构≥5个 | 破坏性操作(rm -rf/git reset/DROP)| 首次用新工具 | 用户提供Spec。硬信号>软判断,即使用户说「直接执行」。⛔ 🔴 后严禁自主扫描文件——仅输出 1.3 响应,等确认。

## 1.4 两轮澄清(仅 🔴 + 用户同意)

The workflow directs node descriptions to an external model provider without a data-sharing warning.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The workflow directs the agent to incorporate local node definitions into model prompts and recommends direct use of the external DeepSeek API without a data-classification or approval gate. In an enterprise deployment, these definitions can contain confidential workflows or customer information, creating an external disclosure path even though model-based decomposition is a legitimate function.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx ts-node'.

Medium
Category
MCP Rug Pull
Confidence
80% confidence
Finding

This is a TypeScript execution command, not an MCP server reference, so the detector's categorization is inaccurate. Nevertheless, npx ts-node can fetch and execute an unpinned registry package when no local installation is available, introducing a conditional supply-chain execution risk during an otherwise routine audit.

Content

No source excerpt is available for this finding.

Mandatory Chinese response templates impose an output language without user opt-in.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The response table prescribes Chinese replies, and line 4 requires users to receive only the corresponding final response. No instruction permits translating these replies to the user's language, offers a language choice, or justifies a Chinese-only locale constraint.

Content

No source excerpt is available for this finding.

The activation condition includes generic “检查” (check) and “巡检” (inspection) tasks without limiting them to code-change or agent-compliance audits.

Medium
Category
Trigger Abuse
Confidence
88% confidence
Finding

These terms can occur in routine requests unrelated to the code-change auditing role described on line 10. The activation instruction does not explicitly require that narrower context, so it could load the audit workflow for unrelated checking tasks.

Content

No source excerpt is available for this finding.

Skill Enumeration

Medium
Category
Agent Snooping
Confidence
80% confidence
Finding

Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.

Content

Scanner excerpt · skills/04-deliver.md (reported line 20)May include surrounding context.

md
| 层 | 是什么 | 模板 |
|---|---|---|
| 📄 文档层 | 节点详细说明(人读 + 编排模块读) | `FDE/templates/nodes/node-template.md` |
| 🧠 Skill 层 | Agent 行为指令(节点的大脑) | `FDE/templates/skills/skill-template/SKILL.md` |
| 🔴 运行层 | 真实环境配置 | 写进部署清单 |

2. **黄金顺序(铁律)**:先运行层(跑通真实任务)→ Skill 层(抽象为模板)→ 文档层(补人读文档)。禁止直接写 Skill

Mandatory audit-result templates force Chinese-language output without a user language choice.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The skill requires audit results to use the supplied Chinese-language templates and explicitly prohibits rewording them. This constrains user-facing output to Chinese without offering language selection or documenting a justification for the language restriction.

Content

No source excerpt is available for this finding.

Adversarial testing instructs knowledge-base writes and metadata changes without warning about their effect on operational data.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The adversarial-testing guidance directs writes of injection-bearing pages and changes to knowledge trust and sensitivity metadata without requiring isolated fixtures or restoration. In this deployed-enterprise context, following those directions on operational data could contaminate retrieval results or cause legitimate knowledge to be excluded, even though the testing purpose is defensive.

Content

No source excerpt is available for this finding.

Ae4

Medium
Category
analysis-evasion
Confidence
80% confidence
Finding

Suspicious Unicode normalization or mixed-script content

Content

No source excerpt is available for this finding.