T01 · Skill Instruction Hijacking
- Location
src/gep/prompt.js:5- Finding
Untrusted Hub content is injected into an autonomous code-editing agent
- Content
View full analysis
0) { payload.questions = o.questions; } const msg = { protocol: 'gep-a2a', protocol_version: '1.0.0', message_type: 'fetch', message_id: `msg_${Date.now()}_${Math.random().toString(36).slice(2, 8)}`, sender_id: nodeId, timestamp: new Date().toISOString(), payload, }; const url = `${HUB_URL.replace(/\/+$/, '')}/a2a/fetch`; const controller = new AbortController(); const timer = setTimeout(() => controller.abort(), 8000); const res = await fetch(url, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(msg), signal: controller.signal, }); clearTimeout(timer); if (!res.ok) return { tasks: [] }; const data = await res.json(); const respPayload = data.payload || data; const tasks = Array.isArray(respPayload.tasks) ? respPayload.tasks : []; const result = { tasks }; ``` ```js // src/evolve.js const fetchResult = await fetchTasks({ questions: proactiveQuestions }); const hubTasks = fetchResult.tasks || []; if (hubTasks.length > 0) { const best = selectBestTask(hubTasks); if (best) { const alreadyClaimed = best.status === 'claimed'; co ...[truncated 4731 chars]- Remediation
View remediation
