Scanner CLI che rileva API key, token e credenziali esposte negli alberi dei sorgenti e nelle web app distribuite, con controlli di misconfigurazione Supabase/Firebase e output SARIF.
Scopri cosa sta esponendo la tua app vibe-coded — prima che lo faccia qualcun altro.
I builder di app AI (Lovable, Bolt, Cursor, v0, …) rilasciano velocemente, e spesso rilasciano con un
database completamente aperto o una chiave segreta dentro il bundle JavaScript. keydra
analizza la tua app distribuita nello stesso modo in cui farebbe un estraneo, oppure il tuo
albero dei sorgenti prima della distribuzione, e ti dice cosa è esposto, con una
correzione da copiare e incollare.
[!IMPORTANT] keydra è progettato principalmente per essere eseguito come strumento CLI autonomo. Eseguire keydra come servizio accessibile pubblicamente può esporre dati sensibili e introdurre rischi per la sicurezza. Usalo con cautela e implementa controlli di sicurezza adeguati.
$ 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. Installa Go. È necessario Go 1.27 o versione successiva (go version per verificare; scaricalo da
https://go.dev/dl). Con Go 1.21+ il toolchain corretto viene scaricato automaticamente
in base a go.mod.
2. Ottieni il codice e compilalo.
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
Non è necessario rinominare il modulo per compilare localmente. Sostituisci
github.com/drau6/keydra con il tuo percorso solo quando pubblichi il repository
(o se vuoi che go install github.com/<you>/keydra/cmd/keydra@latest funzioni).
3. Esegui la tua prima scansione.
# 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. Facoltativo: installalo nel tuo PATH.
go install ./cmd/keydra # installs to $(go env GOPATH)/bin
keydra version
5. Facoltativo: eseguire i test. go test ./... (oppure make test).
Note: i colori si attivano automaticamente in un terminale. Su cmd.exe legacy di Windows
potresti vedere codici di escape grezzi; usa Windows Terminal/PowerShell o --no-color.
Il banner grande viene saltato quando l'output è reindirizzato tramite pipe, quando il terminale è più stretto
del banner (COLUMNS), o con --no-banner.
go install github.com/drau6/keydra/cmd/keydra@latest
(dopo aver sostituito yourname e aver effettuato il push del repository), oppure make build e usa
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
Codici di uscita: 0 pulito, 1 risultati pari o superiori a --fail-on, 2 errore. Con
--list, 2 significa anche "almeno un target non è stato scansionato" (a meno che i risultati
abbiano già forzato l'uscita 1).
Una scansione di un repository di una piccola app vibe-coded (--no-color --no-banner; su un
terminale interattivo il banner è ASCII art e la barra laterale │ è colorata in base
alla gravità — rosso critico, arancione alto, blu basso):
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
Ogni risultato mostra il valore corrispondente per intero (evidenza), dove è stato trovato e una correzione da copiare e incollare — quindi un report di scansione è tutto ciò che serve per iniziare la remediation. Passa --redact per mascherare le evidenze delle credenziali prima di condividere un report di testo o JSON (l'output SARIF le maschera sempre). I valori sopra riportati sono esempi, non chiavi reali.

Piattaforma XDR e SIEM open-source per rilevamento delle minacce, analisi dei log, monitoraggio dell'integrità dei file, valutazione delle vulnerabilità e gestione della conformità su endpoint e carichi di lavoro cloud.

Motore open-source IDS/IPS/NSM di rete per l'ispezione del traffico in tempo reale, rilevamento e prevenzione delle intrusioni, analisi dei protocolli e caccia alle minacce basata su regole.

Zeek è un potente framework di analisi di rete molto diverso dal tipico IDS che potresti conoscere.