Claude Code hook
Agent Security
Hooks for Claude Code and Cursor for secrets scanning
Install
/plugin marketplace add mintmcp/agent-securityFound in the project README. Check it for setup steps after installing.
git clone https://github.com/mintmcp/agent-security.gitFrom the README
Security plugins for Claude Code and Cursor This repository currently provides a secrets scanner plugin. Motivation Coding agents are powerful, but we've repeatedly seen them read and propagate sensitive data during everyday work. That can be acceptable for casual "vibe coding" experiments, but it's not acceptable for production software engineering. We built this to make accidental leakage much harder: a standalone, local-first scanner with minimal footprint (no external dependencies, regex-only), running as editor/agent hooks entirely on your machine, and easy to set up so teams can adopt it without friction. Install Claude Code Plugin Marketplace Install via the Claude Code plugin marketplace: PyPI (manual hooks) Add hooks to ~/.claude/settings.json if using PyPI: Cursor Copy examples/configs/cursor-hooks.json to ~/.cursor/hooks.json or configure similarly: Repository Layout Notes - Pre hooks block when secrets are detected. Post hooks print warnings. - No external dependencies. The scanner uses only Python's built-in regexes and simple pattern matching. - Runs completely locally. No code, prompts, or files leave your system. - Curious how it works? See plugins/secrets_scanner/hooks/secrets_scanner_hook.py for the core implementation and patterns. - No telemetry by default. For org-wide visibility and governance (dashboards, metrics, alerting), see https://mintmcp.com. License Apache License 2.0. See LICENSE. Acknowledgements Regex patterns were informed by or adapted from detect-secrets (Apache 2.0).
How hooks work
- Hooks are shell commands Claude Code runs at fixed points: before or after a tool call, when you submit a prompt, when Claude stops, on notifications and at session start.
- They are set in the hooks section of ~/.claude/settings.json (or .claude/settings.json for a project), or come bundled in a plugin.
- A hook can block a tool call, add context, or run a formatter or test. Read the scripts before you install them: they run on your machine with your permissions.
Details
- Repository
- mintmcp/agent-security
- Type
- Hooks
- Website
- mintmcp.com
- Language
- Python
- License
- Apache-2.0
- Last updated
- 21 October 2025
- Topics
- claudecodecursorhookspluginssecretsecurity
FAQ
What is Agent Security?
Hooks for Claude Code and Cursor for secrets scanning It is a hook for Claude Code, from mintmcp/agent-security on GitHub.
How do I install Agent Security?
Run /plugin marketplace add mintmcp/agent-security inside Claude Code, then follow the setup in the README.
Is Agent Security popular?
mintmcp/agent-security has 78 GitHub stars and 4 forks. It was last updated on 21 October 2025.
More hooks
Claude Code Plugin Template
68ivan-magda/claude-code-plugin-template
GitHub template for creating Claude Code plugin marketplaces. Includes plugin scaffolding, validation commands, hooks, skills, agents, and CI/CD workflows. Ready-to-use toolkit for teams distributing Claude Code plugins.
Claude Plugins
71hrconsultnj/claude-plugins
Claude Code plugin — code quality hooks, knowledge graph, impact-aware reviews, decomposition enforcement. Babysitter for your AI's code quality.
Claude Code Setup
64tomascortereal/claude-code-setup
My full Claude Code configuration — agents, skills, hooks, plugins, and global instructions
Claude Code Japanese Guard
75minorun365/claude-code-japanese-guard
Claude Code の応答が英語に切り替わったら、日本語で書き直させる Stop hook
Claude Code Message Timestamps
77zoharbabin/claude-code-message-timestamps
Show local time on every Claude Code message, and let Claude know when each prompt was sent. Zero-config plugin, cross-OS, graceful degradation.
Gggodlin CC Harness
73GGGODLIN/gggodlin-cc-harness
Governance layer of a personal Claude Code harness: gates, hooks, review and spec-to-ticket workflow. Reference, not a turnkey install.
Browse the most popular Claude Code mods, all hooks, or the skills and MCP server directories.