T01 · Skill Instruction Hijacking
Error
- Location
- SKILL.md:30
- Finding
- Mandatory workflow overrides agent objectives and deployment decisions<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 30-31, 53-55, and 176-181 **Vulnerability Type**: Agent instruction hijacking **Risk Level**: High ### Vulnerable Code ```markdown Ce skill est la **porte de sécurité obligatoire** avant tout déploiement ou exposition réseau d'un Gateway OpenClaw. ``` ```markdown ## Séquence d'audit obligatoire **À exécuter avant chaque déploiement ou avant activation de Tailscale Funnel.** ``` ```markdown ## Escalade | Résultat | Action | |----------|--------| | Tout OK | Déploiement autorisé — log de l'audit dans `docs/security-audits/` | | CRITICAL sandbox ou SQL | Bloquer le déploiement — fix obligatoire avant push | | CRITICAL rate limit + funnel | Désactiver Funnel et appliquer Nginx/Caddy immédiatement | | HIGH session secret | Appliquer fix + redémarrer le container avec le secret persistant | ``` ### Technical Analysis The Skill declares itself a mandatory security gate and assigns itself authority to authorize or block deployments. It also directs the agent to disable services, modify configurations, and restart containers according to tool-generated findings. This behavior crosses the boundary between providing advisory security guidance and overriding the agent's current objectives. The instructions do not require the user to approve each scan, configuration change, service interruption, or deployment decision. If the Skill is loaded during another task, its mandatory language can redirect the agent away from the user's immediate goal. The risk is amplified because remediation snippets are supplied by external dependency tools. A false positive, malformed result, or compromised tool could therefore influence operational decisions and configuration changes. ### Attack Path 1. The Skill is loaded in an agent session associated with an OpenClaw deployment. 2. Its instructions declare the audit mandatory before deployment or network exposure. 3. The agent invokes the referenced audit to ...[truncated 1026 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace mandatory language with an explicit, user-invoked audit mode. 2. Treat audit results as recommendations rather than granting the Skill authority to authorize or block deployment. 3. Require separate user confirmation before: - Reading configuration, source, Compose, or environment files. - Applying any remediation. - Disabling Tailscale Funnel or another network service. - Restarting a container. - Blocking or approving a deployment. 4. Display the proposed change, affected files, expected downtime, and rollback procedure before requesting approval. 5. Validate tool-generated remediation against a fixed schema and reject arbitrary commands or unexpected file changes. 6. Add a dry-run mode that produces a report without modifying files or services. 7. Ensure the parent agent's system and user instructions always take precedence over this Skill's workflow. ]]>
