adityaarakeri

Claude On A Leash — Security skill for Claude Code

Security community

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

README

Claude on a Leash

Deterministic security guardrails that intercept Claude Code tool calls **before** they execute.

[![Install](https://img.shields.io/badge/install-one--liner-blue?style=flat-square)](#install) [![Hooks](https://img.shields.io/badge/hooks-6-green?style=flat-square)](#what-gets-installed) [![MCP](https://img.shields.io/badge/MCP-server-purple?style=flat-square)](#mcp-server) [![License](https://img.shields.io/badge/license-MIT-grey?style=flat-square)](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