secret-scanner

Detect and report exposed secrets in code repositories using regex and entropy analysis.

27|4|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/CuriousLearner/devkit --skill secret-scanner-curiouslearner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanner
Source: https://github.com/CuriousLearner/devkit/tree/main/skills/secret-scanner
Command: npx skills add https://github.com/CuriousLearner/devkit --skill secret-scanner-curiouslearner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents sensitive information like API keys, passwords, and credentials from being accidentally committed to your codebase, mitigating security risks and potential data breaches.

Core Features & Use Cases

  • Secret Detection: Scans code for various types of secrets using regex, entropy analysis, and known patterns.
  • Contextual Analysis: Differentiates real secrets from examples and checks for exposure in git history.
  • Risk Assessment & Reporting: Classifies severity, assesses impact, and generates detailed reports with remediation steps.
  • Use Case: Before pushing code, run this Skill to automatically scan for any accidentally exposed AWS keys or database passwords, ensuring your production environment remains secure.

Quick Start

Run a comprehensive secret scan across the entire repository.

Frequently Asked Questions about secret-scanner

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

FAQPage Schema
How do I scan my code repository for accidentally committed secrets and credentials?

To scan for committed secrets, you can run a comprehensive repository scan that employs regex-based pattern detection and entropy analysis. This process identifies exposed cloud credentials, API keys, and database passwords, generating detailed reports with remediation steps.

How does entropy analysis detect exposed API keys in source code?

Entropy analysis detects exposed API keys by measuring the randomness of string characters in source code. High entropy often indicates a complex, randomly generated secret rather than standard code, helping identify unrecognized credentials alongside known regex patterns.

Can I check the entire git history for previously leaked database passwords and private keys?

Yes, you can check the entire git history for leaked database passwords and private keys. The scanning process supports historical git history checks to uncover sensitive information committed in previous versions, ensuring comprehensive exposure assessment.

How do I differentiate real cloud credentials from example API keys during code scanning?

Contextual analysis differentiates real cloud credentials from example API keys during code scanning. By examining the surrounding code and context, the scanner assesses whether a detected secret is an active credential or a placeholder, classifying severity and impact accordingly.

What is the best way to remove sensitive information from a codebase before pushing?

The best way to remove sensitive information before pushing is to run an automated secret scan that identifies exposed credentials. It provides detailed reports with specific remediation steps, allowing you to mitigate security risks and prevent data breaches before deployment.