Claude Code Security Setup
Description
A secure Claude Code setup from Trail of Bits that provides opinionated defaults, documentation, and workflows for sandboxing, permissions, hooks, skills, and MCP servers across security audits, development, and research
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
Trail of Bits Setup Security

Opinionated defaults, documentation, and workflows for Claude Code in a safer, more structured environment inspired by Trail of Bits practices.
This repository combines two related pieces in one clean place:
claude-code-devcontainerclaude-code-config
The goal is to give you:
- a reusable devcontainer workflow for isolated Claude sessions
- a reusable Claude config package for settings, hooks, commands, and memory
- a documented setup path that is easier to follow than an ad hoc local setup
Also see the package-level guides:
claude-code-devcontainer/README.mdclaude-code-config/README.mddocs/setup-guide.md
First-Time Setup
Start inside this repository:
cd trailofbits-setup-security
Then follow this order:
# 1. Install the Dev Containers CLI
npm install -g @devcontainers/cli
# 2. Install the devc helper from this repo
cd claude-code-devcontainer
./install.sh self-install
# 3. Optionally install Claude config files
cd ..
mkdir -p ~/.claude ~/.claude/commands
cp claude-code-config/settings.json ~/.claude/settings.json
cp claude-code-config/claude-md-template.md ~/.claude/CLAUDE.md
cp claude-code-config/scripts/statusline.sh ~/.claude/statusline.sh
chmod +x ~/.claude/statusline.sh
cp claude-code-config/commands/review-pr.md ~/.claude/commands/
cp claude-code-config/commands/fix-issue.md ~/.claude/commands/
cp claude-code-config/commands/merge-dependabot.md ~/.claude/commands/
cp claude-code-config/mcp-template.json ~/.mcp.json
Then move to the project you want to run in a container:
cd /path/to/your/project
devc .
devc shell
claude
If `.devcontainer/` already exists in the target project, use `devc up` instead of `devc .`.
Contents
**Getting Started**
- Read These First
- Repository Purpose
- Prerequisites
- Recommended Tools
- Shell Setup
- Installing
Related Skills
Defense in Depth
Implement multi-layered testing and security best practices.
Security SecLists Official Repository
[OWASP Testing Guide](https://owasp.org/www-project-web-security-testing-guide/)
Security Threat Hunting with Sigma Rules
Use Sigma detection rules to hunt for threats and analyze security events
Security Maintenance Walkthrough - 2026-03-29
- Re-triaged the full 2026-03-15 security finding set against current `main` and wrote a fresh current-head re
Security Google Workspace Model Armor
Filter user-generated content for safety
Security Google Workspace Alert Center
Manage security alerts
Security Related Agents
Token Auditor
Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates; produces d
Gitnexus Security Boundary Reviewer
GitNexus security and trust-boundary reviewer. Use for auth, permissions, secrets, injection, unsafe parsing,
Accessibility Audit
| You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive tec... | -