agentsclimarketplace

Secret scanner

Skill vibeeval/vibecosystem/skills/secret-scanner

Pre-push API key and credential scanner - blocks git push if secrets foundFrom its SKILL.md

Install
npx -y skills add vibeeval/vibecosystem --skill secret-scanner

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

2.3 KB, 665 tokens by cl100k_base, as published. Nobody here has run it

Secret Scanner

Scans your codebase for leaked API keys, tokens, and credentials. Blocks git push if secrets are found.

Usage

# Scan current directory
vibeco secrets

# Scan specific path
vibeco secrets /path/to/project

Detected Secrets (22 patterns)

ProviderPatternExample
OpenAIsk-proj-..., sk-...sk-proj-abc123...
Anthropicsk-ant-...sk-ant-api03-...
AWSAKIA...AKIAIOSFODNN7EXAMPLE
GitHubghp_..., gho_..., github_pat_...ghp_xxxxxxxxxxxx
Stripesk_live_..., pk_live_...sk_live_4eC39H...
GoogleAIza...AIzaSyDaGm...
Slackxoxb-..., xoxp-...xoxb-123-456-abc
SendGridSG....SG.xxx.yyy
npmnpm_...npm_xxxxxxxxxxxxx
PyPIpypi-...pypi-AgEIcHl...
Database URLspostgres://, mongodb://, mysql://, redis://With embedded passwords
Private KeysPRIVATE KEY-----PEM format

Auto-Setup: Git Pre-Push Hook

Add to your project's .git/hooks/pre-push:

#!/bin/bash
vibeco secrets "$(git rev-parse --show-toplevel)" || exit 1

Make it executable:

chmod +x .git/hooks/pre-push

Now every git push will scan for secrets first. If any are found, push is blocked.

How It Works

  1. Walks all source files (skips node_modules, dist, .git, lock files)
  2. Matches 22 regex patterns for known API key formats
  3. Skips comments and regex definition lines (avoids false positives)
  4. If secrets found: prints masked values, exits with code 1 (blocks push)
  5. If clean: prints success, exits with code 0

What to Do If Secrets Are Found

  1. Remove the secret from source code
  2. Move to .env file (add .env to .gitignore)
  3. Use environment variables: process.env.API_KEY
  4. If already pushed: rotate the credential immediately (it's compromised)

Scanned File Types

.ts .tsx .js .jsx .mjs .cjs .py .go .java .rb .php .rs .swift .kt .json .yml .yaml .toml .env .cfg .conf .ini .sh .bash .zsh .xml .properties .gradle

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.