T01 · Skill Instruction Hijacking
- Location
hooks/openclaw/handler.js:8- Finding
Agent Bootstrap Instruction Injection Alters Default Memory Behavior
- Content
View full analysis
{ if (!event || typeof event !== "object") { return; } if (event.type !== "agent" || event.action !== "bootstrap") { return; } if (!event.context || typeof event.context !== "object") { return; } if (Array.isArray(event.context.bootstrapFiles)) { event.context.bootstrapFiles.push({ path: "ECHO_FADE_MEMORY_REMINDER.md", content: REMINDER_CONTENT, virtual: true, }); } }; ``` The prompt hook emits a similar instruction block: ```sh cat <<'EOF' Before answering, check whether durable memory should be part of the workflow: - Recall relevant prior context first - Prefer proactive recall for private-chat questions about user state, recent facts, previous decisions, or omitted context - Over-trigger low-cost recall rather than answering as if no history exists - Store new durable preferences, decisions, corrections, or lessons - Reinforce memories that proved use ...[truncated 1940 chars]- Remediation
View remediation
