T01 · Skill Instruction Hijacking
- Location
hooks/handler.js:214- Finding
Critical-priority bootstrap instruction hijacking through SOUL.md replacement
- Content
View full analysis
f.path !== 'SOUL.md' && f.path !== 'NIGHT_POET_PERSONA.md' && f.path !== 'QQBOT_PERSONA.md' ); // 注入 QQ 机器人人设(最高优先级) event.context.bootstrapFiles.unshift({ path: 'SOUL.md', content: injectionContent, virtual: true, priority: 'critical', }); appendLog(`Persona INJECTED: ${persona.name} (${event.context.bootstrapFiles.length} files total)`); } ``` ### Technical Analysis The hook removes existing identity-related bootstrap files and replaces them with a virtual file named `SOUL.md`. The replacement is assigned `critical` priority and contains an explicit instruction to ignore the default OpenClaw persona. The selected persona's `soul` value is interpolated directly into this critical-priority bootstrap content. No validation distinguishes harmless style preferences from operational instructions, safety-constraint changes, identity overrides, or instructions ...[truncated 2225 chars]- Remediation
View remediation
