secret-scanner

Detect exposed secrets, API keys, credentials, and tokens in code.

23|2|Updated Dec 5, 2024
One-click install
npx skills add https://github.com/SovranBitcoin/Sovran --skill secret-scanner-sovranbitcoin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secret-scanner
Source: https://github.com/SovranBitcoin/Sovran/tree/main/.agents/skills/secret-scanner
Command: npx skills add https://github.com/SovranBitcoin/Sovran --skill secret-scanner-sovranbitcoin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Detects exposed secrets, API keys, credentials, and tokens in codebases before they are committed or shared.

Core Features & Use Cases

  • Real-time scanning before commits, on file saves, and during security checks.
  • Pattern-based detection for API keys, credentials, and secrets across multiple languages.
  • Alerts and remediation guidance to prevent data leaks.

Quick Start

Run secret-scanner on your repository to detect exposed secrets and receive actionable remediation guidance.

Frequently Asked Questions about secret-scanner

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

FAQPage Schema
How do I detect exposed API keys and secrets in my code before committing?

To detect exposed API keys and secrets before committing, scan file changes and commits using pattern-based detection rules. This process identifies credentials in env files, config files, and code comments, providing alerts and remediation guidance to prevent data leaks.

What is the best way to scan a git repository for hardcoded credentials and tokens?

The best way to scan a git repository for hardcoded credentials and tokens is to run a secret-scanner across file changes and security checks. It applies detection rules for common secret patterns across multiple languages to alert developers when secrets appear in code.

Can I check environment and config files for exposed secrets during development?

Yes, you can check environment and config files for exposed secrets during development. The scanner performs real-time checks on file saves and before commits, alerting you when secrets appear in env files, config files, or code comments.

Does secret scanning provide remediation guidance after finding exposed credentials?

Yes, secret scanning provides remediation guidance after finding exposed credentials. Once detection rules identify API keys, tokens, or secrets in your codebase, the scanner outputs actionable alerts and guidance to help developers prevent data leaks.

How does pattern-based secret detection work without exfiltrating sensitive code?

Pattern-based secret detection works by applying detection rules for common secret patterns locally across file changes and commits. It alerts developers when secrets appear in config or env files while implementing strict rules to avoid data exfiltration during security checks.