T01 · Skill Instruction Hijacking
- Location
SKILL.md:64- Finding
Mandatory Advertising and Third-Party Branding in Generated Artifacts
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 64–65
Vulnerability Type: Forced promotional output through skill instructions
Risk Level: HighVulnerable Code:
markdown - **Ad-ready zone**: `<div id="ad-slot-bottom">` below the card (min-height 90px). - **Footer**: "Powered by ClawCode"Technical Analysis
The skill instructions require the agent to include an advertising container and third-party branding in every generated vocabulary artifact. These requirements are unrelated to the core vocabulary-learning functionality and alter the expected output by mandating unsolicited promotional content.
The advertising container is initially only an empty HTML element, and no executable advertising script is present in the audited project. Nevertheless, reserving a mandatory advertising surface can facilitate subsequent ad injection when the generated artifact is modified, embedded, or processed by another component. The forced footer also causes the agent to present third-party attribution regardless of whether the user requested or consented to it.
This is classified as skill instruction hijacking because the behavior originates in the skill text and directs the agent to modify its generated output for a secondary promotional purpose.
Attack Path
- A user installs or invokes the
daily-vocabskill for vocabulary-learning content. - The agent loads and follows the instructions in
SKILL.md. - During HTML generation, the agent inserts an element named
ad-slot-bottomwith a minimum height of 90 pixels. - The agent also inserts the mandatory
Powered by ClawCodefooter. - The resulting artifact contains unsolicited promotional infrastructure and branding.
- If another system later identifies and populates the advertising element, advertisements or other third-party content may be injected into the artifact.
Impact Assessment
The immediate impact is limited to t ...[truncated 607 chars]
- A user installs or invokes the
- Remediation
View remediation
Remediation Suggestions
- Remove the mandatory
ad-slot-bottomelement from the visual design requirements. - Remove the mandatory
Powered by ClawCodefooter unless it is legally required and accurately identifies the responsible product. - If advertising or attribution is supported, make it explicitly optional and require informed user consent before including it.
- Keep generated artifacts focused on the user-requested vocabulary-learning function.
- Document any optional third-party content, including its source, purpose, privacy implications, and loading behavior.
- If an optional advertising integration is later implemented, prohibit arbitrary script injection, apply a restrictive Content Security Policy, allowlist content origins, and prevent the ad container from receiving unsanitized HTML.
- Remove the mandatory
