Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By wombat9000v1.0.0In 1 marketplace
Blocks access to sensitive dotfiles and configuration files containing credentials
Run automatically on Claude Code events. Claude doesn't decide.
1 caution to review before installing
A hook runs when Claude uses the Bash tool
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Blocks Claude Code access to sensitive dotfiles and configuration files that may contain credentials, API keys, and other secrets.
The Block Dotfiles plugin automatically prevents Claude Code from reading or executing commands that access sensitive configuration files commonly containing credentials. This provides an additional security layer to protect secrets stored in dotfiles like .env, .bashrc, .ssh/, and credential configuration files.
/plugin install block-dotfiles@wombat9000-marketplace
By default, the following sensitive files and directories are blocked:
.bashrc - Bash shell configuration (may contain API keys/tokens).zshrc - Zsh shell configuration (may contain API keys/tokens).bash_profile - Bash login configuration.zsh_profile - Zsh login configuration.profile - Generic shell profile.env - Environment variables (commonly contains secrets).env.local - Local environment overrides.env.production - Production environment variables.env.development - Development environment variables.env.staging - Staging environment variables.env.test - Test environment variables.ssh/ - SSH keys and configuration.aws/ - AWS credentials and configuration.npmrc - NPM authentication tokens.pypirc - PyPI credentials.gitconfig - Git configuration (may contain credentials).netrc - Network credentials for FTP, HTTP.dockercfg - Docker credentials (legacy format).docker/ - Docker credentials directory.kube/ - Kubernetes configuration.config/gcloud/ - Google Cloud credentialsThe plugin uses a SessionStart hook for proactive security warnings and four PreToolUse validation hooks that run before tool execution:
Provides upfront security context to Claude:
Validates bash command executions
Validates file read operations
Validates file pattern matching operations
Validates content search operations
When Claude attempts to access a blocked file, the validation hook will:
Read operation:
Read: .env
Blocked with: Blocked: Access to sensitive file '.env' is not allowed for security reasons.
Bash command:
cat .bashrc
Blocked with: Blocked: Command references sensitive file '.bashrc' which is not allowed for security reasons.
Glob pattern:
**/.env*
Blocked with: Blocked: Glob pattern '**/.env*' targets sensitive file '.env' which is not allowed for security reasons.
Grep search:
Grep: pattern="API_KEY", path=".env"
Blocked with: Blocked: Grep path '.env' contains sensitive file '.env' which is not allowed for security reasons.
The plugin only blocks access to sensitive dotfiles. Normal project files work as expected:
# These operations are allowed
cat src/config.js
grep "import" src/
**/*.js
environment/settings.json
To add more files to the block list, edit the SENSITIVE_FILES array in all validation scripts:
scripts/bash-validate.sh, scripts/read-validate.sh, scripts/glob-validate.sh, and scripts/grep-validate.sh:
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub wombat9000/claude-plugins --plugin block-dotfilesPlugins from other owners that cover similar ground