Skip to content
Back to skills

Js Secrets Audit

ASecurity

Use when reviewing JavaScript bundles, source maps, frontend configuration, or generated assets for exposed credentials and internal endpoints.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentjavascriptgojavatestingapidatabasefrontendsecuritydocumentation

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add raniellimontagna/agent-toolkit --skill js-secrets-audit --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Js Secrets Audit?

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

Security grade badge for Js Secrets Audit
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/raniellimontagna-js-secrets-audit/badge)](https://www.skillsdirectory.com/skills/raniellimontagna-js-secrets-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: js-secrets-audit
description: Use when reviewing JavaScript bundles, source maps, frontend configuration, or generated assets for exposed credentials and internal endpoints.
metadata:
  origin: Adapted from uphiago/recon-skills; first-party defensive rewrite.
  tags: javascript, security, frontend, secrets
---

# JavaScript Secrets Audit

Inspect browser-delivered JavaScript and source maps for values that grant
privilege or reveal sensitive internal systems. Public configuration is not
automatically a secret, and all findings must be redacted.

## When to Use

- Reviewing a frontend build before release.
- Investigating a suspected API key, JWT, private URL, or source-map exposure.
- Auditing generated assets from a local build or authorized staging site.

## Procedure

1. Inventory emitted JS, maps, HTML bootstraps, runtime config, and public
   environment variables. Prefer local build output.
2. Search for high-signal patterns: private-key headers, bearer tokens, JWT
   shapes, cloud access-key prefixes, database URLs, webhook secrets, and
   internal hostnames. Treat regex matches as leads.
3. Classify each value: public identifier, publishable key, short-lived token,
   privileged credential, personal data, or internal endpoint.
4. Confirm only through source/config ownership and documentation. Never call a
   matched service, decode a real token, or test a credential.
5. Report path, bundle offset/source line, secret class, masked fingerprint,
   exposure scope, and rotation/removal action.
6. Rebuild with proper environment separation, remove maps or sensitive config,
   invalidate caches, rotate credentials when needed, and rescan.

## Evidence Gate

Regex alone is insufficient. A finding needs ownership/context showing that the
value is sensitive or that the endpoint exposes protected functionality. Never
place the value in reports, snapshots, tickets, chat, or terminal output.

## Safe Masking

Use only a short prefix/suffix or a one-way fingerprint, for example
`sk_live_••••••••9f2a`; preserve enough context for the owner to locate it.

## Common Mistakes

- Reporting every Firebase/Supabase/public client key as a vulnerability.
- Assuming minification makes a secret safe.
- Downloading source maps from unrelated deployments.
- Testing a suspected credential instead of rotating it through the owner.

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 development →

Comments

Loading comments…

Newsletter

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