# Secret Leak Scan

> Statically scan directories and .asar archives for leaked API keys, tokens, and private keys before deployment.

Secret Leak Scan is a paid AI agent skill on Agensi by Nenad Zivotic, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Nenad Zivotic](https://www.agensi.io/creators/nenad-zivotic)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.1
- Last updated: 2026-10-20
- Security: scan passed (2026-10-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/secret-leak-scan
- Tags: security, node-js, electron, ci-cd, devops, secret-scanning, api-keys, credential-leak

## About this skill

Your build artifacts and repository history might contain plaintext credentials that lead to immediate account takeovers. This skill performs static analysis on project directories, build outputs, and Electron .asar archives to find leaked secrets before they are committed or released.

### What it does
- **Multi-format scanning** analyzes source code, minified build artifacts, and packed .asar bundles.
- **Credential detection** identifies AWS keys, GitHub PATs, Slack tokens, Stripe live keys, and Google API keys.
- **Private key auditing** flags exposed private key blocks often found in SSH or SSL configurations.
- **Safe reporting** generates JSON findings with masked fingerprints to prevent further exposure of raw values.
- **Triage assistance** maps findings to specific files and lines with clear rotation instructions.

### How it works
1. **Target selection** involves specifying the project root, a distribution folder like `dist/`, or a packaged app bundle.
2. **Analysis execution** runs the bundled Node.js script to perform pattern matching across the file tree.
3. **Report processing** parses the resulting JSON to count findings and categorize them by service type.
4. **Remediation delivery** produces a prioritized list of leaked credentials and rotation steps.

### Frameworks & tools
The scanner requires Node.js 18 or later. It uses `@electron/asar` for archive inspection and is compatible with any CI/CD environment that supports custom shell scripts and exit codes.

### Why this beats prompting it yourself
Generic prompts often miss secrets hidden in large minified files or binary archives. This skill uses a dedicated script for consistent pattern matching and provides a structured remediation workflow that treats every match as a high-priority security event.

### Use cases
- **Pre-commit checks** to prevent developers from pushing plaintext API keys to remote repositories.
- **Release auditing** to ensure production build folders don't contain sensitive config files.
- **Electron app hardening** by scanning packed .asar files for accidentally bundled environment variables.
- **Post-incident cleanup** by identifying which credentials were leaked and require immediate rotation.

### Known limitations
Static analysis cannot detect secrets split across lines or custom token formats. It does not check historical git commits unless the files currently exist in the working tree.

## Requires

- Node.js 18+
- Git
- Optional: @electron/asar

@electron/asar is only for scanning .asar files directly.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Secret Leak Scan skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific file formats and structures can this skill analyze?

The skill scans standard project directories, build output folders (like `dist/` or `build/`), and specifically supports Electron `.asar` archives to find secrets hidden within packaged applications.

### Which AI agents or environments are compatible with the secret leak scan?

While optimized for modern LLMs that can interpret JSON security reports, it requires a Node.js 18+ environment to execute the core scanning engine on your local machine or CI/CD runner.

### What is included in the skill package?

Upon purchase, you receive the scanning logic, the triage reporting module, and a pre-configured workflow that guides your AI agent through the detection and remediation process.

### Does this skill send my plaintext secrets to an AI provider for analysis?

No, the scanner generates a local JSON report with masked fingerprints, ensuring that your raw credentials are never sent to an external LLM or AI provider during the analysis phase.

### Can this skill detect leaked keys in my project's historical Git commits?

This skill performs static analysis on current files and build artifacts; it does not scan your entire Git history or deleted commits, which may require a dedicated repository forensic tool.

### Can I integrate this scan into my existing CI/CD pipeline?

The skill is designed as a standalone security module that can be integrated into pre-commit hooks or automated deployment pipelines to block releases if a leak is detected.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
