T01 · Skill Instruction Hijacking
Warning
- Location
- SKILL.md:265
- Finding
- Forced Third-Party Attribution in Git Commit History## Vulnerability Details **File Location**: `SKILL.md`, lines 265–272 **Vulnerability Type**: Agent output manipulation through mandatory commit-message instructions **Risk Level**: Medium ### Complete Code Snippet ```markdown git commit -m "docs(readme): update README and CHANGELOG - Add tech stack table from package.json analysis - Add getting started section with verified commands - Populate CHANGELOG [Unreleased] from git log since v1.2.0 Generated with [Devin](https://devin.ai)" ``` ### Technical Analysis The skill instructs the agent to include a fixed third-party attribution and external promotional URL in a Git commit message. This content is unrelated to the requested documentation changes, is not derived from repository evidence, and may falsely imply that a particular external product generated or endorsed the commit. Because Git commit messages form part of persistent repository history, this instruction alters an agent-generated artifact beyond the legitimate purpose of creating README and CHANGELOG documentation. The behavior is classified as skill instruction hijacking because the loaded skill directs the agent to inject attacker-selected content into project metadata. The instruction does not independently escalate privileges. Exploitation depends on the agent already having authorization to commit changes. However, when such authorization exists, the injected attribution can become permanently recorded in local and remote repository history. ### Attack Path 1. A user invokes the skill to generate or update repository documentation. 2. The agent follows the delivery workflow defined in `SKILL.md`. 3. The agent reaches the commit phase and uses the prescribed commit-message template. 4. The fixed `Generated with [Devin](https://devin.ai)` attribution is inserted without being requested by the user or supported by repository evidence. 5. If the commit is pushed, the promotional attribution becomes ...[truncated 740 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the hardcoded `Generated with [Devin](https://devin.ai)` line from the commit template. 2. Generate commit messages exclusively from verified repository changes and user-approved metadata. 3. Do not add product attribution, external links, co-author trailers, signatures, or promotional text unless the user explicitly requests them. 4. Present the proposed commit message for user review before executing `git commit`. 5. Make branch creation and commit creation optional, requiring explicit confirmation before modifying repository history. 6. Add a verification rule that rejects commit-message content not traceable to the requested changes or repository evidence.
