Verified password generation from password composition policies

Abstract

Password managers (PMs) are important tools that enable the use of stronger passwords, freeing users from the cognitive burden of remembering them. Despite this, there are still many users who do not fully trust PMs. In this paper, we focus on a feature that most PMs offer that might impact the user’s trust, which is the process of generating a random password. We present three of the most commonly used algorithms and we propose a solution for a formally verified reference implementation of a password generation algorithm. We use EasyCrypt to specify and verify our reference implementation. In addition, we present a proof-of-concept prototype that extends Bitwarden to only generate compliant passwords, solving a frequent users’ frustration with PMs. This demonstrates that our formally verified component can be integrated into an existing (and widely used) PM.

Publication
In International Conference on Integrated Formal Methods, 2022
Miguel Grilo
Miguel Grilo
MSc Student @ IST
João Campos
João Campos
MSc Student @ IST
João F. Ferreira
João F. Ferreira
INESC-ID & IST
Alexandra Mendes
Alexandra Mendes
INESC TEC & UBI