commit-message
Abacus land.commit slot for Bitwarden. Compose one commit's subject and body for a change Abacus is about to land, following…
This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or needs to detect hardcoded credentials, review secret handling patterns, or
Claude Code
$ npx -y skills add bitwarden/ai-plugins --skill detecting-secrets --agent claude-code
Codex
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a codex -y
Cursor
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a cursor -y
Gemini CLI
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a gemini-cli -y
GitHub Copilot
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a github-copilot -y
OpenCode
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a opencode -y
Windsurf
$ npx skills add bitwarden/ai-plugins --skill detecting-secrets -a windsurf -y
name: detecting-secrets description: This skill should be used when the user asks to "find hardcoded secrets", "audit for credential leaks", "check for API keys in code", "review secret scanning alerts", "rotate a leaked secret", or needs to detect hardcoded credentials, review secret handling patterns, or remediate exposed secrets.
Look for these categories of hardcoded secrets in code:
| 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 |
Distinguish real secrets from false positives. Not every pattern match indicates an actual secret — consider context:
// NOT a real secret — test fixture with obvious fake value var testApiKey = "test-api-key-not-real-12345"; var mockPassword = "P@ssword123"; // Used only in unit tests // REAL secret — production-looking value in non-test code var apiKey = "sk-proj-abc123def456ghi789jkl012mno345pqr678stu901vwx";
**Decision criteria:**
// NOT a real secret — documented example
{
"apiKey": "YOUR_API_KEY_HERE"
}
// REAL secret — actual value in config
{
"apiKey": "sk-proj-abc123def456ghi789jkl012mno345pqr678stu901vwx"
}Search these locations when auditing for secrets:
| Location | What to Look For | | --------------------------------------------------- | ---------------------------------------------------------- | | `appsettings.json` / `appsettings.Development.json` | Connection strings, API keys, service credentials | | `.env` / `.env.local` | Environment variable definitions with real values | | `web.config` / `app.config` | Machine keys, connection strings | | `docker-compose.yml` / `Dockerfile` | `ENV` directives with credentials, build args with secrets | | CI/CD files (`.github/workflows/*.yml`) | Inline secrets instead of `${{ secrets.* }}` references | | Test seed scripts / migration files | Database passwords, service account credentials | | Comments and TODO notes | "Temporary" credentials left in comments | | Default parameter values | `function connect(password = "admin123")` | | Constants files | Centralized credential definitions |
# List all secret scanning alerts
gh api /repos/{owner}/{repo}/secret-scanning/alerts --jq '.[] | {number, state, secret_type, secret_type_display_name, created_at, push_protection_bypassed}'
# Get details for a specific alert
gh api /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}
# List alerts that bypassed push protection
gh api "/repos/{owner}/{repo}/secret-scanning/alerts?state=open" --jq '.[] | select(.push_protection_bypassed == true)'**Push protection** prevents commits containing detected secrets from being pushed. When someone bypasses push protection, the alert is flagged — review these with extra scrutiny.
When a secret is found in code, follow this sequence:
Assume any committed secret is compromised. Even if the repo is private, the secret may have been cached, logged, or accessed by CI/CD systems.
Replace the hardcoded secret with a secure reference:
// WRONG — hardcoded secret
var connectionString = "Server=prod.db;Password=s3cr3t!";
// CORRECT — environment variable
var connectionString = Environment.GetEnvironmentVariable("DB_CONNECTION_STRING");
// CORRECT — Azure Key Vault (Bitwarden's approach)
var connectionString = awaitA curated collection of plugins for AI-assisted development at Bitwarden. Enables discovery and distribution of quality-controlled plugins for use with Claude Code.
Abacus land.commit slot for Bitwarden. Compose one commit's subject and body for a change Abacus is about to land, following…
Abacus land.pr slot for Bitwarden. Compose one pull request's title, body and labels for a change Abacus is about to land,…
Abacus review slot (standard depth) for Bitwarden. Runs the bitwarden-code-review reviewer once on a bead's uncommitted change…
Check a design, change, pull request, plan, or threat model against Bitwarden's Architecture Decision Records (ADRs), or locate…
Use when the user provides a single Jira issue key and asks whether it is still relevant, still applicable, still pending, still…
File Jira work items that stand on their own, with real ticket titles, acceptance criteria in whatever field the target project…
Use for authorized security assessment of REST, GraphQL, WebSocket, or SOAP APIs, including discovery, authentication,…
Extract and decrypt Windows DPAPI-protected secrets (Credential Manager, browser logins/cookies, Wi-Fi credentials, KeePass keys)…
Clean and finalize authorized natural-language text intended for readers by auditing suspicious invisible Unicode and rewriting…