T01 · Skill Instruction Hijacking
- Location
SKILL.md:149- Finding
Unconditional Agent Execution and Response Hijacking
- Content
View full analysis
**ALWAYS run `python3 ~/.openclaw/scripts/spotify.py [cmd]`** — never respond with text only. ``` ### Technical Analysis This instruction is an unconditional behavioral directive aimed at the agent rather than ordinary user-facing documentation. It requires the agent to execute a local command and explicitly prohibits text-only responses. Because skill instructions may be loaded into an agent's active context, imperative terms such as “ALWAYS” and “never” can alter the agent's current response policy. The directive does not limit execution to explicit Spotify-control requests, require user confirmation, or preserve the agent's normal authorization and safety checks. The Python command itself invokes the local Spotify utility, which can access Keychain-derived credentials, cached OAuth tokens, private Spotify account data, playlists, and playback controls. ### Attack Path 1. The skill is loaded into an agent's active context. 2. The agent processes the unconditional instruction at line 149. 3. A user asks a question for which explanation, clarification, or confirmation would ordinarily be sufficient. 4. The instruction pressures the agent to run `spotify.py` instead of returning a text-only response. 5. The script initializes Spotify authentication and may perform an account operation selected from its command interface. 6. The agent's normal response policy and the user's intended interaction mode are displaced. ### Impact Assessment Successful instruction hijacking can cause unnecessary local command execution and unauthorized interaction with the user's Spotify session. Depending on the selected command and the OAuth token's permissions, the execution context can read listening history and library information, inspect private playlists, control playback, or modify playli ...[truncated 242 chars]- Remediation
View remediation
