debate-review
Warn
Audited by Socket on Oct 9, 2026
1 alert found:
AnomalyAnomalyscripts/lib/dispatch.mjs
LOWAnomalyLOW
scripts/lib/dispatch.mjs
No direct malicious payload is visible in this fragment; however, it performs dynamic discovery and execution of locally found delegate scripts (including via an environment-controlled directory) and reads untrusted JSON results produced by that executed code. The primary risk is supply-chain/local-plugin execution: if an attacker can influence DELEGATE_SKILLS_DIR or the searched skill directories or replace relay.mjs/config.mjs, arbitrary code execution is achievable. Additional issues are mainly robustness/trust-boundary related (brittle JSON extraction; probe execution via --help; limited validation of plugin selection beyond path existence).
Confidence: 66%Severity: 60%
Audit Metadata