CLI स्कैनर जो स्रोत ट्री और तैनात वेब ऐप्स में लीक हुए API कुंजियों, टोकन और क्रेडेंशियल्स का पता लगाता है, साथ ही Supabase/Firebase गलत कॉन्फ़िगरेशन जाँच और SARIF आउटपुट प्रदान करता है।
पता लगाएँ कि आपका वाइब-कोडेड ऐप क्या लीक कर रहा है — इससे पहले कि कोई और करे।
AI ऐप बिल्डर (Lovable, Bolt, Cursor, v0, …) तेज़ी से शिप करते हैं, और अक्सर ऐसा
डेटाबेस के साथ शिप करते हैं जो पूरी तरह खुला हो या JavaScript बंडल के अंदर कोई सीक्रेट की हो। keydra
आपके डिप्लॉय किए गए ऐप को उसी तरह देखता है जैसे कोई बाहरी व्यक्ति देखता, या आपके
सोर्स ट्री को डिप्लॉय करने से पहले, और आपको बताता है कि क्या उजागर है, कॉपी-पेस्ट फिक्स के साथ।
[!IMPORTANT] keydra मुख्य रूप से एक स्टैंडअलोन CLI टूल के रूप में चलाने के लिए डिज़ाइन किया गया है। keydra को सार्वजनिक रूप से सुलभ सेवा के रूप में चलाने से संवेदनशील डेटा उजागर हो सकता है और सुरक्षा जोखिम उत्पन्न हो सकते हैं। इसे सावधानी से उपयोग करें और उचित सुरक्षा नियंत्रण लागू करें।
$ keydra scan https://my-app.example.com
█▄
▄▄ ██ ▄
██ ▄█▀ ▄█▀█▄ ██ ██ ▄████ ████▄▄▀▀█▄
████ ██▄█▀ ██▄██ ██ ██ ██ ▄█▀██
▄██ ▀█▄▄▀█▄▄▄▄▄▀██▀▄█▀███▄█▀ ▄▀█▄██
██ v1.1.0
▀▀▀
keydra — find what your vibe-coded app is leaking.
url https://my-app.example.com
2 pages · 14 files scanned · 2.1s
1 [Supabase] Supabase table "profiles" is publicly readable
│ The table can be read with the public anon key. ...
│ evidence GET /rest/v1/profiles → 206, rows visible to anonymous role: 1204
│ fix alter table public.profiles enable row level security; …
1. Go इंस्टॉल करें। आपको Go 1.27 या नया चाहिए (go version से जाँचें; डाउनलोड करें
https://go.dev/dl से)। Go 1.21+ के साथ सही टूलचेन go.mod के आधार पर
स्वचालित रूप से प्राप्त हो जाता है।
2. कोड प्राप्त करें और इसे बिल्ड करें।
unzip keydra.zip && cd keydra # or: git clone <your repo> && cd keydra
go build -o bin/keydra ./cmd/keydra # or: make build
Windows (PowerShell): go build -o bin\keydra.exe ./cmd/keydra
स्थानीय रूप से बिल्ड करने के लिए आपको मॉड्यूल का नाम बदलने की आवश्यकता नहीं है। github.com/drau6/keydra को अपने स्वयं के पथ से केवल तब बदलें जब आप रेपो को प्रकाशित करें (या यदि आप चाहते हैं कि go install github.com/<you>/keydra/cmd/keydra@latest काम करे)।
3. अपना पहला स्कैन चलाएँ।
# source code, before you deploy: safe, no network
./bin/keydra scan --repo .
# a deployed app you own (or have written permission to test)
./bin/keydra scan https://my-app.example.com
# also follow internal links, because secrets often hide on /admin or /dashboard
./bin/keydra scan https://my-app.example.com --depth 2
# see every check Keydra performs
./bin/keydra rules
4. वैकल्पिक: इसे अपने PATH पर इंस्टॉल करें।
go install ./cmd/keydra # installs to $(go env GOPATH)/bin
keydra version
5. वैकल्पिक: परीक्षण चलाएँ। go test ./... (या make test)।
नोट्स: टर्मिनल में रंग स्वचालित रूप से चालू हो जाते हैं। लीगेसी Windows cmd.exe पर
आप कच्चे एस्केप कोड देख सकते हैं; Windows Terminal/PowerShell या --no-color का उपयोग करें।
बड़ा बैनर छोड़ दिया जाता है जब आउटपुट पाइप किया जाता है, जब टर्मिनल बैनर से संकरा हो
(COLUMNS), या --no-banner के साथ।
go install github.com/drau6/keydra/cmd/keydra@latest
(जब आप yourname बदल चुके हों और रेपो पुश कर चुके हों), या make build चलाएँ और
bin/keydra का उपयोग करें।
keydra scan <url> [flags] # scan a deployed app
keydra scan --repo <dir> [flags] # scan source before you deploy
keydra scan --list <file> [flags] # scan every URL in the file, one per line (max 50)
keydra rules # list every check
keydra <url> # shortcut for scan
--repo <dir> scan a local source tree instead of a URL (no network)
--list <file> scan a list of URLs, one per line (# comments and blank lines ignored, max 50)
--format <fmt> text | json | sarif (default text); --json is a shortcut
--no-banner one-line title instead of the ASCII-art banner
--color <mode> auto|always|never (honors NO_COLOR and FORCE_COLOR; --no-color also works)
--no-probe static analysis only, never contact discovered backends
--validate opt-in: ask each provider (one read-only request) whether a detected secret is still active
--redact mask detected credential values in text/json output (SARIF always masks them)
--allow-private allow discovered backends on local/private addresses (local development)
--fail-on <sev> exit 1 at/above severity: info|low|medium|high|critical|never (default high)
--depth N page levels to crawl in URL mode: 1 = only the given page (default),
2 = also its internal links, up to 5
--max-pages N maximum HTML pages to fetch in URL mode (default 20, max 200)
--sitemap also scan pages listed in /sitemap.xml
--max-files N max files to read: JS downloads in URL mode, source files in
repo mode (default 40 in URL mode; repo 5000 unless set)
--third-party also scan scripts hosted on other origins
--timeout 15s per-request timeout
-v show full fix snippets
एक्ज़िट कोड: 0 स्वच्छ, 1 --fail-on पर या उससे ऊपर के निष्कर्ष, 2 त्रुटि। --list के साथ, 2 का अर्थ "कम से कम एक लक्ष्य स्कैन करने में विफल रहा" भी है (जब तक कि निष्कर्षों ने पहले से ही एक्ज़िट 1 को बाध्य न कर दिया हो)।
एक छोटे वाइब-कोडेड ऐप का रेपो स्कैन (--no-color --no-banner; एक इंटरैक्टिव टर्मिनल पर बैनर ASCII आर्ट होता है और │ गटर गंभीरता के अनुसार रंगीन होता है — लाल क्रिटिकल, नारंगी उच्च, नीला निम्न):
KEYDRA v1.1.0
repo my-app
3 files scanned · 1ms
1 [Supabase] Supabase service/secret key exposed in client code
│ This key bypasses Row Level Security. Whoever holds it has full read/write access to the whole database.
│ evidence eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFiY2RlZmdoaWowMTIzNDU2Nzg5Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0OTgxODI0OSwiZXhwIjoyMDY1Mzk0MjQ5fQ.AAAAAAAAbbbbbbbbCCCCCCCCddddddddEEEEEEEE
│ fix Rotate the key in Supabase → Project Settings → API now, remove it from the frontend and use it only from server-side code.
2 [Repository] .env is not covered by .gitignore
│ Environment files normally hold server secrets. If this file is committed, every secret in it is in your git history.
│ where .env
│ fix Add ".env*" and "!.env.example" to .gitignore. If it was already committed: `git rm --cached .env`, then rotate every key inside and purge history.
3 [Secrets] Possible unnamed secret (high-entropy string) exposed in client code
│ This value ships to every visitor's browser and can be copied by anyone.
│ evidence eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFiY2RlZmdoaWowMTIzNDU2Nzg5Iiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImlhdCI6MTc0OTgxODI0OSwiZXhwIjoyMDY1Mzk0MjQ5fQ.AAAAAAAAbbbbbbbbCCCCCCCCddddddddEEEEEEEE
│ where lib/api.js
│ fix Keydra found a long, random-looking string that matches no known key format. Check whether it is a credential: if so, rotate it and move it server-side. Build artifacts such as hashes or encoded assets can be ignored.
note: Supabase configuration found in source; run `keydra scan <deployed-url>` to test the live backend
प्रत्येक निष्कर्ष मिलान किए गए मान को पूर्ण रूप में (साक्ष्य), यह कहाँ पाया गया, और एक कॉपी-पेस्ट समाधान दिखाता है — इसलिए उपचार शुरू करने के लिए आपको केवल एक स्कैन रिपोर्ट की आवश्यकता होती है।
टेक्स्ट या JSON रिपोर्ट साझा करने से पहले क्रेडेंशियल साक्ष्य को छिपाने के लिए --redact पास करें (SARIF आउटपुट इसे हमेशा छिपाता है)। ऊपर दिए गए मान उदाहरण हैं, वास्तविक कुंजियाँ नहीं।

ओपन-सोर्स XDR और SIEM प्लेटफ़ॉर्म जो एंडपॉइंट और क्लाउड वर्कलोड पर खतरे का पता लगाने, लॉग विश्लेषण, फ़ाइल अखंडता निगरानी, कमजोरियों का आकलन और अनुपालन प्रबंधन के लिए है।

रीयल-टाइम ट्रैफ़िक निरीक्षण, घुसपैठ का पता लगाने और रोकथाम, प्रोटोकॉल विश्लेषण, और नियम-आधारित खतरे की खोज के लिए ओपन-सोर्स नेटवर्क IDS/IPS/NSM इंजन।

Zeek एक शक्तिशाली नेटवर्क विश्लेषण ढांचा है जो आपके परिचित सामान्य IDS से काफी अलग है।