1.4 Ensure that Office 365 Passwords Are Not Set to Expire

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Microsoft cloud-only accounts have a pre-defined password policy that cannot be changed. The only items that can change are the number of days until a password expires and whether or not passwords expire at all.

Rationale:

Organizations such as NIST and Microsoft have updated their password policy recommendations to not arbitrarily require users to change their passwords after a specific amount of time, unless there is evidence that the password is compromised or the user forgot it. They suggest this even for single factor (Password Only) use cases, with a reasoning that forcing arbitrary password changes on users actually make the passwords less secure. Other recommendations within this Benchmark suggest the use of MFA authentication for at least critical accounts (at minimum), which makes password expiration even less useful as well as password protection for Azure AD.

Impact:

When setting passwords not to expire it is important to have other controls in place to supplement this setting. See below for related recommendations and user guidance.

Ban common passwords

Educate users to not reuse organization passwords anywhere else

Enforce Multi-Factor Authentication registration for all users

Enforce Multi-Factor Authentication registration

NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.

Solution

To set Office 365 Passwords to Expire, use the Microsoft 365 Admin Center:

Expand Settings then select the Org Settings subcategory.

Click on Security & privacy.

Select Password expiration policy.

If the Set passwords to never expire (recommended) box is unchecked, check it.

Click Save.

To set Office 365 Passwords Are Not Set to Expire, use the Microsoft Online PowerShell Module:

Connect to Microsoft Online service using Connect-MSOLService.

Run the following Microsoft Online PowerShell command:

Set-MsolPasswordPolicy -ValidityPeriod 2147483647 -DomainName <DomainName> -NotificationDays 30

See Also

https://workbench.cisecurity.org/files/4073