agentleFS
metacircu1armetacircu1ar/hive_skills/skills/audit/audit-secrets-and-config/SKILL.md

audit-secrets-and-config

Skill4 starsChanged 2 months agoMITView on GitHub

Audit secrets, environment configuration, frontend bundles, startup validation, and webhook signature verification. Use when reviewing code for hardcoded API keys, exposed credentials, missing required environment variable checks, silent production misconfiguration, or forgeable webhook endpoints.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for committed secrets:

    line 12
  2. Distinctive:

    Verify signature validation exists for providers such as Stripe, RevenueCat, GitHub, Apple, Google, Slack, and payment processors.

    line 24
  3. Distinctive:

    Verify the raw request body is used when the provider requires it.

    line 25
  4. Distinctive:

    Verify timestamp tolerance, replay protection where supported, and failure logging without leaking secrets.

    line 26
  5. Very specific:

    Search for likely secret names and values with terms such as api_key, apikey, secret, token, password, passwd, private_key, client_secret, …

    line 30
  6. Distinctive:

    Use secret-scanning tools when available, but manually review hits because allowlisted test keys and public publishable keys are common.

    line 32

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Audit Secrets And Config

Find credentials and configuration paths that can leak, fail silently, or allow forged external events.

Workflow

  1. Search for committed secrets:
    • API keys, private keys, tokens, passwords, DSNs, OAuth client secrets, signing secrets, webhook secrets, database URLs, cloud credentials, and service account files.
    • Include frontend source, mobile source, server code, tests, config examples, docs, generated bundles, deployment files, CI config, and scripts.
  2. Distinguish public identifiers from secrets:
    • Public client IDs and publishable keys can be allowed when the provider documents them as public.
    • Secret values in client or mobile bundles are always findings.
    • Redact secret values in reports; show only enough prefix/context to identify the file.
  3. Inspect startup config validation:
    • Required env vars should be validated at boot with clear failures.
    • Production-only requirements should not silently fall back to development defaults.
    • Config parsing should validate type, enum values, URLs, and numeric ranges.
  4. Inspect webhook endpoints:
    • Verify signature validation exists for providers such as Stripe, RevenueCat, GitHub, Apple, Google, Slack, and payment processors.
    • Verify the raw request body is used when the provider requires it.
    • Verify timestamp tolerance, replay protection where supported, and failure logging without leaking secrets.

Useful Searches

Search for likely secret names and values with terms such as api_key, apikey, secret, token, password, passwd, private_key, client_secret, webhook, signing, DATABASE_URL, AWS_, GCP_, GOOGLE_, STRIPE_, REVENUECAT_, SENTRY_, and BEGIN PRIVATE KEY.

Use secret-scanning tools when available, but manually review hits because allowlisted test keys and public publishable keys are common.

Output

Report three sections:

  1. Exposed or hardcoded secrets.
  2. Missing or weak env var validation.
  3. Webhook signature verification gaps.

For each finding include file and line, secret type or config key, risk, remediation, and whether rotation is required. When a real secret appears committed, recommend immediate revocation/rotation and history cleanup without printing the full value.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.