story-setup

Warn

Audited by Socket on Aug 26, 2026

2 alerts found:

Anomalyx2
AnomalyLOW
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%
AnomalyLOW
references/templates/settings-hooks.json

This fragment is not itself malicious code, but it is a powerful hook dispatcher that repeatedly executes multiple local bash scripts from a hidden project directory (".claude/hooks") based on workflow events. The security risk is primarily contingent on the integrity and provenance of the referenced scripts and the runtime value of "$CLAUDE_PROJECT_DIR". Inspect and verify all .claude/hooks/*.sh contents (and ensure $CLAUDE_PROJECT_DIR cannot be influenced by an attacker).

Confidence: 60%Severity: 60%
Audit Metadata
Analyzed At
Aug 26, 2026, 03:37 PM
Package URL
pkg:socket/skills-sh/zenstory-ai%2Foh-story-claudecode%2Fstory-setup%2F@b88d0acc739eadf3ff5f1ecfc7f788c46af674cc0a265c4b8015c2b22f208567
Security Audit — socket — story-setup