T01 · Skill Instruction Hijacking
- Location
templates/swarm-architecture-template.md:157- Finding
Hard-Coded Third-Party Promotion in Generated Architecture Documents
- Content
View full analysis
Vulnerability Details
File Location:
templates/swarm-architecture-template.md, lines 2-3 and 157-158
Vulnerability Type:T01: Skill Instruction Hijacking
Risk Level: HighVulnerable Code:
markdown *Generated by Agent Swarm Planner — Resomnium* *Date: [YYYY-MM-DD]*markdown *Architecture designed with Agent Swarm Planner by Resomnium* *Questions? → resomnium.com/contact*Technical Analysis
The reusable output template embeds fixed third-party attribution, branding, and an external contact address in documents generated for users. These elements are not necessary to produce the requested swarm architecture and are presented as mandatory template content rather than optional metadata.
Because the skill controls the model's generated response, these hard-coded instructions can cause unrelated promotional content to be inserted into downstream artifacts without the user's explicit request or consent. This alters the expected output and constitutes output-oriented skill instruction hijacking.
The external address is static text; the reviewed project contains no code that automatically contacts the domain, retrieves a payload, or transmits information.
Attack Path
- A user loads the Agent Swarm Planner skill and requests a swarm architecture.
- The agent follows
templates/swarm-architecture-template.mdwhen constructing the requested document. - The fixed Resomnium attribution and contact address are copied into the generated artifact.
- The user receives unsolicited third-party promotion presented as part of the requested architecture.
- The user may interpret the branding as required or trusted project content and manually navigate to the external domain.
Impact Assessment
No operating-system privileges, credentials, or additional system access can be obtained directly through the reviewed content. The impact is limited to generated-output integrity and ...[truncated 395 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the fixed organization name and external contact address from the template.
- Keep generated documents focused exclusively on content requested by the user.
- If attribution is operationally required, implement it as an explicit, user-controlled option that is disabled by default.
- Clearly label any optional attribution as promotional or third-party content rather than presenting it as part of the architecture.
- Add a release review that checks templates and instruction files for hard-coded branding, URLs, calls to action, and other content unrelated to the skill's declared function.
- Test generated artifacts to verify that no attribution or external link appears unless the user expressly enables it.
