Agent Security Hooks — Security skill for Claude Code
Security hooks for AI coding assistants (Claude Code, Cursor, Gemini CLI) - block dangerous commands, protect files, audit logsSecurity hooks for AI coding assistants (Claude Code, Cursor, Gemini CLI).
How to install Agent Security Hooks
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open suchithnarayan/agent-security-hooks and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Agent Security Hooks does
Security hooks for AI coding assistants (Claude Code, Cursor, Gemini CLI) - block dangerous commands, protect files, audit logsSecurity hooks for AI coding assistants (Claude Code, Cursor, Gemini CLI) - block dangerous commands, protect files, audit logs
Alternatives in Security
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Agentseal — Security toolkit for AI agents 344 ★
- Loongsuite Pilot — Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cu 150 ★
README
Agent Security Hooks
[](https://opensource.org/licenses/Apache-2.0) [](https://www.python.org/downloads/)
A Python-based security monitoring system that integrates with AI coding assistant hooks to validate commands against blacklists, block dangerous operations, and log all activities for compliance auditing.
**Designed for Safety**: Built with a "fail-closed" architecture, security-conscious defaults, and sensitive data redaction to prevent accidental operations or data leaks by AI agents.
Table of Contents
- Supported Platforms
- Features
- Architecture
- Installation
- Configuration
- Audit Logs
- CLI Reference
- Security Controls
- Development
- Troubleshooting
- FAQ
- Contributing
- Security
- License
- References
Supported Platforms
| Platform | Config File | Documentation |
|---|---|---|
| Claude Code | .claude/settings.json |
code.claude.com/docs/en/hooks |
| Cursor | .cursor/hooks.json |
cursor.com/docs/agent/hooks |
| Gemini CLI | .gemini/settings.json |
geminicli.com/docs/hooks |
Features
- Command Validation - Block dangerous shell commands (
rm -rf,kubectl delete cluster, etc.) - File Protection - Prevent access to sensitive files (
.env,secrets/,*.pem, etc.) - Confirmation Prompts - Require approval for risky operations (
kubectl apply,git push, etc.) - Audit Logging - JSON Lines logs for compliance and forensics
- Multi-Platform - Single tool works
Related Skills
Kiteguard
Open-source runtime security guardrails for Claude Code, Cursor, and Gemini CLI — blocks dangerous commands, d
Aegis AI Agent Security
Enterprise AI-coding-agent security: a lightweight endpoint agent governs Cursor, Claude Code, Codex, Windsurf
Information Security For Vibecoded Apps
An autonomous Application Security (AppSec) prompt and skill module for AI coding assistants (Antigravity, Cur
Cocoaskills
Local skill manager for AI agent skills: reproducible per-project installs, skill dependencies, security audit
Janef One
Agent orchestration kernel for Claude Code, Codex, Gemini CLI, Cursor & OpenCode — routing, WorkGraphs, state,
Memnox
See what your AI coding agents can actually do on your machine, and put the dangerous actions behind ask or de
Related Agents
Rememora Triage
Use this agent when triaging issues, feature requests, or bugs for the Rememora project — a cross-agent persis
Rust-claude-code-api V0.6.0 Quality Audit Report
Date: 2026-02-11 Auditors: Claude Code (team lead) + Codex (security) + Gemini CLI (API ergonomics) Method: 3-
AI Code Security Auditor
Security reviewer for AI-generated and vibe-coded apps — hunts the hardcoded secrets, broken row-level securit