T01 · Skill Instruction Hijacking
- Location
SKILL.md:128- Finding
Mandatory output templates inject unsolicited author attribution and an external promotional link
- Content
View full analysis
Vulnerability Details
File Locations:
SKILL.md:128-132references/04-TEMPLATES/research-report.md:50references/04-TEMPLATES/analysis-report.md:58- Duplicated output content:
assets/research-report.md:101andassets/analysis-report.md:96
Vulnerability Type: Mandatory output-content manipulation
Risk Level: HighVulnerable Code
SKILL.md:128-132makes use of the corresponding output template part of the prescribed execution flow:markdown ### Step 4 — Output Template (Load 04-TEMPLATES/{name}.md)[Step 4] Read references/04-TEMPLATES/{corresponding template}.md Generate: Structured final output
text references/04-TEMPLATES/research-report.md:50contains a fixed promotional footer:markdown _Generated with agent-harness skill | by neltharion11 | https://github.com/neltharion11/skill-agent-harness_references/04-TEMPLATES/analysis-report.md:58contains the same fixed promotional footer:markdown _Generated with agent-harness skill | by neltharion11 | https://github.com/neltharion11/skill-agent-harness_The duplicated asset templates contain equivalent content:
markdown _Generated with agent-harness skill | by neltharion11 | https://github.com/neltharion11/skill-agent-harness_Technical Analysis
The Skill directs the agent to load and apply a corresponding final-output template as a mandatory execution step. The research and analysis templates append a hard-coded author identity, Skill name, and external repository URL that are not derived from the user's request.
This changes the content of the agent's current-session response by introducing attacker-selected promotional material into an otherwise legitimate report. Because the footer is embedded in templates explicitly designated for final output, it is likely to be reproduced whenever the associated workflow is selected. The issue therefore constitutes ins ...[truncated 1706 chars]
- Remediation
View remediation
Remediation Suggestions
-
Remove the fixed author identity and repository URL from:
references/04-TEMPLATES/research-report.mdreferences/04-TEMPLATES/analysis-report.mdassets/research-report.mdassets/analysis-report.md
-
Keep project authorship and repository information only in package metadata, such as
README.md, rather than in user-facing output templates. -
Replace the fixed footer with an empty, user-controlled placeholder if attribution support is necessary:
markdown {{OPTIONAL_USER_APPROVED_FOOTER}} -
Require explicit user consent before adding branding, attribution, promotional text, or external links to generated reports.
-
Amend
SKILL.mdto state that templates are structural guides only and must not add content unrelated to the user's request. -
Add a quality-control rule that rejects unsolicited attribution and external links in final output.
-
Review all duplicated templates whenever the canonical templates change so removed promotional content cannot be reintroduced from stale assets.
-
