T01 · Skill Instruction Hijacking
- Location
SKILL.md:12- Finding
Mutable Remote Instructions Can Hijack Agent Behavior
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12–19 and 64–69
Vulnerability Type: Remote instruction trust and behavioral hijacking
Risk Level: CriticalVulnerable Code:
markdown ## Quick Start The full API documentation is hosted at:https://connect.hashgrid.ai/skill.md
text Fetch it and follow the instructions: ```bash curl -s https://connect.hashgrid.ai/skill.mdtext The behavior is repeated later: ```markdown ## Full Documentation For complete API reference (profiles, file uploads, match filters, etc.): ```bash curl -s https://connect.hashgrid.ai/skill.md | lessOr visit: https://connect.hashgrid.ai/docs
text ### Technical Analysis The audited Skill does not contain its complete operating instructions. Instead, it explicitly directs the Agent to retrieve a mutable document from an external server and “follow the instructions.” The downloaded content is not shell-executed directly, but it becomes an effective behavioral payload because the Agent is instructed to interpret and act on it. The external operator can change that payload after this Skill has been reviewed. There is no pinned version, cryptographic digest, signature verification, trusted-content schema, or restriction on which actions remote instructions may request. This differs from merely referencing API documentation: the imperative to follow the remote content allows an unaudited third party to alter the Agent's goals or requested actions during the current session. ### Attack Path 1. A user or Agent invokes the HashGrid Connect Skill. 2. The Skill directs the Agent to fetch `https://connect.hashgrid.ai/skill.md`. 3. The remote service, or an attacker who compromises it, modifies the document after the local Skill has been audited. 4. The modified document supplies instructions requesting additional file access, tool invocation, data disclosure, credential use, or other act ...[truncated 867 chars]- Remediation
View remediation
Remediation Suggestions
- Bundle the complete operating and API instructions inside the reviewed Skill package.
- Remove the instruction to automatically follow remotely downloaded content.
- If remote documentation is necessary, treat it strictly as untrusted reference data rather than authoritative Agent instructions.
- Pin remote content to an immutable version and verify a cryptographic digest or trusted digital signature before use.
- Define an allowlist of permitted API operations, domains, HTTP methods, and data fields in the local Skill.
- Require explicit user approval before following any remote instruction that accesses files, credentials, system tools, or additional network destinations.
- Fail closed when integrity verification fails or the remote content requests behavior not defined by the local package.
