跳转到正文
报告库
用途分类 / 其他用途

Claude Handoff Skill 安全审计

作者说它能做什么(原文)

Hand the current conversation off to a fresh background agent that picks up the work immediately.

第三方安全检查结论

先别安装或运行

已检查文件
2
发现的风险
2
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。发现 1 项风险
高风险

对话内容被直接嵌入 shell 命令,可能造成命令注入

原文依据:2 处
发现了什么

Skill 给出的执行形式把生成的名称和交接摘要放入双引号 shell 参数,却没有规定安全的参数传递或转义。对话内容还会根据用户参数定制,因此摘要可能包含引号、反引号、`$()` 或其他 shell 语法。双引号不会阻止命令替换;内容也可能提前结束引号。

为什么需要注意

如果代理照此拼接并通过 shell 执行,特制的对话或参数可能在用户权限下运行额外命令,进而读取或更改文件、使用现有凭据,或启动非预期进程。

该技能明确要求执行一个 shell 形式的命令,并把模型生成的名称和交接摘要插入双引号参数。用户参数还会影响摘要内容。若执行方将示例作为 shell 命令拼接,而内容含未安全转义的 `"`、`$()` 或反引号,可能执行非预期命令,影响用户文件或凭据。来源没有规定使用参数数组或可靠转义;用户可要求作者改用不经 shell 的参数传递并限制名称字符。

SKILL.md:8来自说明文档打开原文件
Write a handoff summary of the current conversation so a fresh agent can continue the work. Instead of saving it, launch a background agent seeded with the summary as its prompt: `claude --bg --name "<descriptive name>" "<handoff summary>"`. It starts in the current working directory and returns immediately; the user manages it with `claude agents`.
查看另外 1 个位置
SKILL.md:18来自说明文档打开原文件
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the summary accordingly.
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。发现 1 项风险
中风险

交接会把当前对话内容发送给另一个代理会话

原文依据:5 处
发现了什么

摘要被直接用作新后台代理的提示词。虽然说明要求删去密钥、密码和个人身份信息,但没有要求用户审阅摘要,也未涵盖未被识别的秘密、私有源码片段、客户资料或商业机密。

为什么需要注意

调用后,摘要中的敏感上下文会进入另一个代理会话,并可能按引用路径继续访问当前工作目录中的制品;数据处理范围因此超出当前会话。

这段代码的正常用途

把当前对话摘要交给新的后台代理正是该技能公开声明的功能,不是隐藏的数据发送;配置也禁止隐式调用,因此需要用户明确触发。它还明确要求删去 API 密钥、密码和个人身份信息。摘要仍可能含未被识别的私有源码或商业信息,但现有证据未显示会发送给不同账户或未授权第三方;用户可在调用前要求仅包含指定文件引用或先展示摘要。

这项判断针对展示的代码和适用条件,不表示风险已经实际发生。
SKILL.md:8来自说明文档打开原文件
Write a handoff summary of the current conversation so a fresh agent can continue the work. Instead of saving it, launch a background agent seeded with the summary as its prompt: `claude --bg --name "<descriptive name>" "<handoff summary>"`. It starts in the current working directory and returns immediately; the user manages it with `claude agents`.
查看另外 4 个位置
SKILL.md:14来自说明文档打开原文件
Do not duplicate content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.Redact any sensitive information, such as API keys, passwords, or personally identifiable information, since the summary becomes the agent's prompt.
SKILL.md:3来自说明文档打开原文件
name: claude-handoffdescription: Hand the current conversation off to a fresh background agent that picks up the work immediately.argument-hint: "What will the next session be used for?"
SKILL.md:16来自说明文档打开原文件
Redact any sensitive information, such as API keys, passwords, or personally identifiable information, since the summary becomes the agent's prompt.
agents/openai.yaml:5来自说明文档打开原文件
policy:  allow_implicit_invocation: false
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。未发现风险
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。未发现风险
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。未发现风险

Skill 逻辑拆解

0 个说明模块

该 Skill 在被明确调用后,会总结当前对话,并在当前工作目录启动一个名为 `claude` 的后台代理;命令立即返回,后续由用户通过 `claude agents` 管理。

查看原文
SKILL.md:8来自说明文档打开原文件
Write a handoff summary of the current conversation so a fresh agent can continue the work. Instead of saving it, launch a background agent seeded with the summary as its prompt: `claude --bg --name "<descriptive name>" "<handoff summary>"`. It starts in the current working directory and returns immediately; the user manages it with `claude agents`.
agents/openai.yaml:4来自说明文档打开原文件
  short_description: "Hand off to a background agent"policy:  allow_implicit_invocation: false

交接摘要会提示下一代理调用建议的 Skills,并以路径或 URL 引用已有制品,而不是复制其内容。

查看原文
SKILL.md:12来自说明文档打开原文件
Include a "suggested skills" section in the summary, naming which skills the next agent should call the Skill tool for.Do not duplicate content already captured in other artifacts (specs, plans, ADRs, issues, commits, diffs). Reference them by path or URL instead.

说明要求在把摘要用作新代理提示词之前删去 API 密钥、密码和个人身份信息。

查看原文
SKILL.md:16来自说明文档打开原文件
Redact any sensitive information, such as API keys, passwords, or personally identifiable information, since the summary becomes the agent's prompt.
从这里开始 · 工作说明SKILL.md
claude-handoff

工作说明没有分章节。可在下方查看随附文件和相关代码。

连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。
文件与检查记录2 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文
  • agents/openai.yaml已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明
  • agents/openai.yaml配套文件
读取了多少行
25
文件校验值(用于核对版本)
3060a453861871cb6da9ff8306356b38f08cc8b4d3696f8804d17d8ef0ab03c1