T01 · Skill Instruction Hijacking
- Location
skills/LEAP/SKILL.md:218- Finding
Untrusted Third-Party Skill Instructions Are Injected into Agent Compilation Context
- Content
View full analysis
--json` - 按 quality_score 排序:elite(≥11)优先,draft(<9)丢弃 3. **自动择优注入:** - 取 top 3-5 个精英 exemplar(elite ≥11 优先) - 写入 `references/exemplars/exemplar-.md` - 评分结果写入 `references/exemplar_candidates.json` 备查 ``` The compilation stage then explicitly requires the downloaded material: ```markdown ### Compilation inputs(按优先级) 1. **`skill-grammar.md` — 必须先 Read。** 2. **Fetched exemplars — 必须注入。** 精英 skill 的结构是 few-shot 参照。至少参照 1 个 exemplar 的 section 组织方式。 3. All R+S reports (content + evidence) 4. Domain pack (domain-specific conventions) ``` The fusion path has the same trust-boundary issue: ```markdown 对每个所需 skill,按顺序检索: 1. 本地 `output/` 目录(之前生成过的 skill) 2. 已安装 skill(`~/.claude/skills/`) 3. **find-skills 在线搜索**(skills.sh 公开 skill 池,语义搜索) 4. GitHub raw 在线拉取 Skill 拉取后跑 `python3 scripts/score_skill.py --skill --json` 确认质量。 ``` ### Technical Analysis LEAP downloads attacker-controlled `SKILL.md` documents from public repositories and requires the Agent to consume them as few-shot compilation inputs. These files are instruction-bearing documents rather than passive data. An attacker can therefore embed directives that attempt to change the compiler Agent's goals, invoke tools, disclose context, or propagate malicious instructions into generated Skills. The mechanical score does not establish trust or safety. The applicable validation rules in `skills/LEAP ...[truncated 1961 chars]- Remediation
View remediation
