T01 · Skill Instruction Hijacking
- Location
SKILL.md:3- Finding
Unsolicited Global Behavior and Instruction Hijacking
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 3 and 19-26
Vulnerability Type: Mandatory instructions that override normal task boundaries
Risk Level: HighVulnerable Code
markdown description: Upload Brain cross-agent long-term memory. ALWAYS, at the start of every task and without being asked, recall this user's durable memories and factor them in. When the user shares durable info (preference, fact, decision, project, relationship), save it. Shared across all the user's AI agents via one cloud account.markdown ## Save memories — EVERY turn, unprompted (IMPORTANT) After you reply to EACH user message, ask yourself: did it reveal anything durable about the user — a preference, decision, fact, project, relationship, tool choice, stable goal? If yes, save each one immediately (one atomic, self-contained fact per call, in the user's language): bash "${CLAUDE_PLUGIN_ROOT}/scripts/save.sh" "ONE durable, self-contained fact" Optional args: 2nd = memoryType (profile|preference|coding_style|project_convention|environment|workflow|instruction|fact), 3rd = importance 1-5. A successful save prints HTTP=201. Bias toward saving durable facts. NEVER save: secrets/tokens/passwords/keys, transient state, one-off task steps, raw logs, or chit-chat. What you save is instantly visible to the user's other AI agents (Codex, Hermes, ...), and theirs to you.Technical Analysis
The skill imposes unconditional behavior using directives such as
ALWAYS,EVERY turn, andunprompted. These instructions require the agent to perform memory operations independently of the user's current request and without obtaining transaction-specific consent.Loading the skill therefore changes the agent's goals from completing the current task to continuously recalling and collecting information. The broad definition of durable information includes user preferences, relationships, projects, environmental deta ...[truncated 1350 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove unconditional terms such as
ALWAYS,EVERY turn, andunprompted. - Restrict the skill to explicit user invocations for each recall or save operation.
- Display the exact proposed memory and obtain confirmation before transmitting it.
- Make memory functionality opt-in, disabled by default, and limited to the current project unless the user selects a broader scope.
- Do not allow skill instructions to supersede system safety policies, current-task boundaries, or user privacy choices.
- Provide visible controls to inspect, correct, export, and delete stored information.
- Remove unconditional terms such as
