Skip to content

Commit 8cdea8c

Browse files
committed
added Shirans comments
1 parent 5fcad42 commit 8cdea8c

File tree

1 file changed

+13
-23
lines changed

1 file changed

+13
-23
lines changed

articles/defender-for-cloud/gain-end-user-context-ai.md

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,50 +2,40 @@
22
title: Gain end-user context for AI alerts
33
description: Learn how to enhance the security of your AI workloads by adding user context for AI alerts with Microsoft Defender for Cloud threat protection for AI workloads.
44
ms.topic: how-to
5-
ms.date: 07/15/2024
5+
ms.date: 07/16/2024
66
#Customer intent: I want to learn how to enhance the security of my AI workloads by adding end-user context for AI alerts with Microsoft Defender for Cloud threat protection for AI workloads.
77
---
88

99
# Gain end-user context for AI alerts
1010

11-
Microsoft Defender for Cloud allows you to enhance the security of your AI workloads by incorporating the code samples provided in this document, into your generative AI application's code
11+
Microsoft Defender for Cloud's threat protection for AI workloads allows you to enhance the actionability and security value of the generated AI alerts by providing insights to threats that might affect your generative AI applications.
1212

13-
When AI threat protection is enabled you gain threat protection for AI workloads on your Azure subscription which provide insights to threats that might affect your generative AI applications.
14-
15-
:::image type="content" source="media/gain-end-user-context-ai/before-code.png" alt-text="Screenshot of the Defender XDR portal that shows the threat protection alerts provided." lightbox="media/gain-end-user-context-ai/before-code.png":::
16-
17-
By adding the code provided on this page, your AI models gain the ability to pass critical end-user context to Defender for Cloud's AI alerts. The addition of the end-user context allows the security alerts to contain more details and lead to more actionable alerts. For example, you can improve real-time threat detection and incident response.
13+
By adding parameters to your Azure OpenAI API calls, you enable your Azure AI to pass critical end-user context to Defender for Cloud's AI alerts. This addition of end-user context provides greater visibility on end-users and leads to better investigations and results. For example, you can block a specific user or correlate incidents and alerts by end-user.
1814

1915
:::image type="content" source="media/gain-end-user-context-ai/after-code.png" alt-text="Screenshot of the Defender XDR portal that shows all of the additional benefits gained by adding the code." lightbox="media/gain-end-user-context-ai/after-code.png":::
2016

2117
## Prerequisites
2218

2319
- Read up on [Overview - AI threat protection](ai-threat-protection.md).
2420

25-
- You need a Microsoft Azure subscription. If you don't have an Azure subscription, you can [sign up for a free subscription](https://azure.microsoft.com/pricing/free-trial/).
26-
27-
- You must [enable Defender for Cloud](get-started.md#enable-defender-for-cloud-on-your-azure-subscription) on your Azure subscription.
28-
2921
- [Enable threat protection for AI workloads (preview)](ai-onboarding.md) on an AI application, with Azure OpenAI as its underlying model.
3022

3123
## Add security parameters to your Azure OpenAI call
3224

33-
To receive AI security alerts with more context, you can add any or all of the following sample `SecurityContext` code to your [Azure OpenAI API](../ai-services/openai/reference.md) calls. Defender for Cloud uses the `SecurityContext` code to create security alerts that contain the user context, for example an incident that involves a malicious end-user.
34-
35-
Application developers should ensure that a valid JSON is passed to the 'user' field in every request made by the application to Azure OpenAI.
25+
To receive AI security alerts with more context, you can add any or all of the following sample `SecurityContext` parameters to your [Azure OpenAI API](../ai-services/openai/reference.md) calls.
3626

37-
All the fields in the `SecurityContext` are optional. We recommended passing the `EndUserId` and `SourceIP` fields at least, to allow Security Operations Center (SOC) analysts the ability to investigate security incidents that involve AI resources and generative AI applications. For examples, see the [SecurityContext schema](#securitycontext-schema) section.
27+
All of the fields in the `SecurityContext` are optional, but we recommended, at a minimum, passing the `EndUserId` and `SourceIP` fields. The `EndUserId` and `SourceIP` fields provide Security Operations Center (SOC) analysts the ability to investigate security incidents that involve AI resources and generative AI applications. For examples, see the [SecurityContext schema](#securitycontext-schema).
3828

39-
If a field’s name is misspelled, the Azure OpenAI API call will still succeed. No validation of the `SecurityContext` schema is required to pass through the Azure OpenAI user field.
29+
If a field’s name is misspelled, the Azure OpenAI API call will still succeed. No validation of the `SecurityContext` schema is required to pass through the Azure OpenAI user field. Application developers should ensure that a valid JSON is passed to the `user` field in every request made by the application to Azure OpenAI.
4030

4131
## SecurityContext schema
4232

43-
The provided code consists of the `SecurityContext` field which contains several components that describe the application itself, and the end user that interacts with the application. These fields assist your security operations teams to investigate and mitigate security incidents by providing a comprehensive approach to protecting your AI applications.
33+
The provided schema consists of the `SecurityContext` object which contains several parameters that describe the application itself, and the end user that interacts with the application. These fields assist your security operations teams to investigate and mitigate security incidents by providing a comprehensive approach to protecting your AI applications.
4434

4535
- End used ID
4636
- End user type
47-
- End user tenat's ID
48-
- the source IP address.
37+
- End user tenant's ID
38+
- Source IP address.
4939
- Source request headers
5040
- Application name
5141

@@ -58,9 +48,9 @@ The provided code consists of the `SecurityContext` field which contains several
5848
| SourceRequestHeaders | Dictionary<string, string> | Captures a subset of end user's request headers that are added by proxies or load balancers. Headers like X-Forwarded-For, X-Real-IP, or Forwarded are used by Microsoft Defender for Cloud to get the original client's IP address. User-Agent header will provide context about the client software initiating the API request. <br><br> Recommended header names include: User-Agent, X-Forwarded-For, X-Real-IP, Forwarded, CF-Connecting-IP, True-Client-IP, X-Client-IP, X-Forwarded, Forwarded-For | Yes | - |
5949
| ApplicationName | string | The name of the application, used for identification and UI purposes. | Yes | Contoso HR Copilot, Customer sales chat bot. |
6050

61-
## Add the SecurityContext code to your application
51+
## Add the SecurityContext to your application
6252

63-
We recommend adding all of the code samples provided in this document to your generative AI application's code.
53+
We recommend adding all of the parameters provided in this document to your generative AI application's API calls to Azure OpenAI.
6454

6555
1. Select one of these examples:
6656

@@ -72,7 +62,7 @@ We recommend adding all of the code samples provided in this document to your ge
7262

7363
:::image type="content" source="media/gain-end-user-context-ai/sample-code-security-context.png" alt-text="Screenshot of the sample code provided from GitHub." lightbox="media/gain-end-user-context-ai/sample-code-security-context.png":::
7464

75-
1. Add the code to your generative AI application's code.
65+
1. Add the code to your generative AI application's code. where Azure OpenAI API is called.
7666

7767
1. Alter the code parameters to match your requirements.
7868

@@ -83,4 +73,4 @@ Once you have added the code and saved your changes, ensure that a valid JSON is
8373
## Next step
8474

8575
> [!div class="nextstepaction"]
86-
>
76+
> [Overview - AI threat protection](ai-threat-protection.md)

0 commit comments

Comments
 (0)