Skip to content
Closed
32 changes: 20 additions & 12 deletions docs/AI-for-security/attack-discovery.asciidoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[[attack-discovery]]
[chapter]
= Attack discovery
= Attack Discovery

:frontmatter-description: Accelerate threat identification by triaging alerts with a large language model.
:frontmatter-tags-products: [security]
Expand All @@ -9,7 +9,7 @@

preview::["This feature is in technical preview. It may change in the future, and you should exercise caution when using it in production environments. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of GA features."]

Attack discovery leverages large language models (LLMs) to analyze alerts in your environment and identify threats. Each "discovery" represents a potential attack and describes relationships among multiple alerts to tell you which users and hosts are involved, how alerts correspond to the MITRE ATT&CK matrix, and which threat actor might be responsible. This can help make the most of each security analyst's time, fight alert fatigue, and reduce your mean time to respond.
Attack Discovery leverages large language models (LLMs) to analyze alerts in your environment and identify threats. Each "discovery" represents a potential attack and describes relationships among multiple alerts to tell you which users and hosts are involved, how alerts correspond to the MITRE ATT&CK matrix, and which threat actor might be responsible. This can help make the most of each security analyst's time, fight alert fatigue, and reduce your mean time to respond.

For a demo, refer to the following video.
=======
Expand All @@ -33,34 +33,42 @@ This page describes:
* <<attack-discovery-what-info, What information each discovery includes>>
* <<attack-discovery-workflows, How you can interact with discoveries to enhance {elastic-sec} workflows>>

[discrete]
[[attack-discovery-rbac]]
== Role-based access control (RBAC) for Attack Discovery

The `Attack Discovery: All` privilege allows you to use Attack Discovery.

image::images/attck-disc-rbac.png[Attack Discovery's RBAC settings,60%]

[[attack-discovery-generate-discoveries]]
[discrete]
== Generate discoveries

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 <<security-assistant>>. To get started:
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 <<security-assistant>>. To get started:

. Click the **Attack discovery** page from {elastic-sec}'s navigation menu.
. Click the **Attack Discovery** page from {elastic-sec}'s navigation menu.
. Select an existing connector from the dropdown menu, or add a new one.
+
.Recommended models
[sidebar]
--
While Attack discovery is compatible with many different models, our testing found increased performance with Claude 3.5 Sonnet. In general, models with larger context windows are more effective for Attack discovery.
While Attack Discovery is compatible with many different models, refer to the <<llm-performance-matrix, Large language model performance matrix>> to see which models perform best.
--
+
image::images/attck-disc-select-model-empty-state.png[]
image::images/attck-disc-select-model-empty.png[]
+
. Once you've selected a connector, click **Generate** to start the analysis.

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.

IMPORTANT: Attack discovery is in technical preview and will only analyze opened and acknowleged alerts from the past 24 hours. By default it only analyzes up to 20 alerts within this timeframe, but you can expand this up to 100 by going to **AI Assistant → Settings (image:images/icon-settings.png[Settings icon,17,17]) → Knowledge Base** and updating the **Alerts** setting.
IMPORTANT: 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 (image:images/icon-settings.png[Settings icon,17,17]) 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.

image::images/knowledge-base-settings.png["AI Assistant's settings menu open to the Knowledge Base tab",75%]
image::images/attck-disc-alerts-number-menu.png["Attack Discovery's settings menu",75%]

IMPORTANT: Attack discovery uses the same data anonymization settings as <<security-assistant, Elastic AI Assistant>>. 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.
IMPORTANT: Attack Discovery uses the same data anonymization settings as <<security-assistant, Elastic AI Assistant>>. 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.

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.
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.

[[attack-discovery-what-info]]
[discrete]
Expand All @@ -72,7 +80,7 @@ Each discovery includes the following information describing the potential threa
. The number of associated alerts and which parts of the https://attack.mitre.org/[MITRE ATT&CK matrix] they correspond to.
. The implicated entities (users and hosts), and what suspicious activity was observed for each.

image::images/attack-discovery-full-card.png[Attack discovery detail view]
image::images/attck-disc-example-disc.png[Attack Discovery detail view]

[[attack-discovery-workflows]]
[discrete]
Expand All @@ -86,4 +94,4 @@ There are several ways you can incorporate discoveries into your {elastic-sec} w
* Click **Investigate in timeline** to explore the discovery in <<timelines-ui, Timeline>>.
* Click **View in AI Assistant** to attach the discovery to a conversation with AI Assistant. You can then ask follow-up questions about the discovery or associated alerts.

image::images/add-discovery-to-assistant.gif[Attack discovery view in AI Assistant]
image::images/add-discovery-to-assistant.gif[Attack Discovery view in AI Assistant]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file modified docs/AI-for-security/images/attck-disc-11-alerts-disc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.