对话内容被直接嵌入 shell 命令,可能造成命令注入
原文依据:2 处Skill 给出的执行形式把生成的名称和交接摘要放入双引号 shell 参数,却没有规定安全的参数传递或转义。对话内容还会根据用户参数定制,因此摘要可能包含引号、反引号、`$()` 或其他 shell 语法。双引号不会阻止命令替换;内容也可能提前结束引号。
如果代理照此拼接并通过 shell 执行,特制的对话或参数可能在用户权限下运行额外命令,进而读取或更改文件、使用现有凭据,或启动非预期进程。
该技能明确要求执行一个 shell 形式的命令,并把模型生成的名称和交接摘要插入双引号参数。用户参数还会影响摘要内容。若执行方将示例作为 shell 命令拼接,而内容含未安全转义的 `"`、`$()` 或反引号,可能执行非预期命令,影响用户文件或凭据。来源没有规定使用参数数组或可靠转义;用户可要求作者改用不经 shell 的参数传递并限制名称字符。
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 个位置
If the user passed arguments, treat them as a description of what the next session will focus on and tailor the summary accordingly.