Claude On A Leash — Security skill for Claude Code
Deterministic security guardrails for Claude Code.
How to install Claude On A Leash
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open adityaarakeri/claude-on-a-leash and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude On A Leash does
Deterministic security guardrails for Claude Code. Six hooks that hard-block RCE, credential exfiltration, SSRF, and prompt injection before they execute. Plus an MCP server for every other agent.
Alternatives in Security
- Free Code — The free build of Claude Code 8.1k ★
- Trail Of Bits Claude-code-config — Opinionated production defaults from a top security firm: sandboxing, permissions, hooks, skills, MCP server c 1.6k ★
- MCP Security Checklist (SlowMist) — Comprehensive checklist: input validation, rate limiting, RBAC, credential management, container hardening 819 ★
README
Claude on a Leash
Deterministic security guardrails that intercept Claude Code tool calls **before** they execute.
[](#install) [](#what-gets-installed) [](#mcp-server) [](LICENSE)
Claude Code can execute real actions in your repo. These hooks sit between Claude and your system, blocking dangerous commands, protecting secrets, and logging what happens. Six shell scripts. Zero trust.
Install
**Why not `curl | bash`?** One of these hooks *blocks* `curl | bash` patterns. We practice what we preach. Download the script, read it, then run it.
# Download
curl -fsSL https://raw.githubusercontent.com/adityaarakeri/claude-on-a-leash/main/install.sh \
-o /tmp/claude-hooks-install.sh
# Inspect (please do this)
cat /tmp/claude-hooks-install.sh
# Install into current project
bash /tmp/claude-hooks-install.sh
# OR: install globally for all repos
bash /tmp/claude-hooks-install.sh --global
Other options
bash install.sh --dry-run # preview what would be installed
bash install.sh --uninstall # remove leash hooks (project-local)
bash install.sh --uninstall --global # remove leash hooks (global install)
bash install.sh --no-color # plain output (for CI)
What gets installed
Claude Code
Six hooks wired via `.claude/settings.json`:
| Hook file | Event | Matcher | What it stops |
|---|---|---|---|
bash-safety-guard.sh |
PreToolUse |
Bash |
Destructive commands, RCE, exfiltration, reverse shells, privile |
Related Skills
Skill Lint
Security scanner for Claude Code / agent skills. Catches prompt injection, obfuscation, credential exfiltratio
Yakos
Multi-runtime agent framework (Claude Code, Codex, Antigravity) with hard/soft controls, audit-first hooks, an
Reviewgate
Fail-closed independent review loop for Claude Code and Codex. Native hooks, six reviewer paths (Codex, Gemini
Claude Warden
Security hooks and monitoring for Claude Code — quiet overrides, SSRF protection, MCP compression, OTEL tracin
Audit Hook Wiring
Validate ~/.claude/settings.json hooks block — event names, file existence, executability, matcher syntax; --f
Agent Security Hooks
Security hooks for AI coding assistants (Claude Code, Cursor, Gemini CLI) - block dangerous commands, protect
Related Agents
Laya Vetter
Security-vets a candidate plugin, skill or MCP server repo before installation (hooks, install scripts, creden
Threat Intel
PYA specialist spawned by the /pya orchestrator. Hunts for malicious code in an untrusted repository: backdoor
Rfe Scorer
Scores a single RFE issue against quality rubric. Restricted to Read and Write only to prevent prompt injectio