You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: solutions/security/ai/ai-assistant.md
+20-11Lines changed: 20 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ You can also chat with AI Assistant from several particular pages in {{elastic-s
75
75
*[Data Quality dashboard](/solutions/security/dashboards/data-quality-dashboard.md): Select the **Incompatible fields** tab, then click **Chat**. (This is only available for fields marked red, indicating they’re incompatible).
76
76
77
77
::::{note}
78
-
Each user’s chat history (up to the 99 most recent conversations) and custom Quick Prompts are automatically saved, so you can leave {{elastic-sec}} and return to a conversation later. Chat history appears to the left of the AI Assistant chat window, and on the **Conversations** tab of the **AI Assistant settings** menu. To access the settings menu, use the global search field to search for "AI Assistant for Security".
78
+
Each user’s chat history (up to the 99 most recent conversations) and custom Quick Prompts are automatically saved, so you can leave {{elastic-sec}} and return to a conversation later. Chat history appears to the left of the AI Assistant chat window, and on the **Conversations** tab of the **AI Assistant settings** menu. To access the settings menu, use the global search field to search for "AI Assistant for Security" or open the menu in the upper-right of the AI Assistant chat window.
79
79
::::
80
80
81
81
@@ -87,16 +87,16 @@ Use these features to adjust and act on your conversations with AI Assistant:
87
87
* (Optional) Select a *System Prompt* at the beginning of a conversation by using the **Select Prompt** menu. System Prompts provide context to the model, informing its response. To create a System Prompt, open the System Prompts dropdown menu and click **+ Add new System Prompt…**.
88
88
* (Optional) Select a *Quick Prompt* at the bottom of the chat window to get help writing a prompt for a specific purpose, such as summarizing an alert or converting a query from a legacy SIEM to {{elastic-sec}}.
:alt: The Security AI settings menu's System Prompts tab
99
+
:::
100
100
101
101
* Quick Prompt availability varies based on context—for example, the **Alert summarization** Quick Prompt appears when you open AI Assistant while viewing an alert. To customize existing Quick Prompts and create new ones, click **Add Quick Prompt**.
102
102
* In an active conversation, you can use the inline actions that appear on messages to incorporate AI Assistant’s responses into your workflows:
@@ -117,11 +117,20 @@ AI Assistant can remember particular information you tell it to remember. For ex
117
117
118
118
## Configure AI Assistant [configure-ai-assistant]
119
119
120
-
The **Security AI settings** page allows you to configure AI Assistant. To access it, use the global search field to search for "AI Assistant for Security".
120
+
To adjust AI Assistant's settings from the chat window, click the more (three dots) button in the upper-right.
The first three options (**AI Assistant settings**, **Knowledge Base**, and **Anonymization**) open the corresponding tabs of the **Security AI settings** page. The **Chat options** affect display-only user settings: whether to show or hide anonymized values, and whether to include citations. When citations are enabled, AI Assistant will refer you to information sources including data you've shared with it, information you've added to the knowledge base, and content from Elastic's Security Labs and product documentation.
128
+
129
+
The **Security AI settings** page provides a range of configuration options for AI Assistant. To access it directly, use the global search field to search for "AI Assistant for Security".
121
130
122
131
It has the following tabs:
123
132
124
-
***Conversations:** When you open AI Assistant from certain pages, such as ***Alerts**, it defaults to the relevant conversation type. For each conversation type, choose the default System Prompt, the default connector, and the default model (if applicable). The **Streaming** setting controls whether AI Assistant’s responses appear word-by-word (streamed), or as a complete block of text. Streaming is currently only available for OpenAI models.
133
+
***Conversations:** When you open AI Assistant from certain pages, such as **Alerts**, it defaults to the relevant conversation type. For each conversation type, choose the default System Prompt, the default connector, and the default model (if applicable). The **Streaming** setting controls whether AI Assistant’s responses appear word-by-word (streamed), or as a complete block of text. Streaming is currently only available for OpenAI models.
125
134
***Connectors:** Manage all LLM connectors.
126
135
***System Prompts:** Edit existing System Prompts or create new ones. To create a new System Prompt, type a unique name in the **Name** field, then press **enter**. Under **Prompt**, enter or update the System Prompt’s text. Under **Contexts**, select where the System Prompt should appear.
127
136
***Quick Prompts:** Modify existing Quick Prompts or create new ones. To create a new Quick Prompt, type a unique name in the **Name** field, then press **enter**. Under **Prompt**, enter or update the Quick Prompt’s text.
@@ -137,7 +146,7 @@ To modify Anonymization settings, you need the **Elastic AI Assistant: All** pri
137
146
::::
138
147
139
148
140
-
The **Anonymization** tab of the Security AI settings menu allows you to define default data anonymization behavior for events you send to AI Assistant. Fields with **Allowed*** toggled on are included in events provided to AI Assistant. ***Allowed*** fields with ***Anonymized** set to **Yes** are included, but with their values obfuscated.
149
+
The **Anonymization** tab of the Security AI settings menu allows you to define default data anonymization behavior for events you send to AI Assistant. Fields with **Allowed** toggled on are included in events provided to AI Assistant. **Allowed** fields with **Anonymized** set to **Yes** are included, but with their values obfuscated.
141
150
142
151
::::{note}
143
152
You can access anonymization settings directly from the **Attack Discovery** page by clicking the settings () button next to the model selection dropdown menu.
By default, Attack Discovery analyzes up to 100 alerts from the last 24 hours, but you can expand this up to 500 alerts, and customize which alerts it analyzes using the settings menu. To open it, click the gear icon () next to the **Generate** button.
From the settings menu, you can filter which alerts get processed by Attack Discovery using KQL queries, the time and date selector, and the **Number of alerts** slider. Note that sending more alerts than your chosen LLM can handle may result in an error. Under **Alert summary** you can view a summary of the selected alerts grouped by various fields, and under **Alerts preview** you can see more details about the selected alerts.
48
+
49
+
:::{admonition} How to add non-ecs fields to Attack Discovery
50
+
Attack Discovery is designed for use with alerts based on data that complies with ECS, and by default only analyses ECS-compliant fields. However you can enable Attack Discovery to review additional fields by following these steps:
51
+
52
+
* Select an alert with some of the non-ECS fields you want to analyze, and go to it's details flyout. From here, use the **Chat** button to open AI Assistant.
53
+
* At the bottom of the chat window, the alert's information appears. Click **Edit** to open the anonymization window to this alert's fields.
54
+
* Search for and select the non-ECS fields you want Attack Discovery to analyze. Set them to **Allowed**.
55
+
56
+
The selected fields can now be analyzed the next you run Attack Discovery.
When you access Attack Discovery for the first time, you’ll need to select an LLM connector before you can analyze alerts. Attack Discovery uses the same LLM connectors as [AI Assistant](/solutions/security/ai/ai-assistant.md). To get started:
61
+
You’ll need to select an LLM connector before you can analyze alerts. Attack Discovery uses the same LLM connectors as [AI Assistant](/solutions/security/ai/ai-assistant.md). To get started:
41
62
42
63
1. Click the **Attack Discovery** page from {{elastic-sec}}'s navigation menu.
43
64
2. Select an existing connector from the dropdown menu, or add a new one.
@@ -54,26 +75,13 @@ When you access Attack Discovery for the first time, you’ll need to select an
54
75
55
76
3. Once you’ve selected a connector, click **Generate** to start the analysis.
56
77
57
-
It may take from a few seconds up to several minutes to generate discoveries, depending on the number of alerts and the model you selected.
58
-
59
-
::::{important}
60
-
By default, Attack Discovery analyzes up to 100 alerts within this timeframe, but you can expand this up to 500 by clicking the settings icon () next to the model selection menu and adjusting the **Alerts** slider. Note that sending more alerts than your chosen LLM can handle may result in an error.
It may take from a few seconds up to several minutes to generate discoveries, depending on the number of alerts and the model you selected. Once the analysis is complete, any threats it identifies will appear as discoveries. Click each one’s title to expand or collapse it. Click **Generate** at any time to start the Attack Discovery process again with the selected alerts.
68
79
69
80
::::{important}
70
81
Attack Discovery uses the same data anonymization settings as [Elastic AI Assistant](/solutions/security/ai/ai-assistant.md). To configure which alert fields are sent to the LLM and which of those fields are obfuscated, use the Elastic AI Assistant settings. Consider the privacy policies of third-party LLMs before sending them sensitive data.
71
82
::::
72
83
73
84
74
-
Once the analysis is complete, any threats it identifies will appear as discoveries. Click each one’s title to expand or collapse it. Click **Generate** at any time to start the Attack Discovery process again with the most current alerts.
75
-
76
-
77
85
## What information does each discovery include? [attack-discovery-what-info]
78
86
79
87
Each discovery includes the following information describing the potential threat, generated by the connected LLM:
Copy file name to clipboardExpand all lines: solutions/security/ai/connect-to-amazon-bedrock.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ applies_to:
13
13
This page provides step-by-step instructions for setting up an Amazon Bedrock connector for the first time. This connector type enables you to leverage large language models (LLMs) within {{kib}}. You’ll first need to configure AWS, then configure the connector in {{kib}}.
14
14
15
15
::::{note}
16
-
Only Amazon Bedrock’s `Anthropic` models are supported: `Claude` and `Claude instant`.
16
+
All models in Amazon Bedrock's `Claude` model group are supported.
17
17
::::
18
18
19
19
@@ -99,7 +99,7 @@ Make sure the supported Amazon Bedrock LLMs are enabled:
99
99
1. Search the AWS console for Amazon Bedrock.
100
100
2. From the Amazon Bedrock page, click **Get started**.
101
101
3. Select **Model access** from the left navigation menu, then click **Manage model access**.
102
-
4. Check the boxes for **Claude** and/or **Claude Instant**, depending which model or models you plan to use.
102
+
4. Check the box for the model or models you plan to use.
103
103
5. Click **Save changes**.
104
104
105
105
The following video demonstrates these steps (click to watch).
@@ -115,11 +115,13 @@ Finally, configure the connector in {{kib}}:
115
115
2. Find the **Connectors** page in the navigation menu or use the [global search field](/explore-analyze/find-and-organize/find-apps-and-objects.md). Then click **Create Connector**, and select **Amazon Bedrock**.
116
116
3. Name your connector.
117
117
4. (Optional) Configure the Amazon Bedrock connector to use a different AWS region where Anthropic models are supported by editing the **URL** field, for example by changing `us-east-1` to `eu-central-1`.
118
-
5. (Optional) Add one of the following strings if you want to use a model other than the default:
118
+
5. (Optional) Add one of the following strings if you want to use a model other than the default. Note that these URLs should have a prefix of `us.` or `eu.`, depending on your region, for example `us.anthropic.claude-3-5-sonnet-20240620-v1:0`.
119
119
120
-
* For Haiku: `anthropic.claude-3-haiku-20240307-v1:0`
121
-
* For Sonnet: `anthropic.claude-3-sonnet-20240229-v1:0`
122
-
* For Opus: `anthropic.claude-3-opus-20240229-v1:0`
0 commit comments