secrets-detection-rules

Detect credentials, API keys, and private keys in source code.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/dengineproblem/agents-monorepo --skill secrets-detection-rules-dengineproblem
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-detection-rules
Source: https://github.com/dengineproblem/agents-monorepo/tree/main/.claude/skills/secrets-detection-rules
Command: npx skills add https://github.com/dengineproblem/agents-monorepo --skill secrets-detection-rules-dengineproblem

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps prevent accidental exposure of sensitive information like API keys, passwords, and private keys within your codebase by providing comprehensive detection rules and strategies.

Core Features & Use Cases

  • Extensive Rule Sets: Covers various types of secrets including AWS credentials, API keys (GitHub, Slack, Stripe, etc.), database credentials, and private keys.
  • Advanced Detection Techniques: Utilizes pattern matching, entropy analysis, and contextual validation to minimize false positives.
  • Use Case: Integrate this Skill into your CI/CD pipeline or pre-commit hooks to automatically scan code for secrets before they are committed or deployed, safeguarding your applications.

Quick Start

Use the secrets-detection-rules skill to generate a configuration file for scanning your codebase for AWS secrets.

Frequently Asked Questions about secrets-detection-rules

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

FAQPage Schema
How do I detect API keys and secrets in source code before committing?

You can detect API keys and secrets in source code by applying pattern matching, entropy analysis, and contextual validation. These techniques identify exposed AWS credentials and private keys while reducing false positives during automated scanning.

What is the best way to scan for AWS credentials in a CI/CD pipeline?

The best way to scan for AWS credentials in a CI/CD pipeline is integrating automated secret detection rules. This approach scans source code using pattern matching and entropy analysis to prevent sensitive credentials from being deployed.

How does entropy analysis work for finding private keys in source code?

Entropy analysis for finding private keys works by measuring the randomness of string characters in source code. High entropy strings are flagged as potential secrets, which are then validated contextually to minimize false positives.

Can I use pre-commit hooks to automatically scan code for secrets?

Yes, you can use pre-commit hooks to automatically scan code for secrets. Integrating detection rules into pre-commit hooks prevents sensitive credentials and API keys from being committed to the repository in the first place.

How do I reduce false positives when scanning source code for database credentials?

You can reduce false positives when scanning source code for database credentials by combining pattern matching with contextual validation. This strategy verifies the surrounding code context to distinguish actual secrets from non-sensitive strings.

Does secrets-detection-rules support scanning for GitHub and Slack API keys?

Yes, secrets-detection-rules supports scanning for GitHub and Slack API keys. It provides extensive rule sets covering various secret types including AWS credentials, Stripe API keys, database credentials, and private cryptographic keys.