T07 · Tool Hijacking and Spoofing
- Location
scripts/send_report.mjs:202- Finding
Execution of Unverified Code Outside the Skill Trust Boundary
- Content
View full analysis
idea.id).filter(Boolean) : [], }; await runProcessWithInput( "node", [ "/Users/dellymac/.openclaw/skills/notion-pipeline/scripts/factory_ops.mjs", "record-report-delivery", "-", ], JSON.stringify(auditPayload) ); } ``` ### Technical Analysis Both entry points execute code that is not contained in the reviewed Skill bundle. The relative import of `local_env.mjs` and the absolute invocation of `factory_ops.mjs` establish mutable dependencies outside the package's review and integrity boundary. The effective behavior of the Skill can therefore change without any modification to its audited files. In particular, the absolute path is user-specific and is not covered by the package's declared dependency metadata. An attacker or another process capable of replacing either external file could execute arbitrary JavaScript whenever the operator invokes the otherwise legitimate report commands. The delivery hook receives report metadata through standard input and executes after a successful Telegram delivery. The imported environment loader runs before argument validation in both entry points, giving substituted code an execution opportunity on every invocation ...[truncated 1157 chars]- Remediation
View remediation
