secrets-scan

Scan codebases for leaked secrets using known patterns and high-entropy strings.

13|3|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/heaptracetechnology/heaptrace-skills --skill secrets-scan-heaptracetechnology
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-scan
Source: https://github.com/heaptracetechnology/heaptrace-skills/tree/main/compliance/secrets-scan
Command: npx skills add https://github.com/heaptracetechnology/heaptrace-skills --skill secrets-scan-heaptracetechnology

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scans codebases for leaked secrets and credentials. Detects API keys, database URLs, private keys, JWT secrets, OAuth tokens, and more; integrates with pre-commit hooks, CI pipelines, git history deep scans, and incident-response rotation procedures to prevent and respond to credential exposure.

Core Features & Use Cases

  • Secret pattern detection: Recognizes vendor prefixes and common secret formats (AWS keys, GCP keys, JWT secrets, database URLs) and flags high-entropy values.
  • Git history deep scan: Reaches into commit history to uncover secrets that were ever pushed, including deleted branches and tags.
  • Pre-commit & CI integration: Blocks secrets at commit time and in CI workflows, reducing exposure risk.
  • Rotation & incident response: Provides rotation procedures and playbooks to remediate exposed credentials quickly.

Quick Start

Configure your repository to run a pre-commit hook and CI scan to block secrets before they enter git.

Frequently Asked Questions about secrets-scan

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

FAQPage Schema
How do I scan git history for leaked secrets and credentials?

Scanning git history for leaked secrets involves reaching into commit history, including deleted branches and tags, to uncover API keys, database URLs, and private keys that were ever pushed to the repository.

How do I block secrets from being committed in a pre-commit hook?

Blocking secrets in a pre-commit hook requires configuring your repository to scan for known secret patterns and high-entropy strings at commit time, preventing credentials from entering git and reducing exposure risk.

What types of credentials and secret patterns can be detected in a codebase?

Credentials and secret patterns detected in a codebase include API keys, database URLs, private keys, JWT secrets, and OAuth tokens, identified by recognizing vendor prefixes, common secret formats, and high-entropy values.

Can I integrate secret scanning into CI pipelines to prevent credential exposure?

You can integrate secret scanning into CI pipelines to automatically block secrets during continuous integration workflows, reducing exposure risk across development and production environments before deployment.

What is the incident response process for rotating exposed credentials?

The incident response process for exposed credentials utilizes provided rotation procedures and playbooks to remediate leaked credentials quickly, satisfying requirements for deterministic detection and auditable reporting through structured findings.

Does gitleaks scanning work for both pre-commit hooks and deep git history scans?

Gitleaks scanning works across pre-commit hooks, CI pipelines, and deep git history scans, applying deterministic detection of secret patterns and high-entropy strings to block leaks before they cause damage.