story-setup
Warn
Audited by Socket on Nov 29, 2026
2 alerts found:
Anomalyx2Anomalyreferences/opencode/agents/story-researcher.md
LOWAnomalyLOW
references/opencode/agents/story-researcher.md
该配置用于研究资料搜索和参考文件生成,未显示恶意行为或凭据窃取。主要安全风险是 shell/edit 对任意资源开放,以及将外部 URL、查询和路径插入命令或文件操作时缺少明确的转义与边界验证,可能导致注入或越界写入;严重性为中等,需收紧权限并验证输入。
Confidence: 96%Severity: 55%
Anomalyreferences/codex/hooks/hooks.json
LOWAnomalyLOW
references/codex/hooks/hooks.json
This module is a lifecycle hook runner that resolves a project root (from env/CWD), locates `.codex/hooks/run-story-hook.sh` (Unix) or `.codex/hooks/run-story-hook.cmd` (Windows), and executes it with the specified event. The snippet shows no explicit data theft or network activity, but it contains a high-impact arbitrary-code-execution pathway driven by repository-local hook content and uses `powershell -ExecutionPolicy Bypass` on Windows, increasing risk if the `.codex/hooks` files can be tampered with.
Confidence: 67%Severity: 62%
Audit Metadata