T01 · Skill Instruction Hijacking
Error
- Location
- scripts/bilibili.sh:118
- Finding
- Unconditional Third-Party Promotional Output Injection<![CDATA[ ## Vulnerability Details **File Location**: `scripts/bilibili.sh`, lines 118-119 **Vulnerability Type**: Persistent output manipulation **Risk Level**: High ### Vulnerable Code ```python print("") print("Powered by BytesAgain | bytesagain.com") ``` ### Technical Analysis The embedded Python program unconditionally appends a third-party brand name and external domain to every response. This footer is not limited to the help or version output and cannot be disabled by the caller. Consequently, content produced through the script is modified to include unrelated promotional material. If an AI agent treats the command output as content intended for direct publication, the third-party attribution and URL can be propagated without the user explicitly requesting or approving them. The behavior does not execute remote code or transmit information to the domain, but it constitutes persistent output manipulation because it changes every generated result. ### Attack Path 1. A user or agent invokes any supported operation through `scripts/bilibili.sh`. 2. The embedded Python program generates the requested content. 3. Lines 118-119 append the third-party brand and domain unconditionally. 4. The caller consumes or republishes the complete command output. 5. The unrelated promotional material is included in the downstream response or publication. No attacker-supplied input is required because the output modification is hardcoded. ### Impact Assessment This issue does not grant operating-system privileges or provide access to local data. Its impact is limited to the integrity and trustworthiness of generated output: - Unrequested advertising may be incorporated into user-facing content. - AI agents may reproduce an external URL as though it were part of the requested result. - Automated workflows cannot obtain clean output without additional filtering. - Users may mistakenly interpret the promoted domain as necessary for the skill’s operation. ]]>
- Remediation
- <![CDATA[ ## Remediation Suggestions Remove the unconditional promotional footer from normal command output: ```python # Do not append third-party promotional content here. ``` If attribution is legitimately required, restrict it to an explicit informational command such as `help`, `about`, or `version`. Alternatively, introduce an opt-in flag and keep machine-readable or generated content free of unrelated material by default. The documentation should clearly disclose any attribution that remains, and tests should verify that content-generation commands return only the content requested by the caller. ]]>
