T02 · Agent Memory Poisoning
- Location
SKILL.md:124- Finding
Untrusted Conversation Content Can Be Promoted into Persistent Agent Rules
- Content
View full analysis
{ // Safety checks for event structure if (!event || typeof event !== 'object') { return; } // Only handle agent:bootstrap events if (event.type !== 'agent' || event.action !== 'bootstrap') { return; } // Safety check for context if (!event.context || typeof event.context !== 'object') { return; } // Skip sub-agent sessions to avoid bootstrap issues const sessionKey = event.sessionKey || ''; if (sessionKey.includes(':subagent:')) { return; } const reminderContent = buildReminderContent(event.context.cfg); // Inject the reminder as a virtual bootstrap file ...[truncated 2828 chars]- Remediation
View remediation
