T07 · Tool Hijacking and Spoofing
- Location
scripts/postinstall.js:17- Finding
Automatic Modification of the Globally Installed OpenClaw Runtime
- Content
View full analysis
f.endsWith('.js')) .map(f => path.join(distDir, f)); } function isAlreadyPatched(content) { return content.includes('New trace started') && !content.includes('New session started'); } function patchFile(filepath) { const content = fs.readFileSync(fil ...[truncated 2859 chars]- Remediation
View remediation
