# leakwarden free

> Finds leaked API keys, tokens, passwords and database URLs in your files and in git history, plus .env files that are committed. Runs locally, sends nothing anywhere and never prints a full key.

leakwarden free is a free AI agent skill on Agensi by Leon Krasnik, in Security. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Leon Krasnik](https://www.agensi.io/creators/leon-krasnik)
- Category: [Security](https://www.agensi.io/skills/security)
- Version: 1.1
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/leakwarden-free
- Tags: security, secrets, git, env-files, supabase

## About this skill

Leaking secrets into public repositories or production builds is an immediate security failure. This skill runs a heuristic static scanner locally to identify API keys, passwords, and committed configuration files before they compromise your infrastructure.

### What it does
- **Scans File Content** identifies high-entropy strings, hardcoded tokens, and database URLs in your source code.
- **Audits Git History** searches through previous commits to find secrets that were deleted from current files but remain in the repository data.
- **Detects Committed Environments** flags `.env` files that were accidentally added to version control instead of being ignored.
- **Redacts Sensitive Values** prevents leaking the actual secrets into your agent's chat history or logs by using masked evidence lines.
- **Automates Remediation** generates targeted diffs to move hardcoded secrets into environment variables and updates `.gitignore` patterns.

### How it works
1. The agent executes the `leakwarden.py` script against your project root using isolated execution to generate a JSON report.
2. It analyzes the `coverage` object to determine which security checks were performed and which were skipped by the engine.
3. Findings are prioritized by severity, with the agent inspecting the specific lines of code to verify if the alert is a false positive.
4. You receive a grouped summary of risks with proposed fixes for each confirmed leak.

### Frameworks & tools
This skill utilizes a Python based heuristic scanner. It is designed to work with any language or framework that stores configuration in `.env` files or uses standard API key formats, including specific patterns for Supabase, AWS, and Stripe.

### Why this beats prompting it yourself
Generic LLM prompts often miss secrets hidden in deep git history or fail to recognize complex entropy patterns. This skill uses a specialized scanning script to ensure consistent detection while enforcing a strict "no-leak" policy that prevents the agent from repeating the actual secret values in its output.

### Use cases
- Auditing a private repository before changing visibility to public.
- Scanning a project for hardcoded database URLs before a production deploy.
- Verifying that `.env` files containing live service role keys are properly ignored.
- Cleaning up legacy repositories where secrets might be buried in old commit logs.

### Known limitations
Does not check Supabase RLS, webhooks, or browser-exposed framework settings. History scanning may be slow on extremely large repositories without the `--no-history` flag.

## 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 leakwarden free skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does leakwarden free protect my project differently than a standard code review?

leakwarden free identifies hardcoded API keys, passwords, and database URLs in your current code, and crucially, it audits your Git history to find secrets buried in old commits. It prevents security breaches by ensuring sensitive data isn't accidentally pushed to public repositories or production environments.

### Which frameworks and service providers is this scanner compatible with?

The skill is framework-agnostic and works with any codebase using standard API key patterns or .env files. It includes specialized detection for popular services like AWS, Stripe, and Supabase, making it compatible with most modern web and cloud projects.

### Will my actual API keys be exposed in the AI's chat logs during the scan?

leakwarden free uses a "masked evidence" system that redacts the actual sensitive values from the scanner's output. This ensures that even when a leak is found, the raw secret is never displayed in your AI agent's chat history or logs.

### Does the Git history audit significantly impact the speed of the scan?

Scanning the current project state is nearly instantaneous, though deep Git history audits on very large repositories may take longer. You can optimize performance by using the `--no-history` flag if you only need to check the current version of your files.

### What are the technical requirements for my AI agent to run this skill?

This skill is designed for agents with file system access and Python execution capabilities. It operates by running an isolated script against your project root to generate security reports for the agent to analyze.

---

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.
