5.1.5.3 Ensure password addition is blocked for applications

Information

In Microsoft Entra ID, applications and service principals can authenticate using either certificate credentials or password credentials (also referred to as client secrets). This setting enforces a tenant-wide restriction that prevents new password credentials from being added to any application registration or service principal. The policy is implemented through the default app management policy and applies to all applications unless scoped exceptions are configured.

The setting does not revoke or invalidate existing password credentials; credentials created before the policy was enabled remain valid until they expire or are explicitly removed.

The recommended state is Block password addition set to On.

Password credentials (client secrets) used for application authentication are static string values that offer weaker security guarantees than certificate or federated credentials. Unlike certificates, client secrets carry no built-in proof of possession and are frequently stored in plaintext in source code, configuration files, CI/CD pipelines, and shell history. A leaked client secret grants any holder the ability to authenticate as the application to Microsoft Entra ID, potentially accessing any resource or permission scope assigned to that application.

Blocking the addition of new password credentials eliminates this attack surface for applications created going forward and forces adoption of stronger credential types such as certificates.

Solution

To remediate using the UI:

- Navigate to Microsoft Entra admin center https://entra.microsoft.com/.
- Expand Entra ID and select Enterprise apps.
- Under Security select Application policies.
- Select Block password addition.
- Set Status to On.
- Set Applies to to one of the following:

- All applications
- All applications with exclusions (if using exclusions, ensure they are reviewed annually).

- Set Only apply to apps created after to a desired date or leave it unconfigured.
- Select Save and close to apply the changes.

To remediate using the Microsoft Graph API:

Important: The PATCH request replaces the passwordCredentials array in full. Retrieve the current policy first and include all existing entries in the request body to avoid overwriting other configured restrictions or exclusions.

- Execute a GET request to retrieve the current policy:

v1.0/policies/defaultAppManagementPolicy

- Modify the returned JSON to reflect the following changes:

- Set isEnabled to true.
- Under applicationRestrictions.passwordCredentials, locate the entry where restrictionType is passwordAddition and set the following:

- state to enabled
- restrictForAppsCreatedAfterDateTime to 0001-01-01T00:00:00Z or a desired date.

- Under servicePrincipalRestrictions.passwordCredentials, locate the entry where restrictionType is passwordAddition and set the following:

- state to enabled
- restrictForAppsCreatedAfterDateTime to 0001-01-01T00:00:00Z or a desired date.

- Execute a PATCH request to the same URI with the modified JSON in the request body to apply the changes.

Note: The References section includes a link to the API documentation with full remediation examples in multiple languages including HTTP, PowerShell, and Python.

Impact:

This policy applies to new password credential additions only. Existing client secrets remain valid until they expire or are explicitly revoked; this recommendation does not retroactively invalidate credentials created before the policy was enabled.

Any automated process, pipeline, or script that programmatically adds client secrets to application registrations or service principals will be blocked once the policy is enabled, unless an exception is configured. Applications that have not yet migrated to certificate-based authentication or workload identity federation will require changes before new credentials can be added.

See Also

https://workbench.cisecurity.org/benchmarks/24620

Item Details

Category: IDENTIFICATION AND AUTHENTICATION

References: 800-53|IA-5

Plugin: microsoft_azure

Control ID: c01bb260002d882cfc9e6a2da8ecc1b60d7e3deb16cbc165f27c6d569ddeda7f