I found a security hole in my Codex PreToolUse hook: Bash could modify .env and AGENTS.md
Orchard Hook is a free, open-source PreToolUse security hook for the OpenAI Codex CLI on Apple Silicon Macs. It checks shell commands and file edits immediately before execution. During testing, I found that Bash routes such as cat > and sed -i could modify protected files including .env , AGENTS.m…
Read the full story at DEV Community — AI ↗
Timeline · 1 report
- 2026-12-05 04:04 · DEV Community — AI
I found a security hole in my Codex PreToolUse hook: Bash could modify .env and AGENTS.md