Security Policy Errors

How Azure AD Password Protection Handles Spaces in Banned Words

Anum MushtaqAnum Mushtaq Oct 26, 2026 869 views

Question details

The user needs to understand why Azure AD Password Protection detects and blocks a repeated banned word when typed without spaces, but fails to generate an audit event when the same banned phrase is separated by spaces.

Understanding Azure AD Password Protection and Spaces in Banned Words
Product
Microsoft Azure AD
Device & OS
not provided
Scenario
Testing or auditing custom banned password lists to ensure secure authentication policies.
Observed behavior
The system successfully catches the continuous banned word but does not reach the audit threshold when spaces are introduced between the words.
Before you start

Ensure you have Global Administrator or Authentication Policy Administrator privileges in your Azure tenant to review custom banned password lists and proxy configurations.

Solution 1Recommended

Review Password Tokenization and Banned Word Synchronization

Understand the Azure AD scoring algorithm and verify that your custom banned password list is properly synchronized.

Azure AD Password Protection uses a complex scoring algorithm rather than simple exact-match text comparisons. When spaces or other separators are introduced into a password, the tokenization process changes.

This shift in tokenization can lower the resulting risk score of the password. If the calculated score does not reach the required minimum threshold, an audit or block event will not be generated, even if parts of the password are on the banned list.

1
Access Authentication Methods

Sign in to the Azure portal and navigate to Azure Active Directory (Microsoft Entra ID) > Security > Authentication methods > Password protection.

2
Review Custom Banned Passwords

Check your 'Custom banned passwords' list. To explicitly prevent specific spaced phrases, add those exact spaced variations to the list to increase their penalty score.

3
Verify Agent Synchronization

Check the Event Viewer logs on your on-premises domain controllers (Event ID 30006) to confirm that the DC agents are successfully downloading the latest cloud policies.

4
Test in Audit Mode

Use the audit mode to test various password combinations with and without spaces to see how the scoring algorithm evaluates them before enforcing strict blocks.

Review Password Tokenization and Banned Word Synchronization
Algorithm Limitations: Because the system uses normalization and scoring, completely blocking all spaced variations of a word is difficult without adding specific string combinations directly to the banned list.
Free Microsoft Office alternative

Discover a Lightweight Office Alternative with High Compatibility

While you are managing network security and Azure AD policies, having a reliable and secure office suite for your documentation and administrative tasks is essential. WPS Office offers a free, lightweight, and highly compatible alternative to Microsoft Office.

  1. 1. Download the Installer: Visit the official WPS Office website and click 'Download WPS Office Free'.
  2. 2. Install the Software: Run the lightweight installer and follow the on-screen prompts to complete the setup.
  3. 3. Open Your Documents: Launch WPS Writer, Spreadsheet, or Presentation to immediately begin working on your Microsoft Office files without any formatting loss.
Fully compatible with Microsoft Word, Excel, and PowerPoint formats (.docx, .xlsx, .pptx).Lightweight installation that consumes minimal system resources while offering enterprise-grade performance.Built-in PDF editing tools ideal for securing, reviewing, and signing IT compliance reports.Free to use with a familiar user interface, requiring zero learning curve for a seamless migration.
QA img-9

Frequently Asked Questions

Why doesn't Azure AD Password Protection block exact banned words when spaces are added?

Azure AD Password Protection relies on a tokenization and scoring algorithm rather than simple text matching. Adding spaces alters how the password string is broken down (tokenized), which can lower its overall risk score below the threshold required to trigger an audit or block event.

Can I force Azure AD to block banned words containing spaces?

You cannot easily force the algorithm to treat spaced words identically to continuous words. However, you can add specific spaced variations of a word directly to your custom banned password list in the Azure portal to artificially increase their penalty score.

How do I know if my custom banned passwords are synchronized to local Domain Controllers?

You can verify policy synchronization by checking the Azure AD Password Protection DC agent Event Viewer logs on your domain controllers. Look specifically for event ID 30006, which indicates a successful password policy download from Azure.