|
1 | 1 | ---
|
2 |
| -reviewed: 2023-10-01 |
| 2 | +reviewed: 2024-03-26 |
3 | 3 | severity: Important
|
4 | 4 | pillar: Security
|
5 |
| -category: Authentication |
6 |
| -resource: Cognitive Services |
7 |
| -online version: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.Cognitive.DisableLocalAuth/ |
| 5 | +category: SE:05 Identity and access management |
| 6 | +resource: Azure AI |
| 7 | +online version: https://azure.github.io/PSRule.Rules.Azure/en/rules/Azure.AI.DisableLocalAuth/ |
8 | 8 | ---
|
9 | 9 |
|
10 |
| -# Use identity-based authentication for Cognitive Services accounts |
| 10 | +# Use identity-based authentication for Azure AI accounts |
11 | 11 |
|
12 | 12 | ## SYNOPSIS
|
13 | 13 |
|
14 |
| -Authenticate requests to Cognitive Services with Azure AD identities. |
| 14 | +Authenticate requests to Azure AI services with Entra ID identities. |
15 | 15 |
|
16 | 16 | ## DESCRIPTION
|
17 | 17 |
|
18 |
| -To send requests to Cognitive Services endpoints, each request must include an authentication header. |
19 |
| -Cognitive Services endpoints supports authentication with keys or tokens. |
20 |
| -Using an Azure AD token instead of a cryptographic key has some additional security benefits. |
| 18 | +To send requests to Azure AI service endpoints (previously known as Cognitive Services), |
| 19 | +each request must include an authentication header. |
| 20 | +Azure AI service endpoints supports authentication with keys or access tokens. |
| 21 | +Using an Entra ID access token instead of a cryptographic key has some additional security benefits. |
21 | 22 |
|
22 |
| -With Azure AD authentication, the identity is validated against Azure AD identity provider. |
23 |
| -Using Azure AD identities centralizes identity management and auditing. |
| 23 | +With Entra ID authentication, an authorized identity is issued an OAuth2 access token issued by Entra ID. |
| 24 | +Using Entra ID as the identity provider centralizes identity management and auditing. |
24 | 25 |
|
25 |
| -Once you decide to use Azure AD authentication, you can disable authentication using keys. |
| 26 | +Once you decide to use Entra ID authentication, you can disable authentication using keys. |
26 | 27 |
|
27 | 28 | ## RECOMMENDATION
|
28 | 29 |
|
29 |
| -Consider only using Azure AD identities to authenticate requests to Cognitive Services accounts. |
| 30 | +Consider only using Entra ID identities to authenticate requests to Azure AI service accounts. |
30 | 31 | Once configured, disable authentication based on access keys.
|
31 | 32 |
|
32 | 33 | ## EXAMPLES
|
@@ -95,15 +96,15 @@ resource account 'Microsoft.CognitiveServices/accounts@2023-05-01' = {
|
95 | 96 |
|
96 | 97 | To address this issue at runtime use the following policies:
|
97 | 98 |
|
98 |
| -- [Azure AI Services resources should have key access disabled (disable local authentication)](https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Azure%20Ai%20Services/CognitiveServices_DisableLocalAuth_Audit.json) |
| 99 | +- [Azure AI Services resources should have key access disabled (disable local authentication)](https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Azure%20Ai%20Services/DisableLocalAuth_Audit.json) |
99 | 100 | `/providers/Microsoft.Authorization/policyDefinitions/71ef260a-8f18-47b7-abcb-62d0673d94dc`
|
100 |
| -- [Configure Cognitive Services accounts to disable local authentication methods](https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Cognitive%20Services/CognitiveServices_DisableLocalAuth_Modify.json) |
| 101 | +- [Configure Cognitive Services accounts to disable local authentication methods](https://github.com/Azure/azure-policy/blob/master/built-in-policies/policyDefinitions/Cognitive%20Services/DisableLocalAuth_Modify.json) |
101 | 102 | `/providers/Microsoft.Authorization/policyDefinitions/14de9e63-1b31-492e-a5a3-c3f7fd57f555`
|
102 | 103 |
|
103 | 104 | ## LINKS
|
104 | 105 |
|
105 |
| -- [Use identity-based authentication](https://learn.microsoft.com/azure/well-architected/security/design-identity-authentication#use-identity-based-authentication) |
106 |
| -- [Authenticate with Azure Active Directory](https://learn.microsoft.com/azure/ai-services/authentication#authenticate-with-azure-active-directory) |
107 |
| -- [Azure Policy built-in policy definitions for Azure AI services](https://learn.microsoft.com/azure/ai-services/policy-reference) |
| 106 | +- [SE:05 Identity and access management](https://learn.microsoft.com/azure/well-architected/security/identity-access) |
108 | 107 | - [IM-1: Use centralized identity and authentication system](https://learn.microsoft.com/security/benchmark/azure/baselines/cognitive-services-security-baseline#im-1-use-centralized-identity-and-authentication-system)
|
| 108 | +- [Authenticate with Microsoft Entra ID](https://learn.microsoft.com/azure/ai-services/authentication#authenticate-with-microsoft-entra-id) |
| 109 | +- [Azure Policy built-in policy definitions for Azure AI services](https://learn.microsoft.com/azure/ai-services/policy-reference) |
109 | 110 | - [Azure deployment reference](https://learn.microsoft.com/azure/templates/microsoft.cognitiveservices/accounts)
|
0 commit comments