sc-secrets

Detect hardcoded secrets, API keys, and credentials in source code.

7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/fatihkan/badi --skill sc-secrets-fatihkan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sc-secrets
Source: https://github.com/fatihkan/badi/tree/main/.claude/skills/security-check/sc-secrets
Command: npx skills add https://github.com/fatihkan/badi --skill sc-secrets-fatihkan

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hardcoded secrets in source code pose serious security risks. This skill detects API keys, credentials, and private keys embedded in repositories to prevent leakage and misuse.

Core Features & Use Cases

  • Pattern-based secret detection across languages and config files.
  • Entropy analysis and contextual checks to reduce false positives.
  • CI/CD integration and pre-commit scanning to catch secrets before merge.

Quick Start

Run the secret scanner on your repository to identify exposed keys.

Frequently Asked Questions about sc-secrets

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

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

Detect hardcoded secrets by applying regex pattern matching, entropy-based heuristics, and context-aware checks across multiple languages and config files to identify exposed API keys, tokens, and credentials.

How do I scan for exposed credentials during a code review?

Scan for exposed credentials during code reviews by running the secret scanner across your repository to surface embedded private keys and tokens before they are merged into the main branch.

How does entropy analysis reduce false positives in secret detection?

Entropy analysis reduces false positives in secret detection by measuring randomness in strings and applying context-aware checks to distinguish actual API keys from test values or environment reads.

Can I integrate secret detection into CI/CD pipelines?

You can integrate secret detection into CI/CD pipelines to perform automated code scanning, catching hardcoded credentials and preventing leaks before deployment.

What types of hardcoded credentials can be found during static analysis?

Static analysis can find hardcoded credentials like API keys, tokens, and private keys embedded in various file types and source code languages.