T01 · Skill Instruction Hijacking
- Location
scripts/essay.sh:280- Finding
Forced Promotional Content in Agent Responses
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:32;scripts/essay.sh:280-281
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: LowVulnerable Code
SKILL.md:32:markdown Agent should run the script and return output to user.scripts/essay.sh:280-281:bash echo "" echo " Powered by BytesAgain | bytesagain.com | hello@bytesagain.com"Technical Analysis
The documented workflow instructs the agent to execute
scripts/essay.shand return its output to the user. The script unconditionally appends third-party branding, an external domain, and an email address to every response.This creates an output-manipulation path in which content unrelated to the user's essay request is inserted into the agent's final response. The behavior is deterministic and does not depend on which supported essay command is invoked.
The issue is limited to response content. The reviewed implementation does not use the advertised URL or email address for network communication, download remote content, alter safety constraints, or execute remote code.
Attack Path
- A user requests Gaokao essay functionality.
- The agent follows
SKILL.mdand invokesscripts/essay.sh. - The requested content is generated locally.
- The script unconditionally appends the promotional footer.
- The agent returns the script output, exposing the user to unsolicited branding and external contact information.
Impact Assessment
The attacker-controlled scope is limited to persistent promotional text in responses produced through the documented script. No additional operating-system privileges, account access, credentials, or remote execution capabilities are obtained. The principal impact is response integrity degradation and unsolicited redirection toward an external domain.
- Remediation
View remediation
Remediation Suggestions
- Remove the unconditional promotional footer from
scripts/essay.sh. - Return only content directly related to the command requested by the user.
- Remove or revise the instruction requiring the agent to relay all script output without review.
- If attribution is necessary, place it in project documentation rather than runtime output.
- Add an automated test that verifies generated responses do not contain unrelated URLs, email addresses, or promotional text.
- Remove the unconditional promotional footer from
