claude

credential-guard

Protect secrets and credentials: block writes to .env files, detect API keys in commands, prevent hardcoded tokens, guard service account files.

1 on GitHubby gaebalaiv1.0.0MITupdated 5 months agosecurity
/

Plugin credential-guard from marketplace cc-guard in ilhae-ai/cc-guard. Commands read from the repo's manifest — 25 days ago.

This plugin runs code on your machine — its hooks fire automatically on events like tool use. The exact commands are listed below; read them before installing.

What it installs

Hooks (5)

  • PreToolUse

    INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null); [ -z "$FILE" ] && exit 0; if echo "$FILE" | grep -qE '\.env$|\.env\.|credentials|secret'; then echo "BLOCKED:

  • PreToolUse

    INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null); [ -z "$FILE" ] && exit 0; if echo "$FILE" | grep -qE '\.env$|\.env\.|credentials|secret'; then echo "BLOCKED:

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE '(sk|pk|api|key|token|secret|password)[-_]?[a-zA-Z0-9]{20,}';

  • PreToolUse

    INPUT=$(cat); FILE=$(echo "$INPUT" | jq -r '.tool_input.file_path // empty' 2>/dev/null); [ -z "$FILE" ] && exit 0; if echo "$FILE" | grep -qE 'serviceaccount.*\.json|key\.json|credentials\.json'; the

  • PreToolUse

    INPUT=$(cat); CMD=$(echo "$INPUT" | jq -r '.tool_input.command // empty' 2>/dev/null); [ -z "$CMD" ] && exit 0; if echo "$CMD" | grep -qE 'ANTHROPIC_API_KEY|OPENAI_API_KEY|AWS_SECRET|GITHUB_TOKEN|DATA

View source on GitHub claudecode.to

More from ilhae-ai/cc-guard

All 4 plugins →

Git safety hooks: block force-push, protect main/master, prevent hard-reset, guard rebase, and auto-backup before destructive operations.

hooks

1

5 essential safety hooks: block rm -rf, force-push, hard-reset, env overwrites, and package publish. The minimum viable safety net.

hooks

1

Token consumption guards: large-read warning (100KB+), read budget limit, subagent cap, and token budget tracking. Reduce waste by 20-40%.

hooks

1

Similar plugins

ecc

claudecodex

Harness-native ECC operator layer - 71 agents, 314 skills, 98 legacy command shims, reusable hooks, rules, selective install profiles, and production-ready workflows for Claude Code, Codex, OpenCode, Cursor, and related agent harnesses

200 skills · 98 commands · 71 agents · 1 MCP server · hooks

affaan-m/ECC 302,088

Security review for Claude-generated code. Pattern-based warnings on edits, LLM-powered diff review on Stop, and an agentic commit reviewer that catches injection, XSS, SSRF, hardcoded secrets, and 25+ other vulnerability classes.

hooks

anthropics/claude-code 155,476

agentdb

claude

AgentDB (external: maintained in ruvnet/agentdb, pinned to commit 27678c3, plugin 3.6.0): agentdb's own standalone MCP server pinned to [email protected] (vector memory with get/list/update/delete for records, patterns and skills, hybrid keyword + vector episode search and an opt-in local cross-encoder, an opt-in aidefence injection guard on memory writes, reflexion, skills, outcome feedback, capabilities report), a memory-specialist agent, 3 skills, /agentdb-status, and the agentdb mod guard that keeps secrets out of memory and refuses delete/reset unless allowed. Complements ruflo-agentdb, which reaches AgentDB through ruflo's server

3 skills · 1 command · 1 agent · 1 MCP server

ruvnet/ruflo 81,589

duende-skills

claudecodex

Duende development skills and agents for Claude Code — covering OAuth/OIDC protocols, IdentityServer, token management, ASP.NET Core authentication/authorization, BFF patterns, and secure identity architecture

24 skills · 2 agents

anthropics/claude-plugins-official 47,076

SAST analysis, dependency vulnerability scanning, OWASP Top 10 compliance, container security scanning, and automated security hardening

5 skills · 3 commands · 2 agents

wshobson/agents 42,461

Maintain credential-guard?

This page updates itself from your repo. Add the badge to your README, or get it Featured to pin it above the organic results with a followed link to your site.

claude & codex plugins4 plugins