Compromised password blocking
The Compromised password blocking plugin checks passwords against the Have I Been Pwned database of known breaches when passwords are created, updated, or optionally on every login. Users with a compromised password are blocked until they reset it.
The plugin uses the k-Anonymity API — the full password is never sent outside Moodle.
Features
Section titled “Features”- Checks passwords on creation and update
- Optional check on every login
- k-Anonymity API — no full password ever leaves Moodle
- Blocks access until a compromised password is replaced
Configuration
Section titled “Configuration”- Install the plugin.
- Log in as admin — ensure you can reset your administrator password via email if needed.
- Enable the Password policy setting and review password requirements.
- Navigate to Site administration > Plugins > Authentication > Compromised password blocking.
- Enable Detect compromised passwords.
- Optionally enable Check password on login.
Installation
Section titled “Installation”This plugin has no dependencies. Install it from the Moodle plugins database or via Git:
For Moodle 5.1.x, clone the plugin into public/admin/tool/mupwned instead. Use
MOODLE_500_STABLE for Moodle 5.1.x.
git clone -b MOODLE_405_STABLE https://github.com/moodle/moodle.gitcd moodlegit clone -b MOODLE_405_STABLE https://github.com/mutms/moodle-tool_mupwned.git admin/tool/mupwnedThen continue with the standard Moodle installation.