Skip to content
Back to skills

Security Secret Audit

BSecurity

Audits repository files, diffs, and configuration for hardcoded secrets, private keys, API credentials, and indirect prompt injection vulnerabilities.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 21, 2026
securityrustgoawsgitapisecurity

Works with

  • api

Security analysis

B75/100
  • criticalReads or references SSH private keys

Pro shows the line behind each finding and how to fix it

Scanned November 21, 2026

npx -y skills add sun-flat-yamada/dotfiles --skill security-secret-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Secret Audit?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Security Secret Audit
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/sun-flat-yamada-security-secret-audit/badge)](https://www.skillsdirectory.com/skills/sun-flat-yamada-security-secret-audit)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "security-secret-audit"
description: "Audits repository files, diffs, and configuration for hardcoded secrets, private keys, API credentials, and indirect prompt injection vulnerabilities."
category: "skill"
status: "active"
alwaysApply: false
globs:
  - "**/*"
tags:
  - "skill"
  - "security"
  - "secret-audit"
  - "compliance"
  - "vulnerability"
---
# Skill: Security & Secret Audit (`security-secret-audit`)

## Instructions
1. **File Type Screening**:
   - Verify that no private keys (`.pem`, `.key`, `id_rsa`), certificates (`.crt`), or environment files (`.env`) are being tracked in git index.
2. **Entropy & Pattern Matching**:
   - Search staged and modified content for high-entropy strings and common token regexes:
     - GitHub Tokens: `ghp_[A-Za-z0-9_]{36}`
     - AWS Keys: `AKIA[0-9A-Z]{16}`
     - Generic API Keys: `(?i)(api[_-]?key|secret|password|bearer)[ \t]*[=:][ \t]*['\"][A-Za-z0-9_\-\.]{16,}['\"]`
3. **Indirect Prompt Injection Check**:
   - Inspect issue templates and external prompt inputs to ensure proper boundary tags (`<untrusted_content>`) are utilized.
4. **Remediation**:
   - Immediately unstage any detected secret file (`git rm --cached <file>`).
   - If a secret was committed to history, guide maintainers on using `git filter-repo` and revoking the compromised credential immediately.

## Best Practices
- Never output real discovered secret values in log messages; mask them (e.g. `ghp_****`).
- Local git hooks (`.githooks/pre-commit`) must always be kept active.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.