Git Product home page Git Product logo

hibpofflinecheck's Introduction

HIBP Offline Check

screen

This is a KeePass plugin for Have I been pwned.
It can perform both offline and online checks against the password breach list for any selected password entry.
Double click the plugin column to get an instant status check, or use the right click menu to perform the same check for all selected passwords.

Motivation

Have I been pwned? is an excellent tool for checking leaked passwords. While it does provide an API for securely checking the passwords online, some bits of a hashed password still need to be sent to the service when performing this type of check.

This plugin offers the alternative of an offline check, by using the downloadable file provided by Have I been pwned.

Online check mode is also provided as an option, being implemented using the k-anonimity model required by the HIBP public API.

The plugin adds a new column to KeePass. When double-clicking the column for a specific entry, the SHA1 hash is calculated for the password, which is then searched in the file. A status will be displayed on the column for that specific password.

Features

  • passwords can be checked in offline or online mode
  • binary search in the large password file gives an instant result for the offline mode
  • bloom filter support
  • k-anonimity method implemented for the online mode
  • the status (Pwned or Secure) is saved in the KeePass database and will be retrieved when reopening the app, and updated if the password entry changes
  • each password is individually checked only on user request
  • multiple passwords can be checked in bulk by using the right click menu
  • option to check all passwords in the database

Prerequisites

Download the latest version of the password list using the haveibeenpwned-downloader:

haveibeenpwned-downloader.exe pwnedpasswords

Downloading the file is not required if Online mode is selected in the options.

If you are using KeePass on Windows, this plugin requires Microsoft .NET Framework 4.5 to run.

When running KeePass under Mono (on Ubuntu/Debian), if the plugin does not compile or load, verify that you have installed the mono-mcs package.

Installation

  • Download HIBPOfflineCheck.plgx from Releases.
  • Copy it in the Plugins folder of the KeePass installation.

Configuration

To configure the plugin, open Tools -> HIBP Offline Check...

image

If the Offline mode is selected then Pwned passwords file must be set to the password list file. If Pwned passwords file is not set then the plugin will try to find a password list file in the same location as KeePass.exe.

If you want to change Column name, a new column will be created with the new name and needs to be enabled under View -> Configure Columns -> Provided by Plugins. Before changing the column name, it is recommended that you clear the status of all entries (Tools -> HIBP Offline Check -> Clear Status).

Usage

Enable

In KeePass, enable the plugin column in View -> Configure Columns... -> Provided by Plugins.
Double clicking the Have I been pwned? column for any entry will display the password status. The status is also automatically checked when creating or updating an entry.

Single password check

Double click a password entry under the Have I been pwned? column to get the status.

image

Multiple passwords check

Select multiple entries, then right click on the selection -> Have I been pwned? -> Check

image

Check all passwords

To check all the passwords in the database:

Tools -> HIBP Offline Check... -> Check All Passwords

Automatic checks

Newly created and updated entries are automatically checked. There is also an option to display a warning after creating an insecure password.

Find all pwned passwords

To view all your insecure passwords, use the Find menu (it will only display passwords which have been checked, so make sure to check all first):

Find -> Pwned Passwords

Bloom filter

A Bloom filter allows you to save disk space by not having to store the HIBP passwords file on your drive. Instead, a generated file (currently under 1GB in size) would be loaded, providing an accuracy of 99.9% for password checking. Only about 1/1000 Secure passwords would be false positives, showing up as Pwned. Pwned passwords will never show up as Secure.

You can generate the Bloom filter by selecting Tools -> HIBP Offline Check -> Bloom filter and then Generate Bloom Filter.... It may take anywhere between 15-45 minutes to generate the filter, depending on your hardware. For convenience the filter has also been uploaded to this separate HIBPBloomFilter repository, so you can download it instead of generating it.

Building the plugin

You can build the plugin from source using Visual Studio: open the .sln file and compile the Release configuration. Copy the .dll from bin\Release to the Plugins folder of the KeePass installation.

Enjoy!

hibpofflinecheck's People

Contributors

mihaifm avatar cristianst85 avatar homes32 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.