detecting-secrets

Installation
SKILL.md

Secret Patterns

Look for these categories of hardcoded secrets in code:

High-Confidence Patterns

Type Example Patterns
API Keys AKIA[0-9A-Z]{16} (AWS), AIza[0-9A-Za-z_-]{35} (Google), strings assigned to variables named *apiKey*, *api_key*
Connection Strings Server=...;Password=..., mongodb://user:pass@host, postgres://user:pass@host
Private Keys -----BEGIN RSA PRIVATE KEY-----, -----BEGIN OPENSSH PRIVATE KEY-----
Tokens ghp_[A-Za-z0-9]{36} (GitHub PAT), xoxb- (Slack bot), sk- (OpenAI)
Passwords Values assigned to variables named *password*, *passwd*, *secret*, *credential*
Certificates PFX/P12 files with embedded passwords, PEM files with private keys

Lower-Confidence Patterns (Require Context)

  • Base64-encoded strings in configuration (may be encrypted or may be cleartext secrets)
  • JWT tokens (may be test tokens or production tokens)
Related skills

More from bitwarden/ai-plugins

Installs
33
GitHub Stars
100
First Seen
Mar 19, 2026