Back to Skills

scanning-for-secrets

jeremylongshore
Updated Today
20 views
712
74
712
View on GitHub
Developmentapi

About

This skill scans codebases for exposed secrets like API keys and credentials using pattern matching and entropy analysis. It's designed for security audits or pre-commit checks to identify hardcoded secrets. Developers can trigger it to get a report detailing findings and remediation steps.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/jeremylongshore/claude-code-plugins-plus
Git CloneAlternative
git clone https://github.com/jeremylongshore/claude-code-plugins-plus.git ~/.claude/skills/scanning-for-secrets

Copy and paste this command in Claude Code to install this skill

Documentation

Overview

This skill enables Claude to scan your codebase for exposed secrets, API keys, passwords, and other sensitive credentials. It helps you identify and remediate potential security vulnerabilities before they are committed or deployed.

How It Works

  1. Initiate Scan: Claude activates the secret-scanner plugin.
  2. Codebase Analysis: The plugin scans the codebase using pattern matching and entropy analysis.
  3. Report Generation: A detailed report is generated, highlighting identified secrets, their locations, and suggested remediation steps.

When to Use This Skill

This skill activates when you need to:

  • Scan your codebase for exposed API keys (e.g., AWS, Google, Azure).
  • Check for hardcoded passwords in configuration files.
  • Identify potential private keys (SSH, PGP) accidentally committed to the repository.
  • Proactively find secrets before committing changes.

Examples

Example 1: Identifying Exposed AWS Keys

User request: "Scan for AWS keys in the codebase"

The skill will:

  1. Activate the secret-scanner plugin.
  2. Scan the codebase for patterns matching AWS Access Keys (AKIA[0-9A-Z]{16}).
  3. Generate a report listing any found keys, their file locations, and remediation steps (e.g., revoking the key).

Example 2: Checking for Hardcoded Passwords

User request: "Check for exposed credentials in config files"

The skill will:

  1. Activate the secret-scanner plugin.
  2. Scan configuration files (e.g., database.yml, .env) for password patterns.
  3. Generate a report detailing any found passwords and suggesting the use of environment variables.

Best Practices

  • Regular Scanning: Schedule regular scans to catch newly introduced secrets.
  • Pre-Commit Hooks: Integrate the secret-scanner into your pre-commit hooks to prevent committing secrets.
  • Review Entropy Analysis: Carefully review results from entropy analysis, as they may indicate potential secrets not caught by pattern matching.

Integration

This skill can be integrated with other security tools, such as vulnerability scanners, to provide a comprehensive security assessment of your codebase. It can also be combined with notification plugins to alert you when new secrets are detected.

Prerequisites

  • Access to codebase and configuration files in {baseDir}/
  • Security scanning tools installed as needed
  • Understanding of security standards and best practices
  • Permissions for security analysis operations

Instructions

  1. Identify security scan scope and targets
  2. Configure scanning parameters and thresholds
  3. Execute security analysis systematically
  4. Analyze findings for vulnerabilities and compliance gaps
  5. Prioritize issues by severity and impact
  6. Generate detailed security report with remediation steps

Output

  • Security scan results with vulnerability details
  • Compliance status reports by standard
  • Prioritized list of security issues by severity
  • Remediation recommendations with code examples
  • Executive summary for stakeholders

Error Handling

If security scanning fails:

  • Verify tool installation and configuration
  • Check file and directory permissions
  • Validate scan target paths
  • Review tool-specific error messages
  • Ensure network access for dependency checks

Resources

  • Security standard documentation (OWASP, CWE, CVE)
  • Compliance framework guidelines (GDPR, HIPAA, PCI-DSS)
  • Security scanning tool documentation
  • Vulnerability remediation best practices

GitHub Repository

jeremylongshore/claude-code-plugins-plus
Path: plugins/security/secret-scanner/skills/secret-scanner
aiautomationclaude-codedevopsmarketplacemcp

Related Skills

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill

huggingface-accelerate

Development

HuggingFace Accelerate provides the simplest API for adding distributed training to PyTorch scripts with just 4 lines of code. It offers a unified interface for multiple distributed training frameworks like DeepSpeed, FSDP, and DDP while handling automatic device placement and mixed precision. This makes it ideal for developers who want to quickly scale their PyTorch training across multiple GPUs or nodes without complex configuration.

View skill

nestjs

Meta

This skill provides NestJS development standards and architectural patterns for building domain-centric applications. It covers modular design, dependency injection, decorator patterns, and key framework features like controllers, services, middleware, and interceptors. Use it when developing NestJS applications, implementing APIs, configuring microservices, or integrating with databases.

View skill