Back to browse
Kasbah Guard – Free browser extension that catches secrets on GenAI

Kasbah Guard – Free browser extension that catches secrets on GenAI

by AdnaneA·Mar 4, 2026·1 point·0 comments

AI Analysis

●●●BangerSolve My ProblemWizardry

ML-based secret detection stops real leaks before ChatGPT sees them; better accuracy than regex tools.

Strengths
  • Naive Bayes classifier with entropy, bigram, and context features beats regex-based detection (Snyk catches ~30 types; Kasbah catches 50+)
  • 100% local processing with zero server calls is genuine privacy win and enables sub-10ms latency
  • Covers rare formats (government IDs in 9 languages, prompt injection) most tools ignore; 91% accuracy with test suite
Weaknesses
  • Browser extension scope limits effectiveness to direct pastes; can't intercept API calls from terminal or IDE
  • Depends on user vigilance to honor blocks; skilled users can bypass
Category
Target Audience

Developers and teams using GenAI tools (ChatGPT, Claude) who risk leaking credentials and sensitive data

Similar To

Snyk · git-secrets · TruffleHog

Post Description

Show HN: Kasbah Guard – Free browser extension that catches API keys before you leak them

We just launched Kasbah Guard, a free browser extension that detects and blocks 50+ secret formats (API keys, tokens, credentials, AWS keys, GitHub PATs, etc.) using ML entropy scoring + context filtering.

It runs 100% locally in your browser (no server calls, no data collection). We built this because existing tools (like Snyk) only catch ~30 secret types, and regex-based detection has too many false positives.

Key innovation: Naive Bayes multi-feature classifier that analyzes Shannon entropy, character transitions, bigram frequency, and context to distinguish real secrets from test fixtures and docstrings.

Live on Chrome, Firefox, Edge, Opera, Safari. All 5 browsers use identical detector.js (263+ tests passing).

Happy to answer questions about the ML model, false positive suppression, or why we built this.

https://bekasbah.com https://chrome.google.com/webstore/detail/kasbah-guard/...

Would love HN feedback!

Similar Projects