Claude Code Security — Security skill for Claude Code
Progressive hardening framework covering agent config protection, hooks, runtime security, injection prevention, and supply chain controls.
How to install Claude Code Security
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open marc-shade/claude-code-security and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code Security does
Progressive security hardening for [Claude Code](https://claude.com/claude-code) installations. Protect your agent's configuration, hooks, and runtime from injection attacks, unauthorized modifications, and supply chain risks.
Alternatives in Security
- Trail Of Bits Claude-code-config — Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c 1.6k ★
- Harden — Run the harden skill to perform a systematic project hardening audit 1k ★
- MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
README
Claude Code Security
Progressive security hardening for [Claude Code](https://claude.com/claude-code) installations. Protect your agent's configuration, hooks, and runtime from injection attacks, unauthorized modifications, and supply chain risks.
Quickstart
git clone https://github.com/marc-shade/claude-code-security.git
cd claude-code-security
pip install -e .
bash setup.sh --tier 1
Architecture
+--------------------------+
| Claude Code CLI |
+-------+--------+---------+
| |
SessionStart | PreTool| PostTool
Hook | Hook | Hook
| | |
+-----------v--------v--------v-----------+
| Security Hook Layer |
| session_start.py | pre_tool_use.py |
| security_orchestrator.py |
| post_tool_use.py |
+----+------+------+------+------+---------+
| | | | |
+--------v--+ +-v------v-+ +--v---+ +v--------+
| File | | Security | |Audit | | Cluster |
| Integrity | | Gate | |Trail | | Auth |
| [Tier 1] | | [Tier 2] | |[T 3] | | [Tier 4]|
+-----------+ +----------+ +------+ +---------+
| HMAC-256 | | Injection| |HMAC | | HMAC |
| signing | | Policy | |chain | | Ed25519 |
| KeyVault | | Threat | |SQLite| | TLS/PKI |
| | | Circuit | |Watch | | RBAC |
+-----------+ +----------+ +------+ +---------+
Security Tiers
| Tier | Name | What You Get | Deps |
|---|---|---|---|
| 1 | Foundation | Key vault (AES-256-GCM) + token vault + file integrity signing (HMAC-SHA256), session-start verification | None |
| 2 | Active Defense | + Injection scanner, policy gate, circuit breaker, approval tokens, pre/post hooks | None |
...
Related Skills
AI Agent Audit
Read-only audit of a local developer machine for AI-agent-related security risks (Linux + macOS). Ten modules
Yakos
Multi-runtime agent framework (Claude Code, Codex, Antigravity) with hard/soft controls, audit-first hooks, an
Arcjet Py
Runtime security for AI apps and agents: prompt injection detection, tool-call authorization, sensitive-data r
Patronus Security CLI
Security scanner and runtime protection for AI coding agents. Detects prompt injection, secrets, PII, and unsa
Review Code Security
Tiered application security audit (T1 pre-commit, T2 feature complete, T3 sprint end) covering OWASP, secrets,
Claude Code Security Hooks
7 layers of defense against prompt injection in Claude Code. Security hooks, read guards, canary files, and se
Related Agents
Tux
Security hardening agent for auditing and fortifying MAGI's attack surface — the proxy layer, Electron securit
Security Currency
Application & supply-chain security currency expert. Checks pinned dependencies against advisory databases, au
GitHub Actions Engineer
GitHub Actions CI/CD engineer: reusable workflows and composite actions, supply-chain hardening, caching and m