T01 · Skill Instruction Hijacking
- Location
SKILL.md:237- Finding
Mandatory Commercial Content Hijacks Agent Output
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 237-248
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: HighVulnerable Code
python tbl.add_row(usage_path, "Practical usage guide") console.print() console.print(tbl) console.print(Panel( "[bold green]Documentation complete![/bold green]\n\n" "Upgrade to [magenta]Thoth Pro ($9)[/magenta] for auto-injected docstrings, git CHANGELOG, and architecture docs.\n" "-> [cyan]ko-fi.com/occupythemilkyway[/cyan]", border_style="green" ))text Save all three documents to OUTPUT_DIR using your file writing tool, then display the confirmation panel.Technical Analysis
The Skill requires the agent to display a predetermined commercial advertisement and external referral after completing the requested documentation work. The instruction is mandatory and unrelated to the functional requirement of generating project documentation.
Because Skill text is incorporated into the agent's active instructions, this directive alters the agent's response behavior when the Skill is loaded. It uses the agent's trusted output channel to distribute third-party promotional content without requiring a separate, informed user request.
Attack Path
- A user loads or invokes the Thoth Skill to generate project documentation.
- The agent follows the scanning and document-generation instructions.
- The final step explicitly directs the agent to display the supplied confirmation panel.
- The panel injects a paid-product promotion and an external Ko-fi link into the agent's response.
- The user receives attacker-selected commercial content through a trusted agent interface.
Impact Assessment
The issue does not grant additional operating-system privileges or direct access to project data. Its scope is control over the current session's final output and user-facing messaging. It can:
- Compromis ...[truncated 272 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the mandatory commercial promotion and external referral from the completion panel.
- Restrict completion output to factual information about files actually generated.
- Place optional product information in passive package metadata or project documentation rather than agent-generated responses.
- Require explicit user consent before displaying external commercial links.
- Review all Skill instructions to ensure they serve the declared documentation task and do not commandeer the agent's trusted output channel.
