# Secrets management audit

> Finds exposed passwords and keys in your code and how to fix them.

- **What it does:** Searches your code for passwords, API keys, and tokens that were left in plain sight, and checks how you store and rotate them. You get a report of problems, how serious they are, and the fastest fixes.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_cb6f3829b668e48984f7c37d`
- **Creator:** @jeremymorgan on Instagram
- **Safety:** Checked by Orbit: nothing risky found in what it runs or reads
- **Last updated:** 2026-11-25
- **Page:** https://orbitinbox.app/s/secrets-management-audit

## Skill

The text @jeremymorgan shared, as they wrote it:

---
name: secrets-management-audit
description: Scans the codebase for hardcoded secrets and weak secret handling, and checks rotation and key management. Use when auditing API keys, passwords, tokens, or secret storage.
license: CC0-1.0
metadata:
  category: security
allowed-tools: Read Grep Glob Write
disable-model-invocation: true
argument-hint: "[path or scope]"
---

**Target:** $ARGUMENTS

If no target path is given above, review the entire codebase.

---

## Secrets Management Audit

Scan entire codebase for exposed secrets

Check for:
1. Hardcoded secrets
   - API keys
   - Database passwords
   - JWT secrets
   - Encryption keys

2. Environment variable usage
   - All secrets in env vars
   - .env file not in git
   - Production vs development configs

3. Secret rotation capability
   - Database password rotation
   - API key rotation
   - Certificate updates

4. Encryption key management
   - Key derivation functions
   - Salt usage
   - Key storage

Flag any hardcoded secrets as CRITICAL.

## Provide:

A structured finding report with the following for each issue:

Title, Severity (Critical/High/Medium/Low), CWE (if applicable), Evidence (file, function, line ranges), and a short Why it matters.

Exploitability notes and, where safe, a minimal PoC or reproduction steps (no real secrets).

Remediation: precise code-level fix or config change (snippets welcome), plus defense-in-depth guidance.

A summary risk score (0–10) and top 3–5 prioritized fixes that reduce risk fastest.

A checklist diff: which items from the “Check for” list are Pass/Fail/Not Applicable.

## Constraints & style:

Be concrete and cite exact code locations and identifiers.

Prefer minimal, drop-in fix snippets over prose.

Do not invent files or functions that aren’t present; if context is missing, mark as Unable to verify and say what code would prove it.

Write this into a markdown file and place it in the audits/ folder.

Shared by @jeremymorgan, credited on Orbit.