secret-detection

Detect hardcoded API keys, tokens, and passwords in source code and git history.

42|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/drvoss/everything-copilot-cli --skill secret-detection-drvoss
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-detection
Source: https://github.com/drvoss/everything-copilot-cli/tree/main/skills/security/secret-detection
Command: npx skills add https://github.com/drvoss/everything-copilot-cli --skill secret-detection-drvoss

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Hardcoded API keys, tokens, passwords, and other credentials often slip into source files or git history, creating severe security vulnerabilities.

Core Features & Use Cases

  • Scans source code across multiple languages for common secret patterns.
  • Checks committed files and .gitignore configurations for sensitive file types.
  • Reviews git history to uncover previously removed secrets.
  • Provides step‑by‑step remediation guidance, including rotation, environment variable migration, and .gitignore updates.
  • Generates pre‑commit hook examples to prevent future leaks.

Quick Start

Run the secret-detection skill to scan the repository and receive a report of any hard‑coded credentials.

Frequently Asked Questions about secret-detection

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

FAQPage Schema
How do I scan git history for hardcoded secrets and API keys?

To scan git history for hardcoded secrets, the secret-detection skill reviews committed files and historical logs to uncover previously removed credentials. It then provides step-by-step remediation guidance including credential rotation and environment variable migration.

How do I set up a pre-commit hook to prevent credential scanning failures?

To set up a pre-commit hook for credential scanning, this skill generates pre-commit hook examples that automatically check source files for hardcoded API keys and tokens, preventing future secret leaks before they enter the repository.

What is the best way to find hardcoded passwords in source code before an open-source release?

The best way to find hardcoded passwords before an open-source release is to run a comprehensive security audit using the secret-detection skill, which scans source code across multiple languages for common secret patterns and sensitive file types.

Can I use secret detection for environment variable migration from compromised credentials?

Yes, you can use the secret detection skill for environment variable migration. It detects compromised credentials in codebases and provides explicit remediation guidance to rotate secrets, update .gitignore files, and migrate hardcoded values to environment variables.

Does the secret detection skill require access to repository files and git logs?

Yes, the secret detection skill requires access to repository files and git logs to effectively scan source code and review commit history for hardcoded secrets, tokens, and passwords that may have been leaked previously.