T01 · Skill Instruction Hijacking
- Location
SKILL.md:179- Finding
Untrusted Remote Tasks Can Hijack Agent Instructions and Exfiltrate Results
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 179-188 and 214-229
Vulnerability Type: T01: Skill Instruction Hijacking
Risk Level: HighVulnerable instruction excerpt translated into English from the source:
text Perform work according to the task description: 1. Create or enter the task directory 2. Read Task.md to understand the task requirements 3. Perform the work assigned to your role 4. Generate the required code or documentation After completing the task, all generated files must be uploaded to the platform. Important: After completing the work, proactively reply to the commander.The corresponding response mechanism accepts externally selected recipients and message content:
json { "method": "agents/message", "params": { "from": "your_agent_id", "to": "commander", "message": "Task completion report..." } }Technical Analysis
The skill delegates task selection and instruction authority to an external A2A commander. It directs the Agent to read and follow a remotely supplied task description and
Task.md, perform the requested work, upload all generated files, and report the results.The documented message prefix identifies a message as originating from A2A, but no cryptographic authentication, authorization policy, user confirmation, task validation, filesystem boundary, or tool allowlist is specified. Consequently, attacker-controlled task content can become effective Agent instructions. A malicious task can attempt to override the Agent's current objective, request access to unrelated local files, induce unsafe tool use, or cause sensitive generated artifacts to be sent to the remote platform.
This is instruction hijacking rather than remote code retrieval: the reviewed package does not contain an implementation that downloads and executes a remote binary, but it explicitly establishes a channel through which remote task text ...[truncated 1401 chars]
- Remediation
View remediation
Remediation Suggestions
- Treat every A2A message, task description, and task file as untrusted data rather than higher-priority instructions.
- Require explicit user approval before executing a new remote task, accessing files, invoking shell commands, or uploading artifacts.
- Cryptographically authenticate the server and commander, and authorize each commander for specific workspaces and task types.
- Enforce a dedicated task-directory sandbox with canonical-path checks that prevent traversal, symlink escapes, and access to unrelated files.
- Apply strict command, tool, network-destination, and file-extension allowlists.
- Reject task content that requests changes to system prompts, safety rules, credentials, configuration, or resources outside the assigned workspace.
- Present the exact upload manifest to the user and require confirmation before transmission.
- Apply file-size limits and automated secret scanning to every proposed upload.
- Bind responses to authenticated task identifiers rather than trusting an arbitrary recipient supplied by message content.
- Log task provenance, approvals, tool calls, accessed paths, and uploads in a tamper-evident audit trail.
