secrets-audit

Detect leaked credentials in repositories, Git history, and build artifacts.

345|47|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/briiirussell/cybersecurity-skills --skill secrets-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: secrets-audit
Source: https://github.com/briiirussell/cybersecurity-skills/tree/main/skills/secrets-audit
Command: npx skills add https://github.com/briiirussell/cybersecurity-skills --skill secrets-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Secrets-audit helps you detect leaked credentials and then assess why your organization’s secrets-management practices allowed those exposures, so you can both remediate and prevent recurrence.

Core Features & Use Cases

  • Leaked secret discovery across code and history: Scans source files, Git history, and build-related locations for common provider key patterns and other high-confidence secret indicators.
  • Verification and triage workflow: Prioritizes findings by checking whether credentials are live, understanding exposure window and blast radius, and recommending safe rotation steps.
  • Secrets-management posture audit: Reviews where secrets live (source, env, artifacts, managers), IAM scoping, rotation cadence, logging/auditability, and cross-environment isolation.

Quick Start

Run the secrets-audit to scan a repository for leaked API keys and generate a secrets-exposure report with verification, posture findings, and prioritized recommendations.

Frequently Asked Questions about secrets-audit

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

FAQPage Schema
How do I scan Git history for leaked credentials and API keys?

Scanning Git history for leaked credentials involves checking source files, commit diffs, and build artifacts for provider key patterns. This process identifies exposed secrets, verifies if they are live with minimal API calls, and triages the blast radius to prioritize safe rotation steps.

What is included in a secrets-management posture audit?

A secrets-management posture audit reviews where secrets live, such as source, env, artifacts, or cloud managers. It evaluates IAM scoping, rotation cadence, logging and auditability, and cross-environment isolation to assess why exposures occurred and prevent future credential leakage.

How do I verify if a leaked secret found in a repository is still active?

To verify if a leaked secret is active, safe verification techniques use minimal API calls to check if the credential is live. This triage workflow prioritizes findings by exposure window and blast radius before recommending safe rotation and remediation steps.

Can I assess AWS secrets manager rotation policies during a credential leakage audit?

Yes, assessing AWS secrets manager rotation policies is a core part of the posture audit. It evaluates storage tiers, IAM scoping, rotation cadence, and logging to ensure cloud and workload identity alternatives prevent future exposures from occurring.

What is the best way to remediate credential leakage in build artifacts?

Remediating credential leakage in build artifacts requires detecting high-confidence secret indicators, verifying if credentials are live, and triaging the exposure window. A posture checklist then assesses storage and IAM scoping to stop repeats and secure the pipeline.