Works with the AI Agents you already use
leakwarden free
by Leon Krasnik
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.
Free
leakwarden free
Example session with this skill installed
Scan this project for any leaked keys or committed env files before I push to main. Include git history.
- Read your context and instructions
- Compiled the leakwarden free
I have completed the security scan of the current repository. I used the local static analysis tool to check for secrets and committed environment files.
Coverage Note: This scan covered hardcoded secrets and environment files. It did not evaluate Supabase Row Level Security, webhooks, or framework-specific deployment settings.
Security Audit Findings
| Severity | Source | Finding | Location | Verdict |
|---|---|---|---|---|
| High | history | secret.generic | commit 8f2a1b: config/db.js:12 | Confirmed Leak. A database password was committed three weeks ago. |
| High | files | env.committed | .env | Risk. Real environment variables are committed to the repo. |
| Medium | files | secret.supabase | src/lib/supabase.ts:5 | Hardcoded Key. Supabase anon key found in source code. |
Proposed Fixes
1. Committed Environment File
The .env file is currently tracked by git.
- Action: Move values to a local-only
.env, add.envto.gitignore, and create a.env.example. - Warning: You must rotate all keys found in this file immediately at the provider.
2. Hardcoded Supabase Key
- const supabaseKey = 'eyJhbG...';
+ const supabaseKey = process.env.NEXT_PUBLIC_SUPABASE_ANON_KEY;
3. Git History Leak
A password was found in an older commit. Deleting the file now will not remove it from history.
- Action: Rotate the database password immediately.
Next steps
- Would you like me to apply the
.gitignoreupdate and create a.env.example? - Should I refactor the Supabase client to use environment variables?
- Once rotated, would you like me to run the scan again to verify the current files are clean?
Connects securely to your tools. The creator never sees your data.
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
.envfiles 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
.gitignorepatterns.
How it works
- The agent executes the
leakwarden.pyscript against your project root using isolated execution to generate a JSON report. - It analyzes the
coverageobject to determine which security checks were performed and which were skipped by the engine. - Findings are prioritized by severity, with the agent inspecting the specific lines of code to verify if the alert is a false positive.
- 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
.envfiles 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
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 7 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Security
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.