T01 · Skill Instruction Hijacking
- Location
SKILL.md:3- Finding
Unaudited External Skill Instruction Redirection
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 3–5
Vulnerability Type: External instruction substitution
Risk Level: MediumVulnerable Code Snippet:
markdown Use the canonical skill instead: - `/data/workspace/skills/skills/book-deep-study/SKILL.md`Technical Analysis
The packaged skill entry point instructs the agent to load another skill from an absolute filesystem path outside the audited project. The target file is not part of the supplied artifact, so its contents, integrity, ownership, and future changes cannot be verified by auditing this package.
This creates an instruction-substitution boundary: behavior observed during review is not necessarily the behavior activated at runtime. If an attacker or another process can modify the externally referenced file, they can replace the effective skill instructions without changing this audited artifact. The replacement instructions may alter the agent's session goals, safety constraints, tool-use decisions, or output behavior.
The redirection does not itself demonstrate arbitrary code execution or operating-system privilege escalation. Exploitation depends on the agent following the redirect and an attacker being able to influence the referenced external file.
Attack Path
- A user or agent loads this package through
SKILL.md. - The entry point directs the agent to
/data/workspace/skills/skills/book-deep-study/SKILL.md. - An attacker or compromised process modifies that external file before it is loaded.
- The agent treats the externally supplied content as trusted skill instructions.
- The substituted instructions alter the active session's objectives, safeguards, tool usage, or responses.
Impact Assessment
Successful exploitation grants control over the effective skill instructions for sessions that follow the redirect. This may allow manipulation of the agent's current-session behavior and misuse of whatever ...[truncated 249 chars]
- A user or agent loads this package through
- Remediation
View remediation
Remediation Suggestions
- Remove the instruction that redirects the agent to an absolute path outside the audited package.
- Include the canonical
SKILL.mdand all required references directly within the distributed artifact. - If the obsolete package must remain, make it a non-operative deprecation notice that does not instruct an agent to load another file.
- If delegation is unavoidable, restrict loading to an approved package directory and verify the target using an immutable version and cryptographic digest before processing it.
- Ensure the delegated file is subject to the same review, ownership, access-control, and release process as the entry point.
- Reject redirects whose resolved paths escape the skill package root, including absolute paths and traversal-based paths.
