secrets-detection-rules

Detect sensitive credentials, API keys, and tokens in source code.

19|5|Updated Nov 23, 2025
One-click install
npx skills add https://github.com/Nir-Bhay/markups --skill secrets-detection-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-detection-rules
Source: https://github.com/Nir-Bhay/markups/tree/main/.agents/skills/secrets-detection-rules
Command: npx skills add https://github.com/Nir-Bhay/markups --skill secrets-detection-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers and security professionals identify and prevent sensitive information like API keys, tokens, and credentials from being exposed in source code.

Core Features & Use Cases

  • Comprehensive Rule Sets: Includes predefined rules for AWS, GitHub, Stripe, Twilio, and more.
  • Entropy Analysis: Detects potential secrets based on string randomness.
  • False Positive Reduction: Offers whitelisting and path exclusion mechanisms.
  • CI/CD Integration: Provides examples for GitHub Actions and pre-commit hooks.
  • Use Case: Integrate this Skill into your CI pipeline to automatically scan code for exposed API keys before they are merged into the main branch.

Quick Start

Use the secrets-detection-rules skill to generate a configuration file for detecting 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 exposed API keys and credentials in source code?

Detect exposed API keys by applying regex pattern matching and entropy analysis to identify sensitive credentials within source code. This approach uses predefined rule sets for providers like AWS and GitHub to catch hardcoded secrets.

What is entropy analysis for secrets detection and when should I use it?

Entropy analysis detects potential secrets by measuring string randomness, catching unknown credentials that static regex rules miss. Use it when scanning source code for unstructured or dynamically generated API keys and tokens.

How do I scan for secrets in a GitHub Actions CI/CD pipeline?

Scan for secrets in a CI/CD pipeline by integrating detection rules into GitHub Actions and pre-commit hooks. This automatically checks source code for exposed credentials before changes merge into the main branch.

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

Reduce false positives during secrets detection by applying whitelisting and path exclusion mechanisms. Configuring these rules ensures the scanner ignores known safe strings and specific directories during CI/CD integration.

Does secrets detection work with pre-commit hooks?

Yes, secrets detection works with pre-commit hooks to evaluate source code locally before commits are made. This CI/CD integration prevents sensitive API keys and tokens from ever entering the remote repository.