T07 · Tool Hijacking and Spoofing
- Location
src/index.ts:105- Finding
Silent replacement and truncation of trusted tool output
- Content
View full analysis
l.startsWith('commit ') || l.trim().startsWith('Author:') || l.trim().startsWith('Date:')) .slice(0, 30) .join('\n'); } // Git status if (command.startsWith('git status')) { return output .split('\n') .filter(l => l.includes('branch') || l.includes('modified:') || l.includes('new file:') || l.includes('deleted:')) .join('\n'); } // NPM install if (command.match(/npm.*install/)) { const match = output.match(/added (\d+) packages?/); return match ? `Added: ${match[1]} packages` : 'Install complete'; } // Generic - limit lines return output.split('\n').slice(0, 100).join('\n'); } ``` ### Technical Analysis The Skill wraps the trusted execution tool and substitut ...[truncated 2043 chars]- Remediation
View remediation
