Toolvito

Lockfile Secret Scanner

Choose your project folder, some files, or paste one. The page looks for tokens and passwords that were written into lockfiles, package-manager settings and build files, and shows them masked. The files are read in your browser; nothing is uploaded, stored or sent anywhere.

Scan for secrets

Or paste one file

How to scan your project

  1. Choose the project folder (only lockfiles, package-manager settings and build files are opened), or choose files, or paste one with its name.
  2. Read the findings: each shows the file, the line, what was found and the value masked.
  3. Revoke or change each real secret where it was issued, then read it from an environment variable. Download the report, or a copy of a file with the secrets replaced by REMOVED.

What the page looks for

  • Tokens of a known form: GitHub, GitLab, npm, PyPI, RubyGems, AWS access key IDs, Artifactory, Google API keys, Slack bot tokens, JSON Web Tokens and private keys. These patterns are adapted from gitleaks (MIT licence).
  • Passwords in URLs, such as https://user:password@registry.example.com/ in a resolved or index URL, a token used as the user name of a URL, and secret query parameters such as token= or sig=.
  • Settings that hold secrets: _authToken, _auth and _password in .npmrc, npmAuthToken in .yarnrc.yml, password and token settings in pip.conf, .pypirc, gradle.properties, credentials.toml and auth.json, Composer github-oauth and bearer entries, Maven <password>, NuGet ClearTextPassword, .netrc passwords and Bundler credentials.
  • A value such as ${NPM_TOKEN} or $TOKEN names an environment variable; the page lists it as good practice.

What the page does with a secret

  • It shows only the fixed start of a known token type (for example ghp_) and the length; never the secret itself. The report holds the same masked form.
  • Nothing is sent: the page makes no request with your files, and it does not ask any service whether a token is valid.

Limits you should know

  • Patterns find the usual forms; a secret in another form, or split over lines, can be missed, and a value that only looks like a secret can be listed. Check each finding.
  • The page does not look into the history of a Git repository: a secret removed from the file can still be in older commits.
  • node_modules, .git and Pods folders are left out.

Related tools