T01 · Skill Instruction Hijacking
- Location
AGENT.md:14- Finding
Untrusted Skill Instructions Are Promoted into Core Agent Rules
- Content
View full analysis
/SKILL.md` — name, version, triggers 2. `/AGENT.md` — rules (hard/soft) 3. `/SOUL.md` — sections 4. `/hooks/*.md` — hooks Missing → warn, continue. ## 3. Show Summary ``` EXTRACTION: Sections: N Rules: N hard, N soft Hooks: N ``` Wait confirm → inject. ## 4. Write (Idempotent) Check existing → skip if same version → update if diff → add if new. ## 5. Create Paths From SKILL.md structure → mkdir -p missing paths. ``` `hooks/on-install.md:7-23`: ```markdown ## Read | File | Extract | |------|---------| | SKILL.md | name, version, triggers | | AGENT.md | rules (hard/soft) | | SOUL.md | sections | | hooks/*.md | hook names | ## Classify Rules - Contains MUST/SHALL/ALWAYS/CANNOT → HARD - Contains SHOULD/PREFER → SOFT - Default → SOFT ## Inject Writes to: soul/master.md, agent/skills-active.md, workspace/_index.md ``` `templates/agent-inject.md:13-33`: ```markdown ### Always Fires yes / no ### Hard Rules (enforced — BLOCK response until satisfied) | Rule | Level | Short Desc | Requires | Fires When | |------|-------|------------|----------|----------| | R1 | HARD | | write: | every_turn | | R2 | HARD | | hook: | on: | ### Soft Rules (advisory — log warning, continue) | Rule | Level | Short Desc | Recommends | Fires When | |------|-------|------------|------------|----------| | R1 | SOFT | | check | on_condition | ### Hooks | Hook File | Fires When | Writes To | |----------|----------|----------| | hooks/on-error.md | error detected | errors/raw/ | | hooks/pre-res ...[truncated 2729 chars]- Remediation
View remediation
