Back to skill

Security audit

Multi-Agent Collaboration Claude Grade

Security checks for vulnerabilities and agentic risk

Overview

The skill is not clearly malicious, but it stores user text as persistent memory that can affect later runs and presents limited command checks as a safety pipeline, so it needs review before installation.

Install only if you want a local, memory-enabled collaboration framework. Treat the memory directory as sensitive, review or delete stored memories regularly, and do not rely on the safety audit as permission to run commands without separate human review.

Vulnerability Patterns
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • 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
  • 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 (2)

T02 · Agent Memory Poisoning

Error
Location
scripts/core/claude-memory.ts:67
Finding

Persistent Untrusted Memory Can Poison Future Agent Context

Content
View full analysis
= [ { re: /我叫|我是|称呼我|你可以叫我/, kind: 'identity', summary: 'User identity preference', importance: 0.95, tags: ['identity'] }, { re: /不要|别再|应该|必须|纠正/, kind: 'correction', summary: 'User correction or hard preference', importance: 1.0, tags: ['correction'] }, { re: /正在做|现在要|接下来做|当前任务/, kind: 'task', summary: 'Current task state', importance: 0.9, tags: ['task'] }, { re: /项目|仓库|代码库|目录|工作目录/, kind: 'project', summary: 'Project-level fact', importance: 0.85, tags: ['project'] }, { re: /参考|资料|文档|源码/, kind: 'reference', summary: 'Reference location', importance: 0.8, tags: ['reference'] } ]; for (const rule of rules) { if (!rule.re.test(turnText)) continue; created.push(this.addMemory(rule.kind, rule.summary, turnText, { importance: rule.importance, tags: rule.tags })); } return created; } formatRetrievedContext(query: string, topK: number = 5): string { const matches = this.retrieve(query, topK); if (matches.length === 0) return 'No relevant memory found.'; return matches.map((m, i) => `${i + 1}. [${m.entry.kind}] ${m.entry.summary}: ${m.entry.content}`).join('\n'); } ``` The resulting content is placed directly into coordinator output: ```ts buildRun(request: string) { return { request, retrievedMemory: this.memory.formatRetrievedContext(request, 5), tasks: [ { role: 'coordinator', objective: 'Split request into a task graph.', evidenceRequired: true }, { role: 'explorer', objective: 'Return evid ...[truncated 3494 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/systems/safety.ts:3
Finding

Regex-Based Command Safety Gate Can Be Bypassed by Equivalent Dangerous Syntax

Content
View full analysis
!r.passed && ['zero-width-unicode', 'rm-recursive', 'del-recursive', 'curl-pipe-shell', 'wget-pipe-shell', 'git-reset-hard', 'git-clean-force'].includes(r.guard)); const review = !deny && results.some((r) => !r.passed ...[truncated 2774 chars]
Remediation
View remediation
Vulnerability Patterns
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (137)

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
96% confidence
Finding

The manifest describes a skill for upgrading a multi-agent framework with engineering controls such as layered memory retrieval, Top-5 prefetch, six-role coordination, verification acceptance, command safety gates, and cache/cost governance. This file instead defines agents for collecting information from Weibo/Zhihu/Douyin/Bilibili/36kr/Huxiu/WeChat and generating content/trend outputs, which is a different product purpose rather than an implementation detail of the stated skill.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
Not specified by scanner
Confidence
94% confidence
Finding

The coordinator is presented as the core orchestrator, so its stated workflow is strong evidence of the skill's actual purpose. Here it only sequences modules 1-4 and handles user choices, with no mention of verification-agent acceptance, command pre-safety checks, layered memory/prefetch, or cost observability that the manifest says are central.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

声明描述的是一个较完整、工程化的多智能体增强系统,重点在记忆管理、预取、角色化协调、验证、安全和成本控制。实际代码仅为教学/演示性质的多智能体协作样例:4个基础 agent 加 1 个动态加载 agent,通过 canHandle 和 decide 做非常浅层的任务分派与协作展示,所有行为都停留在打印步骤和返回文本层面。没有看到任何记忆存储/检索层、Top-5 预取逻辑、六角色协调器、验证代理、命令安全检查、缓存命中/失效、token/成本统计等实现。因此代码的实际主要用途与声明的主要用途存在明显且实质性的偏差。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

声明描述的核心是“Claude Grade 多智能体协作技能”的工程化升级,重点在多Agent编排、验证、安全和成本治理。但提供的代码片段只是 demo.js,主要调用一个现成系统的模块做功能展示:记忆分层、信号分类、工作流知识提炼、目标追踪、查询和健康检查。虽然其中“分层记忆”与声明有部分重合,但其余关键能力——尤其是 Coordinator 六角色协同、Verification Agent、命令安全管线、Top-5 预取、缓存/成本治理——在代码中完全没有体现。相反,代码展示了较多声明未强调的“个人目标追踪/AI镜像自我分析”功能。因此,该代码片段的实际行为与声明的主要用途存在实质性不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The code chunk only provides one subsystem: a filesystem-backed memory store with basic heuristic extraction from user text and top-K retrieval/scoring. While this partially aligns with the 'layered memory retrieval' / 'Top-5 prefetch' theme at a very superficial level, it does not implement the main declared capabilities of the skill: multi-agent collaboration, coordinator role orchestration, verification agent behavior, command safety controls, or cache/cost management. The declared description presents a broad multi-agent engineering system, but the actual code is a narrow memory utility module. That is a material description-to-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
82% confidence
Finding

代码片段与描述存在部分重合:描述中的“分层记忆检索”与该 UnifiedMemorySystem 的五层记忆、查询、归档、同步等接口是吻合的。但该代码片段仅展示记忆子系统的声明文件,主要用途是管理 L0-L4 多层记忆,并附带模式分析/洞察生成接口。相比之下,声明的技能用途明显更广,强调多智能体协作框架升级、六角色协调、验证验收、安全执行管线、缓存与成本治理等多项关键能力,而这些在当前代码中都没有体现。由于描述将这些能力作为核心卖点,当前代码片段的实际行为只覆盖其中一部分,因此应判定为描述与代码行为不完全一致,属于能力范围明显缩窄的 mismatch。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

该代码块与声明中的“分层记忆检索”部分是吻合的,且还实现了五层记忆架构、归档、查询、同步和健康检查等支持能力。但声明强调的是一个更广泛的多智能体协作升级系统,包含多Agent协调、验证、安全前置、Top-5 预取、缓存和成本治理等关键能力;这些在代码中均未出现。代码的主功能更像是统一记忆子系统,而不是声明所述的完整多Agent工程化系统。因此描述对该代码块的能力范围有明显夸大,属于实质性不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

Yes, this is a clear mismatch. The declared description promises a substantial multi-agent orchestration and safety/governance framework, but the supplied code chunk contains no implementation at all—just an empty declaration module (export {}). There are no agents, no memory logic, no verification workflow, no command safety handling, and no cache or cost controls visible in this code. Therefore the actual behavior does not substantiate the declared purpose.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The description promises a specific engineering-oriented multi-agent enhancement layer: layered memory retrieval, Top-5 prefetch, six-role coordinator collaboration, verification-agent-based acceptance, command pre-execution safety checks, and cache/cost management. The supplied code chunk is only an example script that calls high-level methods on an imported AICollaborationSystem and prints results for personal productivity/self-tracking style functions. From this chunk, the observable behavior centers on demonstrations of scanning signals, storing workflow experience, tracking goals, generating reflective insights, and reporting health. Those behaviors are materially different from the declared primary purpose, and the key advertised capabilities are not evidenced in the code shown.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared description is about an engineering-focused multi-agent orchestration and safety/governance framework. The supplied code chunk instead exposes interfaces and a class for personal development analytics and reflective reporting. There is no evidence here of multi-agent coordination, Top-5 prefetch, layered retrieval mechanisms, verification agents, command safety pipelines, or cache/cost governance. The primary purpose is materially different, making this a clear description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description describes infrastructure for a multi-agent orchestration and safety/governance framework. The provided code instead implements a domain-specific personal development module focused on goals, motivations, time allocation, self-reflection, and predictions, backed by a layered memory store. While both mention layered memory at a high level, the primary purpose and concrete behavior are materially different. The code does not show coordinator roles, verification logic, command pre-execution safety checks, Top-5 retrieval/prefetch, cache management, or cost observability. Instead, it performs undeclared personal analytics and report generation. This is a clear description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

The declared description presents the skill as a broad multi-agent orchestration and safety/governance enhancement system. However, the supplied code chunk is specifically a TypeScript declaration for an information signal recognition system. Its exposed capabilities center on evaluating and adding signals, identifying patterns, generating reports, querying stored signals, and syncing results. None of the headline declared capabilities—such as six-role coordinator collaboration, verification agent enforcement, command pre-execution safety pipeline, Top-5 prefetch, or cache/cost governance—are represented in this code chunk. While it does reference a unified memory system, that alone is only tangentially related and does not align the primary purpose. Therefore the description does not accurately represent this code's actual behavior.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The declared description presents the skill as an engineering-oriented multi-agent framework upgrade with orchestration, layered retrieval, prefetching, verification, safety controls, and cost management. The supplied code chunk instead provides a focused 'signal' subsystem for evaluating and storing informational signals in memory. While it does interact with layered memory, that is only as part of signal persistence and synchronization, not the broader claimed multi-agent collaboration system. The primary purpose is materially different, and most key declared capabilities are absent from this code chunk.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The declared description emphasizes engineering an advanced multi-agent execution framework with orchestration, retrieval, verification, command safety, and cost controls. The supplied code chunk instead defines interfaces and methods for a workflow asset system centered on capturing and structuring knowledge artifacts from completed work. While both mention memory in a broad sense, the actual code does not expose the key declared capabilities such as multi-agent coordination, Top-5 prefetching, verification agent logic, command safety pipeline, caching, or cost governance. Its primary purpose is materially different: workflow knowledge accumulation and methodology generation rather than operating a Claude Code-like multi-agent system.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

The declared description presents a broad multi-agent orchestration and safety/governance enhancement skill. The supplied code instead defines a single WorkflowAssetSystem focused on capturing tacit knowledge from user responses, transforming it into structured artifacts, storing them in memory, and syncing methodologies to other systems. While it does interact with memory layers, this is not the described layered retrieval/prefetch system, and there is no evidence of coordinator roles, verification enforcement, safety checks before commands, cache management, or cost controls. Therefore the code's actual primary purpose is materially different from the declared description.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

声明描述的是一个面向多Agent工程化增强的系统级技能,强调协作编排、安全、验证、检索和成本治理等能力。但提供的代码块只是一个特定业务场景的演示脚本,围绕春节值班热点监测、等级判断、日报输出和工作流沉淀展开。它确实使用了一个 AI 协作系统实例,并写入 L3 memory、调用 signal.evaluateSignal,但这只能说明底层依赖了某个协作系统,不足以证明声明中的核心能力。代码没有展示多智能体协同调度、Top-5 预取、验证代理、安全执行管线、缓存或成本治理等关键特性,因此描述与实际行为存在明显偏差,且代码主用途与声明主用途 materially different。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

声明描述的是一个用于增强/升级多智能体系统架构的技能,重点在代理协同、记忆检索、安全管线、验证与成本治理等底层工程能力。实际代码却只是一个场景化示例:构造热点数据、按规则评分分级、生成日报,并顺带调用若干现有系统接口做展示。它没有实现声明中的关键能力,也没有表现出“升级原始多Agent框架”的核心行为。虽然代码使用了 memory、signal、workflow 等接口,但这些只是对既有系统的调用示例,不等同于声明中的高级多Agent工程化特性。因此描述与实际行为存在明显不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

声明描述的是一个面向多智能体工程化升级的综合技能,范围较大,包含协同、验证、安全和成本治理等多个子系统。但给出的代码块仅是单个 JavaScript 演示文件,内容集中在记忆系统 V2 的概念展示:场景配置、记忆条目元数据、使用效果追踪、基于可信度/成功率/重要性的简单检索排序、记忆流动与遗忘规则说明。虽然这与声明中的“分层记忆检索”方向部分相关,但代码没有实现声明中的多数关键能力,且主旨明显偏向记忆模块演示,而非完整的多 Agent 协作系统。因此描述与实际行为存在实质性不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

声明描述的是一个面向 Claude Code 风格的增强型多Agent工程系统,重点在记忆检索、预取、协调器编排、验证验收、安全前置、缓存与成本控制等能力。但代码仅展示了一个通用多智能体接口和4个示例代理,加上一个简单的网络调度器。它没有任何记忆系统、检索或预取逻辑;没有六角色 Coordinator;没有 Verification Agent;没有命令安全审查、权限控制、风险过滤;也没有缓存、成本统计、token/调用治理或可观测性指标。实际主用途更像“基础多智能体协作框架原型/骨架”,与声明的高级工程化升级系统存在实质性不符。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The declared description promises a broad engineering system for multi-agent orchestration and safety, but this code chunk is narrowly scoped to a persistence-backed memory manager. It does support part of the memory-related claim: local storage, retrieval, heuristic extraction, and a default topK of 5. However, it does not implement the majority of the declared functionality, including multi-agent coordination, verification workflows, safety checks before commands, or cache/cost management. The primary behavior is therefore materially narrower than the declared purpose.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

该代码块与声明存在明显描述-行为不一致。声明描述的是一个覆盖多 Agent 协作、检索预取、验证验收、安全执行、缓存和成本治理的综合性技能;而实际代码仅实现了“统一记忆系统 V2”的记忆管理模块。虽然代码确实包含“分层记忆”“场景化检索”“反馈闭环”“遗忘机制”等,与声明中的部分记忆相关表述有一定重合,但它没有展示任何 Agent 角色协调、任务分发、验证代理、命令安全检查、缓存策略、成本统计等关键能力。因此其实际行为只覆盖声明中的一个子集,且缺失多个核心卖点,属于实质性不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
95% confidence
Finding

声明描述的是一个面向多Agent工程化升级的综合系统,核心应包括多角色协调、验证代理、安全执行前置检查、预取、缓存和成本可观测等能力。但给出的代码块主要是“统一记忆系统”模块:它维护多层内存结构,提供关键词式意图识别、简单执行模式选择、基础输出评估、相似任务检索和用户偏好画像。虽然“分层记忆检索”与“可验证”方向有部分沾边,但实现深度明显不足,且多个被重点宣称的核心能力完全缺失。相反,代码还实现了用户画像自适应,这属于声明未突出说明的实际功能。因此描述与代码行为存在明显不匹配。

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The declared description focuses on upgrading a multi-agent system into a Claude Code–style engineered platform with specific orchestration, memory, verification, safety, and cost-management features. The actual code chunk is only an example script using an AICollaborationSystem for personal productivity/intelligence tasks: scanning signals, capturing workflow experience, tracking goals and energy distribution, generating insights, checking health, and printing summaries. That is materially different from the declared primary purpose. While the imported class name suggests some collaboration system exists elsewhere, this chunk itself does not evidence the declared capabilities and instead demonstrates unrelated self-management and analysis features. Therefore this is a description-behavior mismatch.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
94% confidence
Finding

The declared description promises a substantial multi-agent orchestration framework with advanced memory, verification, safety, and cost-control features. The supplied code does not implement those capabilities. Instead, it provides a relatively narrow coordinator that manages a four-module execution sequence, user continuation/exit choices, session state, and reporting. Although this is loosely related to 'multi-agent coordination,' the primary behavior is materially simpler and missing most of the specifically declared features, so the description does not accurately represent the code.

Content

No source excerpt is available for this finding.

Tp4

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The declared description describes an engineering-oriented multi-agent orchestration upgrade with specific infrastructure features: layered memory retrieval, Top-5 prefetch, six-role coordination, verification-based acceptance, command safety pipeline, and cache/cost controls. The supplied code instead implements a personal goal management module. While it does use a memory system and includes lightweight intent recognition, reflection, proactive perception, and adaptation, these are applied to goal tracking rather than multi-agent collaboration. There is no evidence of six-role coordinator logic, verification agent evidence checks, command pre-safety pipeline, Top-5 prefetch behavior, or cache/cost governance. The primary purpose is materially different, so this is a clear description-behavior mismatch.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.