T01 · Skill Instruction Hijacking
- Location
modules/tier2-targeted.md:20- Finding
Repository-Controlled Instructions May Hijack the Tier 2 Audit
- Content
View full analysis
Vulnerability Details
File Location:
modules/tier2-targeted.md:20-21
Vulnerability Type: Indirect prompt injection through untrusted repository context
Risk Level: MediumVulnerable Code Snippet:
markdown 1. Load the area context from plugin CLAUDE.md and skill descriptionsTechnical Analysis
The Tier 2 execution protocol instructs the Agent to load
CLAUDE.mdand Skill descriptions from the area being audited. These files can be controlled by the owner of the target repository and may contain arbitrary natural-language instructions.The protocol does not establish a trust boundary requiring repository content to be treated only as untrusted evidence. It also does not direct the Agent to ignore embedded tool requests, role changes, output constraints, or attempts to override the audit procedure. If the runtime interprets loaded repository content as operative instructions, a malicious repository can indirectly inject instructions into the Agent's active context.
Attack Path
- An attacker adds a malicious
CLAUDE.mdor Skill description to the repository. - The file includes instructions that attempt to override the audit, such as suppressing findings, reading unrelated files, invoking tools, modifying artifacts, or disclosing available information.
- Tier 1 flags the affected area for targeted review.
- During Tier 2, the Agent follows the protocol and loads the attacker-controlled file as context.
- Because the protocol does not require strict separation between repository data and trusted Skill instructions, the Agent may follow the injected directives.
- Any resulting actions execute within the permissions and tool access available to the auditing Agent.
Impact Assessment
Successful exploitation can alter the audit's goals, conceal vulnerabilities, falsify findings, or redirect the Agent toward unrelated tool operations. The maximum privilege available is bound ...[truncated 286 chars]
- An attacker adds a malicious
- Remediation
View remediation
Remediation Suggestions
- Explicitly classify all repository files, including
CLAUDE.mdand Skill descriptions, as untrusted input. - Instruct the Agent to analyze their contents as evidence only and never follow instructions found in them.
- Require the Agent to ignore embedded role changes, tool requests, output-format overrides, safety-policy changes, links, and requests to access unrelated resources.
- Prefer extracting only narrowly defined metadata instead of loading entire instruction-oriented files into the active instruction context.
- Preserve trusted audit instructions in a higher-priority context that repository content cannot override.
- Record and report detected prompt-injection text rather than executing it.
- Run audits with least-privilege filesystem, command, and network permissions to limit the impact of any successful injection.
- Explicitly classify all repository files, including
