secrets-detector

Detect hardcoded secrets and API keys in source code repositories.

29|7|Updated Oct 13, 2025
One-click install
npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill secrets-detector
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-detector
Source: https://github.com/armanzeroeight/fastagent-plugins/tree/main/plugins/security-toolkit/skills/secrets-detector
Command: npx skills add https://github.com/armanzeroeight/fastagent-plugins --skill secrets-detector

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill prevents sensitive information like API keys, passwords, and credentials from being accidentally exposed in your codebase, safeguarding against security breaches.

Core Features & Use Cases

  • Detect Hardcoded Secrets: Scans source code for common patterns of exposed credentials.
  • Scan Git History: Identifies secrets that may have been committed in the past.
  • Prevention Strategies: Provides guidance on using pre-commit hooks and environment variables to avoid future leaks.
  • Use Case: Before committing a new feature, run this Skill to ensure no API keys or database passwords were inadvertently included in the code.

Quick Start

Scan the current directory for hardcoded secrets using gitleaks.

Frequently Asked Questions about secrets-detector

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

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

To detect hardcoded API keys and credentials in source code, you can use scanning tools like gitleaks and detect-secrets, or apply manual grep patterns to identify exposed sensitive information across your repository.

Can I scan my git history for secrets that were committed in the past?

Yes, you can scan git history for secrets committed in the past. Scanning tools like gitleaks analyze historical commits to identify and report exposed credentials, addressing vulnerabilities from previously leaked sensitive information.

What is the best way to prevent accidentally committing passwords and secrets to a repository?

The best way to prevent accidentally committing passwords and secrets is to use pre-commit hooks and environment variables. These strategies ensure sensitive information is blocked from entering the codebase during local development.

Does gitleaks support scanning for specific types of exposed credentials?

Yes, gitleaks supports scanning for specific types of exposed credentials. Alongside automated comprehensive scanning, you can utilize manual grep patterns to target and identify specific secret types within source code repositories.

Why do I need to scan for hardcoded secrets before pushing a new feature?

You need to scan for hardcoded secrets before pushing a new feature to prevent sensitive information like database passwords from being accidentally exposed, which safeguards your project against security breaches and ensures compliance.

Are there limitations to using automated secret detection tools for code scanning?

Automated code scanning tools for secret detection may miss non-standard or obfuscated credentials, requiring manual grep patterns as a supplement to ensure comprehensive identification of all exposed sensitive information in source code.