Skip to content

Sergej-Popov/locksmith

Repository files navigation

Locksmith

CLI utility to check Bitwarden credentials for security gaps.

  • Check passwords were exposed in data breach using Have I Been Pwned service.
  • Report on reused passwords
  • Report URLs associated with credentials not using HTTPS

Doesn't store or send credentials anywhere.
Uses hash snippets to check breaches using k-anonymity model. Read more on Troy Hunt blog here

Dependencies

Build & Run

deno task compile

# Run on windows
.\dist\windows\locksmith.exe --help

# Run on linux
./dist/linux/locksmith --help

# Run on Mac OS (untested)
./dist/macos/locksmith --help

Getting Started with Bitwarden CLI

Locksmith depends on Bitwarden CLI. Install, login and start a session.

  1. Login Log in with your email:

    bw login <your-email>
  2. Unlock & Session Retrieve a session key by unlocking:

    bw unlock

    Once unlocked, export the session key:

    # linux/maxos
    export BW_SESSION=<your-session-key>
    # windows
    $env:BW_SESSION=<your-session-key>

Using Locksmith

Locksmith CLI provides the following commands:

pwned-passwords

alt text

one-pwned-password

alt text

reused-passwords

alt text

unsecure-urls

alt text

Release

# match tag to vertion.ts
git tag -a v1.0.0 -m "Release description"
git push origin v1.0.0

Notes

  • Lock Bitwarden session when finished:
    bw lock

Contributions

Open issues or draft PRs to discuss new features & fixes.

TODO

Other Password Managers.

About

CLI utility to check Bitwarden passwords for security gaps.

Resources

License

Stars

Watchers

Forks

Packages

No packages published