Giter Site home page Giter Site logo

yubikeecr's Introduction

YubiKeeCR (beta)

This is a KeePass2 plugin intended to replace the Keechallenge plugin as it is no longer under development. The goal is to allow you to use your Yubikey in challenge-response mode in order to encrypt your database. Some parts of the code was borrowed from the Keechallenge plugin, you may find some similarities like the YubiWrapper.

Using the plugin

  • Make sure your Yubikey (and the backup ones) is configured with your private HMAC secret. Be sure that you do not lose your secret or the database will not be recoverable. Also be sure you have a backup Yubikey..
  • Head to the releases page, download the latest zip file then unzip the contents in your KeePass plugin folder.
  • Open your database security options (File -> Database Settings -> Security tab) and select the YubiKeeCR algorithm.
  • Save your database (be warned the database will not be compatible with other password managers as described below)

How it works

In contrast to Keepassium, KeePassXC and KeePassDX, KeePass2 does not expose the database master seed to the plugin, so we cannot use it as the challenge to the Yubikey. Every time the database is saved, the plugin will generate a new challenge.

Since we need to store this challenge inside the database .kdbx file, the file format is slight different from the original specifications, rendering it not compatible with other password managers.

The plugin will encrypt your database with two AES keys, the first one is using the key provided by the Yubikey's response and the second one is provided by the KeePass2 application, mimicking the original AES implementation. This way the challenge is encrypted with your master key so it will not be exposed in plain-bytes inside the database file.

Also, this method does not need the HMAC secret to the known by the plugin as described by this Keepassium article

WARNING: If the master key is empty you will be relying only on the challenge-response method

KDBX format changes

As described here (original) the database file is originally composed by two sections:

  • First: Unencrypted header
  • Second: The encrypted database XML

The plugin will add another section with the challenge instructions:

  • First: Unencrypted header
  • Second: The challenge instructions (encrypted with the master key only)
  • Third: The encrypted database XML (encrypted with both master key and response key)

yubikeecr's People

Contributors

fetuffani avatar

Stargazers

Konstantin Nikulin avatar ZhangCheng avatar

Watchers

 avatar Mathew Gregson 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.