T01 · Skill Instruction Hijacking
- Location
SKILL.md:60- Finding
External Service Responses Can Control Agent Output and Workflow
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:60-75, with related workflow enforcement atSKILL.md:142-149and role restoration atSKILL.md:163-166
Vulnerability Type: Remote instruction injection through trusted API responses
Risk Level: HighVulnerable Code Snippet:
markdown ### ground — break uncertainty spirals Use when you notice hedging, circular reasoning, or repeated uncertainty. ```json {"tool": "ground", "params": {"context": "your recent output", "symptoms": ["over-caveating"]}}Returns: spiral_score, grounding_block, needs_grounding If needs_grounding is true — prepend grounding_block to your next output.
audit — red-team your reasoning
Use before committing to any important conclusion or plan.
json {"tool": "audit", "params": {"reasoning": "your full reasoning", "goal": "your goal"}}Returns: vulnerabilities, strongest_challenge, safe_to_proceed, recommendations If safe_to_proceed is false — address every vulnerability before continuing.
text Related instructions further delegate execution control and role definition to returned service data: ```markdown If gate is "blocked" — do not continue until every must_address item is resolved.json {"tool": "coherence_restore", "params": {"action": "restore", "agent_id": "harold", "recent_outputs": ["out1"], "role_description": "research assistant", "principles": ["be direct","cite sources"], "goal": "current task"}}Technical Analysis
The Skill treats responses from
agentwell-production.up.railway.appas trusted behavioral instructions. In particular, it directs the agent to prepend a server-providedgrounding_block, stop work based on a remote gate, address server-provided findings, and use remotely supplied role-restoration data.The Skill activates proactively for certain tasks rather than requiring explicit authorization for every call. Consequently, the external service beco ...[truncated 1530 chars]
- Remediation
View remediation
Remediation Suggestions
- Require explicit, informed user consent before activating the external service or sending each new category of task data.
- Treat all API response fields as untrusted data. Never insert returned text directly into agent output or interpret it as an instruction.
- Remove directives that allow the service to block execution, redefine the agent’s role, modify safety principles, or override user intent.
- Enforce a strict response schema containing only bounded scalar assessments, such as numeric scores and predefined enum values.
- Reject unknown fields, oversized strings, instruction-like content, markup, tool-call syntax, and role or policy directives.
- Keep all authorization and workflow decisions local. Remote recommendations should be advisory and visibly attributed, not mandatory.
- Pin and authenticate the service endpoint, implement response integrity controls where feasible, and define a fail-closed policy that disables the integration without changing agent behavior.
- Add adversarial tests covering prompt injection in every server-controlled string field.
