Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Pwned Passwords (Have I Been Pwned / HIBP)

Security covered Maintenance fixes only 241 sites

This module prevents users from selecting passwords that have been previously exposed in data breaches. It uses an API that checks password hashes anonymously to ensure user privacy.

This module uses the Have I Been Pwned - HIBP "Passwords" API v2 to validate passwords entered by a user.

Currently it prevents the user to select any password present in the database, more options will come.

Why this module?

As Troy Hunt explains in this article, it's a good idea to prevent people using already publicly known passwords. In fact it's not only him, but also NIST has a special publication on the topic "Digital Identity Guidelines", in which they clearly stating that you shouldn't be allowing people to use a password that's been breached before, among other types of passwords they shouldn't be using.

This module will do exactly that, prevent users from compromising themselves (and your website) by choosing a known password.

Anonymity

I was skeptical about Troy's service on Version 1, because even if you sent the sha1 hash and not the plain text password, you were still sending the complete information about it.
Now version 2 of the API is out and uses an implementation of k-anonymity, which allows to retain the secrecy of your password, even the hashed one. In fact only 5 characters of the whole hash are sent to the service, from which it's basically impossible to discover the original plaintext password, not even get close to it.
In the light of this new service I decided to bring this to Drupal to help spread the adoption and even more help our users to chose better/safer passwords.
You can read more about this service and k-anonymity in Troy's blog post and the more technical one on Cloudflare blog.

Drupal 10–11

Ask your assistant about Pwned Passwords (Have I Been Pwned / HIBP)

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Feb 2023
Latest release
2 months ago
Releases (12 mo)
3 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
8.x-1.4 Stable 10–11 Aug 3, 2026
2.0.0-beta1 Pre-release 10–11 Aug 3, 2026
2.0.x-dev Dev 10–11 Aug 3, 2026
8.x-1.3 Stable 8–10 PHP 7.1 May 12, 2023
8.x-1.2 Stable 8–10 PHP 7.1 Feb 28, 2023