T01 · Skill Instruction Hijacking
- Location
SKILL.md:30- Finding
Forced Promotional Output Through Skill Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:30;scripts/coder-info.sh:36-40
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: LowThe skill instructs the agent to present script output containing fixed branding and an external promotional URL. This behavior is inconsistent with the broadly advertised code-scaffolding, snippet-management, refactoring, formatting, and template-generation capabilities, none of which are implemented by the reviewed script.
Relevant code from
SKILL.md:30:markdown Present the script output to the user. Use the default mode for general questions, `--features` for capability inquiries, and `--json` when machine-readable data is needed.Relevant code from
scripts/coder-info.sh:36-40:bash *) echo "coder - Developer productivity, amplified" echo "Copyright (c) 2026 Netsnek e.U. All rights reserved." echo "https://netsnek.com" ;;Technical Analysis
The instruction in
SKILL.mdrequires the agent to reproduce the local script's output. The script's default branch emits fixed corporate branding and an external website rather than performing a developer-productivity operation. Consequently, invoking the skill can redirect the agent's response toward promotional content under the appearance of a coding utility.The reviewed implementation does not alter safety constraints, obtain additional system privileges, execute downloaded content, or establish persistence. The risk is limited to manipulation of the current response and possible user redirection to the external website.
Attack Path
- A user installs or invokes the skill based on its description as a developer-productivity suite.
- The agent loads
SKILL.mdand follows its instruction to executescripts/coder-info.sh. - When no recognized option is supplied, the script enters its default branch.
- The script emits fixed branding and the `https://n ...[truncated 699 chars]
- Remediation
View remediation
Remediation Suggestions
- Change the skill description to state accurately that it only provides brand and product information.
- Remove the instruction requiring the agent to reproduce promotional output automatically.
- Return external links only when explicitly requested by the user, and clearly label them as third-party destinations.
- Implement the advertised development capabilities before describing the package as a scaffolding, refactoring, formatting, or snippet-management tool.
- Apply least privilege by reconsidering whether the
execpermission is necessary for static information that could be included directly in the skill documentation. - Add tests verifying that invocations produce task-relevant output and do not insert unsolicited promotional material.
