Secrets Validator

Detect and block exposed secrets in code and configuration files.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/cassao29/claude-secure-plugins --skill secrets-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Secrets Validator
Source: https://github.com/cassao29/claude-secure-plugins/tree/main/plugins/security/secrets-validator/skills/secrets-validator
Command: npx skills add https://github.com/cassao29/claude-secure-plugins --skill secrets-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Accidentally committing sensitive credentials (API keys, database passwords, private keys) to version control is a critical security risk. This Skill automatically detects and prevents such exposures, protecting your sensitive data and reputation.

Core Features & Use Cases

  • Comprehensive Secret Detection: Identifies high-severity secrets like AWS keys, GitHub tokens, private keys, and database URLs, as well as medium and low-severity patterns.
  • Pre-Write Blocking: Integrates as a pre-write hook to block commits or writes containing high-severity secrets, preventing leaks before they happen.
  • Best Practice Guidance: Provides clear recommendations for secure secret management, including environment variables, .env.example templates, and .gitignore configurations.
  • Use Case: Integrate this Skill into your development workflow to automatically scan all new or modified files for secrets. If an AWS secret key is detected in a file you're about to commit, the Skill will block the commit and guide you on how to properly manage the secret.

Quick Start

Scan the attached 'config.js' file for any exposed secrets and provide remediation advice.

Frequently Asked Questions about Secrets Validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent secrets and API keys from being committed to git?

Prevent secrets from being committed by integrating pre-write hooks that scan files for high-severity patterns like AWS keys, GitHub tokens, private keys, and database URLs before commits succeed. The Skill blocks commits containing exposed secrets and guides you toward secure alternatives like environment variables and .env templates.

What types of secrets can be detected in code and config files?

Detection covers AWS keys, GitHub tokens, private keys, database URLs, API keys, and other credentials across config, YAML, JSON, and environment files. The Skill classifies findings by severity—high, medium, and low—and applies regex-based patterns to identify diverse secret formats.

Can I scan existing code for exposed secrets in CI/CD workflows?

Yes, the Skill integrates across CI/CD, code reviews, and development workflows to scan all new or modified files for secrets. It provides structured remediation guidance and blocks high-severity findings automatically to prevent leaks before they propagate.

How should I manage secrets properly after detection?

Store secrets in environment variables, use .env.example templates as safe configuration blueprints, and configure .gitignore to prevent credential files from reaching version control. The Skill emits specific remediation recommendations for each detected secret.

What's the difference between high, medium, and low severity secrets?

High-severity findings like AWS keys and private keys trigger immediate blocking to prevent exposure. Medium and low-severity patterns receive guidance but allow conditional processing, enabling flexible workflows while protecting critical credentials.