Skills
Trail of Bits Open-Sources Claude Code Security Config: PreToolUse Hooks as Guardrails, Security-First CLAUDE.md Template with Hard Limits
Trail of Bits released their internal Claude Code configuration covering sandboxing, permissions, hooks, skills, and MCP servers hardened for security audits. Key pattern: use PreToolUse hooks to block dangerous patterns (rm -rf, sensitive file edits) as structured guardrails that intercept tool calls — not permission prompts. Includes CLAUDE.md template with function length limits, complexity caps, and language-specific toolchains for Python, Node/TS, Rust, and Bash.
Source
↳ Follow the thread