# Sleutelcheck (Key Check) > Free local check for exposed API key and password patterns in website builds. It also flags public environment variable names that look sensitive and checks whether Git tracks or ignores top-level `.env*` files. The local check runs on your machine and displays matched keys in masked form. - [Dutch tool page](https://vibecodingnederland.nl/sleutelcheck/) - [English tool page](https://vibecodingnederland.nl/en/key-check/) - [Download the ZIP](https://vibecodingnederland.nl/sleutelcheck/sleutelcheck.zip) ## Run on a project you own 1. Create a production build using the project's usual build command. 2. Extract the ZIP next to your project so `sleutelcheck/` and your project folder are siblings. Use Node.js 18 or newer. Git provides the index and ignore-rule checks. 3. Open a terminal in your project folder and run `node ../sleutelcheck/scripts/sleutelcheck.mjs .`. For automation, add `--json`. ```sh node ../sleutelcheck/scripts/sleutelcheck.mjs . --json ``` ## Read the result The `--json` flag writes one JSON object to stdout on all three exit codes. A completed scan returns five fields. - `scannedBuildFiles` (number) counts the build files checked. - `findings` (array) contains `file`, `id` and `severity` for each finding. Build findings also include `line`. Key-pattern findings include `label` and `masked`. Suspicious public variable findings include `name`. - `envFiles` (array) contains `file`, `tracked`, `ignored`, `gitignore` and `envNames`. The three status fields are booleans or `null` for unknown. `gitignore` reports whether the active ignore rule comes from a project `.gitignore`. `envNames` lists suspicious public variable names. - `warnings` (array of strings) covers gaps such as a missing build or scan limits. - `checklist` (array of strings) lists spending limits and permissions to check in provider dashboards. | Exit code | Meaning | | --- | --- | | `0` | Completed with zero high-severity findings. Check `warnings`, `findings` and `envFiles` for gaps and other findings. | | `1` | Completed with at least one finding whose `severity` is `hoog` (high). | | `2` | Invalid command or check aborted. The object contains `error` (string). | ## Act on a finding Confirm pattern matches locally. If a secret was exposed, revoke it in the provider dashboard, review its usage and keep any replacement on the server. If Git tracked a secret, check repository history, add an ignore rule for the secret file and remove it from Git tracking. Rebuild and run the check again. The web check on the page gives a basic result without ownership proof: status codes for /.env and /.git/config and, per key type, found or not found. It never returns file contents or key fragments. Details (which file, masked key prefix) need proof of ownership: a file at /.well-known/vcn-sleutelcheck.txt, or else a DNS TXT record or an HTML meta tag. For exact locations, run the local check above.