Security Review — Secret Leakage Auditor

Audit TypeScript packages for secret leakage via config, build artifacts, and type information.

Updated Mar 15, 2026
One-click install
npx skills add https://github.com/lachieh/babytalk --skill security-review-secret-leakage-auditor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Security Review — Secret Leakage Auditor
Source: https://github.com/lachieh/babytalk/tree/main/.claude/skills/security-review
Command: npx skills add https://github.com/lachieh/babytalk --skill security-review-secret-leakage-auditor

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audit a TypeScript package for secrets leakage to clients via misconfigured endpoints, build outputs, generated types, env var prefixes, and error messages, enabling teams to secure software supply chains.

Core Features & Use Cases

  • Inventory and map all potential leakage points across code, builds, and environment handling.
  • Validate that only public config keys are exposed and that error messages do not reveal sensitive data.
  • Provide remediation guidance and guardrails to prevent leakage during development and deployment.

Quick Start

Audit a TypeScript package to detect and remediate secret leaks in config endpoints, build outputs, env var prefixes, and error messages.

Frequently Asked Questions about Security Review — Secret Leakage Auditor

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

FAQPage Schema
How do I audit a TypeScript package for secret leakage in client bundles?

To audit a TypeScript package for secret leakage, you trace environment variable prefixes, error messages, and generated schemas to inventory all leakage points. This validates that only approved public keys are exposed.

What causes environment variables to leak into TypeScript build outputs?

Environment variables leak into TypeScript build outputs through misconfigured public config, generated schemas, and error messages. Leakage happens when env var prefixes bypass allowlists and secrets are included in client bundles.

How do I check if error messages expose sensitive config data in TypeScript?

You check error messages for sensitive config data by validating them against an approved public key allowlist. This ensures error responses and generated schemas do not reveal environment variables or secrets to clients.

Does this secret leakage audit work with any TypeScript config setup?

Yes, the secret leakage audit works with any TypeScript config setup by tracing environment variable prefixes, build artifacts, and endpoints to enforce allowlists. It validates that only approved public keys are exposed regardless of the specific configuration.

What is the best way to prevent secrets from reaching public config endpoints?

The best way to prevent secrets from reaching public config endpoints is to enforce allowlists and validate endpoint runtime behavior with guardrails. This ensures only approved public config keys are exposed while tracing all inventory to block secret leakage.

When should I use an automated secrets audit for TypeScript packages?

You should use an automated secrets audit for TypeScript packages when you need to secure software supply chains during development and deployment. It provides remediation guidance and guardrails to prevent leakage through misconfigured endpoints and build outputs.