---
title: Elastic AI Assistant for Security
description: Elastic AI Assistant for Security helps you interact with your Elastic Security data and assists with tasks such as alert investigation, incident response,...
url: https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/ai-assistant
products:
  - Elastic Cloud Serverless
  - Elastic Security
---

# Elastic AI Assistant for Security
Elastic AI Assistant for Security helps you interact with your Elastic Security data and assists with tasks such as alert investigation, incident response, and query generation. It provides a chat interface where you can ask questions about the Elastic Stack and your data, and provides contextual insights throughout Kibana that explain errors and messages and suggest remediation steps.
![Image of AI Assistant chat window](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-assistant-basic-view.png)

<warning>
  The Elastic AI Assistant is designed to enhance your analysis with smart dialogues. Its capabilities are still developing. You should exercise caution as the quality of its responses might vary. Your insights and feedback will help us improve this feature. Always cross-verify AI-generated advice for accuracy.
</warning>

<admonition title="Requirements">
  - `stack: ga` An [Enterprise subscription](https://www.elastic.co/pricing).
  - `serverless: ga` An Elastic Security Serverless project with the [EASE or Security Analytics Complete feature tier](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/deploy-manage/deploy/elastic-cloud/project-settings).
  - To use AI Assistant, the **Elastic AI Assistant: All** Security [privilege](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges) and the **Actions and Connectors: Read** management [privilege](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges).
  - To set up AI Assistant, the **Actions and Connectors : All** [privilege](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/deploy-manage/users-roles/cluster-or-deployment-auth/kibana-privileges).
  - An [LLM connector](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/set-up-connectors-for-large-language-models-llm), which AI Assistant uses to generate responses.
  - A [machine learning node](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/explore-analyze/machine-learning/setting-up-machine-learning).
</admonition>


## Manage access to AI Assistant

```
stack: ga 9.2
serverless: ga
```

The [**GenAI settings**](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/explore-analyze/ai-features/manage-access-to-ai-assistant) page allows you to:
- Manage which AI connectors are available in your environment.
- Enable or disable AI Assistant and other AI-powered features in your environment.
- `stack: ga 9.2` `serverless: unavailable` Specify in which Elastic solutions the `AI Assistant for Observability and Search` and the `AI Assistant for Security` appear.


## Your data and AI Assistant

Elastic does not store or examine prompts or results used by AI Assistant, or use this data for model training. This includes anything you send the model, such as alert or event data, detection rule configurations, queries, and prompts. However, any data you provide to AI Assistant will be processed by the third-party large language model (LLM) provider you connected to as part of AI Assistant setup.
Elastic does not control third-party tools, and assumes no responsibility or liability for their content, operation, or use, nor for any loss or damage that may arise from your using such tools. Exercise caution when using AI tools with personal, sensitive, or confidential information. Any data you submit may be used by the provider for AI training or other purposes. There is no guarantee that the provider will keep any information you provide secure or confidential. You should familiarize yourself with the privacy practices and terms of use of any generative AI tools prior to use.
<note>
  Elastic can automatically anonymize event data that you provide to AI Assistant as context. To learn more, refer to [Configure AI Assistant](#configure-ai-assistant).
</note>


## Set up AI Assistant

You must create a generative AI connector before you can use AI Assistant. AI Assistant can connect to multiple large language model (LLM) providers so you can select the best model for your needs. To set up a connector, refer to [LLM connector setup guides](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/set-up-connectors-for-large-language-models-llm).
<admonition title="Recommended models">
  While AI Assistant is compatible with many different models, refer to the [Large language model performance matrix](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/large-language-model-performance-matrix) to select models that perform well with your desired use cases.
</admonition>


### Elastic Managed LLM

[Elastic Managed LLM](https://www.elastic.co/docs/reference/kibana/connectors-kibana/elastic-managed-llm) is the default large language model (LLM) connector available in the AI Assistant for eligible users. It provides immediate access to generative AI features without requiring any setup or external model integration.
The Elastic Managed LLM is available out-of-the box; no manual connector setup or API key management is required for initial use. However, you can configure and use a third-party LLM connector, such as OpenAI, Azure, or Amazon Bedrock if you prefer.
To learn more about security and data privacy, refer to the [connector documentation](https://www.elastic.co/docs/reference/kibana/connectors-kibana/elastic-managed-llm) and [download the model card](https://raw.githubusercontent.com/elastic/kibana/refs/heads/main/docs/reference/resources/Elastic_Managed_LLM_model_card.pdf).
<important>
  Using the Elastic Managed LLM incurs additional costs. Refer to [Elastic Cloud pricing](https://www.elastic.co/pricing/serverless-search) for more information.
</important>


## Start chatting

To open AI Assistant, select the **AI Assistant** button in the top toolbar from anywhere in the Elastic Security app. You can also use the keyboard shortcut **Cmd + ;** (or **Ctrl + ;** on Windows).
![AI Assistant button](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-ai-assistant-button.png)

This opens the **Welcome** chat interface, where you can ask general questions about Elastic Security.
You can also chat with AI Assistant from several particular pages in Elastic Security where you can easily send context-specific data and prompts to AI Assistant.
- [Alert details](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/detect-and-alert/view-detection-alert-details) or Event details flyout: Click **Chat** while viewing the details of an alert or event.
- [Rules page](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/detect-and-alert/manage-detection-rules): Use AI Assistant to help create or correct rule queries.
- [Data Quality dashboard](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/dashboards/data-quality-dashboard): Select the **Incompatible fields** tab, then click **Chat**. (This is only available for fields marked red, indicating they’re incompatible).

<note>
  Each user’s chat history (up to the 99 most recent conversations) and custom Quick Prompts are automatically saved, so you can leave Elastic Security 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.
</note>


## Interact with AI Assistant

Use these optional features to adjust and act on your conversations with AI Assistant:
- 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…**.
- `stack: ga 9.1` Select a *prompt tile* to start your conversation with a predefined goal or topic. Prompt tiles help you begin structured tasks or investigations into common Elastic Security workflows. The available prompt tiles include:
  - **Alerts**: Quickly identify and prioritize the most important alerts from the last 24 hours.
- **Research**: Get a summary of the latest Elastic Security Labs research articles.
- **Query**: Generate ES|QL queries based on a specific goal or requirement.
- **Suggest**: Explore the types of questions you can ask AI Assistant about Elastic Security.
- `stack: removed 9.1` Select a default *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 Security. The default Quick Prompts' availability varies based on context—for example, the **Alert summarization** Quick Prompt appears when you open AI Assistant while viewing an alert.
- Create new custom Quick Prompts by clicking **Add quick prompt**.

<tip>
  System Prompts and Quick Prompts can also be [configured](#configure-ai-assistant) from the corresponding tabs on the **Security AI settings** page.
</tip>

- In an active conversation, you can use the inline actions that appear on messages to incorporate AI Assistant’s responses into your workflows:
  - **Add note to timeline** (![Add note icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-icon-add-note.png "title")): Add the selected text to your currently active Timeline as a note.
- **Add to existing case** (![Add to case icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-icon-add-to-case.png "title")): Add a comment to an existing case using the selected text.
- **Copy to clipboard** (![Copy to clipboard icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-icon-copy.png "title")): Copy the text to clipboard to paste elsewhere. Also helpful for resubmitting a previous prompt.
- **Add to timeline** (![Add to timeline icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-icon-add-to-timeline.png "title")): Add a filter or query to Timeline using the text. This button appears for particular queries in AI Assistant’s responses.

Be sure to specify which language you’d like AI Assistant to use when writing a query. For example: "Can you generate an Event Query Language query to find four failed logins followed by a successful login?"
<tip>
  AI Assistant can remember particular information you tell it to remember. For example, you could tell it: "When answering any question about srv-win-s1-rsa or an alert that references it, mention that this host is in the New York data center". This will cause it to remember the detail you highlighted.
</tip>


## Share conversations

```
stack: ga 9.2
serverless: ga
```

Conversations that you start with AI Assistant are private by default and not visible to other members of your team. Sharing conversations can help you keep your teammates informed about your conversations with AI Assistant, making it easier to simultaneously collaborate with your teammates and AI Assistant. You have two ways to share conversations—either with selected members or more broadly to everyone with access to the space.
To share a conversation, do one of the following:
- Click the **Private** / **Shared** / **Restricted** badge next to the conversation's title. Use the dropdown menu to define the chat's visibility. If you select **Restricted**, a modal appears where you can select which users have access.
  ![AI Assistant chat with the sharing status dropdown open](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/ai-assistant-shared-status-badge.png)
- Go to **AI Assistant settings -> Conversations** to view all conversations you've started. Update their visibility as desired.

Once a conversation is shared, you can copy its URL to easily link it to your team:
- Open an AI Assistant chat, open the **Conversation settings** menu and select **Copy URL**.
- Open the **Conversations** tab of the AI Assistant settings page, then select the one you want to share and click **Copy URL**.

When someone shares a chat with you, you can review it but can't continue the conversation, since it is owned by another user. However, you can duplicate a shared conversation and continue where your colleague left off. To duplicate a shared conversation:
- Open an AI Assistant chat, open the **Conversation settings** menu and select **Duplicate**.
- Open the **Conversations** tab of the AI Assistant settings page, then select the one you want to duplicate and click **Duplicate**.

There are several [audit events](https://docs-v3-preview.elastic.dev/elastic/kibana/tree/main/reference/kibana-audit-events) related to conversation sharing. Click each title to show an example:
<dropdown title="1. security_assistant_conversation_shared">
  ```
  {
    "event": {
      "action": "security_assistant_conversation_shared",
      "category": [
        "database"
      ],
      "type": [
        "change"
      ],
      "outcome": "success"
    },
    "user": {
      "id": "u_xSVO6jcSCvoEcle7e3XVVfBU4Swm1R8-x7pi5bxrSvU_0",
      "name": "test_daija_glover",
      "roles": [
        "superuser"
      ]
    },
    "kibana": {
      "space_id": "default",
      "session_id": "1AZ8kfSYHzVO5ZMZ97DrNi1wjN6BFKHTw75KH8WiF7w="
    },
    "trace": {
      "id": "7e080b32-41b4-453b-80fe-b9c1e12a1c57"
    },
    "client": {
      "ip": "127.0.0.1"
    },
    "http": {
      "request": {
        "headers": {
          "x-forwarded-for": "127.0.0.1"
        }
      }
    },
    "service": {
      "node": {
        "roles": [
          "background_tasks",
          "ui"
        ]
      }
    },
    "ecs": {
      "version": "9.0.0"
    },
    "@timestamp": "2025-08-26T13:16:10.422-06:00",
    "message": "User has shared conversation [id=b873b917-2fd0-4452-98e8-8c359f6acbfa, title=\"Getting Started with Elastic Security\"] to all users in the space",
    "log": {
      "level": "INFO",
      "logger": "plugins.security.audit.ecs"
    },
    "process": {
      "pid": 61536,
      "uptime": 65.705743792
    },
    "span": {
      "id": "8364fa9bf07311d6"
    }
  }
  ```
</dropdown>

<dropdown title="2. security_assistant_conversation_private">
  ```
  {
    "event": {
      "action": "security_assistant_conversation_private",
      "category": [
        "database"
      ],
      "type": [
        "change"
      ],
      "outcome": "success"
    },
    "user": {
      "id": "u_xSVO6jcSCvoEcle7e3XVVfBU4Swm1R8-x7pi5bxrSvU_0",
      "name": "test_daija_glover",
      "roles": [
        "superuser"
      ]
    },
    "kibana": {
      "space_id": "default",
      "session_id": "1AZ8kfSYHzVO5ZMZ97DrNi1wjN6BFKHTw75KH8WiF7w="
    },
    "trace": {
      "id": "ae998403-8453-44ae-a9b8-ac8002c3bf28"
    },
    "client": {
      "ip": "127.0.0.1"
    },
    "http": {
      "request": {
        "headers": {
          "x-forwarded-for": "127.0.0.1"
        }
      }
    },
    "service": {
      "node": {
        "roles": [
          "background_tasks",
          "ui"
        ]
      }
    },
    "ecs": {
      "version": "9.0.0"
    },
    "@timestamp": "2025-08-26T13:15:46.300-06:00",
    "message": "User has made private conversation [id=b873b917-2fd0-4452-98e8-8c359f6acbfa, title=\"Getting Started with Elastic Security\"]",
    "log": {
      "level": "INFO",
      "logger": "plugins.security.audit.ecs"
    },
    "process": {
      "pid": 61536,
      "uptime": 41.582780958
    },
    "span": {
      "id": "68a0d5f52faa17d4"
    }
  }
  ```
</dropdown>

<dropdown title="3. security_assistant_conversation_restricted">
  ```
  {
    "event": {
      "action": "security_assistant_conversation_restricted",
      "category": [
        "database"
      ],
      "type": [
        "change"
      ],
      "outcome": "success"
    },
    "user": {
      "id": "u_xSVO6jcSCvoEcle7e3XVVfBU4Swm1R8-x7pi5bxrSvU_0",
      "name": "test_daija_glover",
      "roles": [
        "superuser"
      ]
    },
    "kibana": {
      "space_id": "default",
      "session_id": "1AZ8kfSYHzVO5ZMZ97DrNi1wjN6BFKHTw75KH8WiF7w="
    },
    "trace": {
      "id": "b59f9790-87ff-45f0-b28e-1d9ffa6cfb09"
    },
    "client": {
      "ip": "127.0.0.1"
    },
    "http": {
      "request": {
        "headers": {
          "x-forwarded-for": "127.0.0.1"
        }
      }
    },
    "service": {
      "node": {
        "roles": [
          "background_tasks",
          "ui"
        ]
      }
    },
    "ecs": {
      "version": "9.0.0"
    },
    "@timestamp": "2025-08-26T14:40:59.897-06:00",
    "message": "User has restricted conversation [id=b873b917-2fd0-4452-98e8-8c359f6acbfa, title=\"Getting Started with Elastic Security\"] to user ([id=u_LdnmWaOWbWS1ObwqRW2MLWMkWtxCSyiElishzEpew0g_0, name=test_dina_bahringer])",
    "log": {
      "level": "INFO",
      "logger": "plugins.security.audit.ecs"
    },
    "process": {
      "pid": 77921,
      "uptime": 29.727069625
    },
    "span": {
      "id": "80e57252aceea924"
    }
  }
  ```
</dropdown>


## Configure AI Assistant

To adjust general AI Assistant settings from the chat window, click the **Assistant settings menu** button in the upper-right.
![AI Assistant's settings popover](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-ai-assistant-settings-menu.png)

The first three options (**AI Assistant settings**, **Knowledge Base**, and **Anonymization**) open the corresponding tabs of the **Security AI settings** page. The **Alerts to analyze** button allows you to adjust how many alerts to include as context for your conversation.
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".
It has the following tabs:
- **Conversations:** The **Streaming** setting controls whether AI Assistant’s responses appear word-by-word (streamed), or as a complete block of text. After the streaming setting is a list of all saved conversations. From here you can change their visibility, system prompt, and connector.
- **Connectors:** Manage all LLM connectors.
- **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.
- **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.
- **Anonymization:** Select fields to include as plaintext, to obfuscate, and to not send when you provide events to AI Assistant as context. [Learn more](#ai-assistant-anonymization).
- **Knowledge base:** Provide additional context to AI Assistant. [Learn more](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/ai-assistant-knowledge-base).

To adjust the settings for a specific chat, click the **Conversation settings** button in the upper-right of its chat window.
![AI Assistant's chat options menu](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-ai-assistant-chat-options-menu.png)

The **Copy URL** and **Duplicate** options allow you to share conversations (by sending their URL) and to continue conversations that were shared with you (by duplicating them). The **Delete** option appears for the conversation owner only and allows you to remove a saved conversation.
Settings in the **Chat options** section 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](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/ai-assistant-knowledge-base), and content from Elastic's Security Labs and [product documentation](/elastic/docs-content/pull/4236/solutions/security/ai/ai-assistant-knowledge-base#elastic-docs).

### Anonymization

<admonition title="Requirements">
  To modify Anonymization settings, you need the **Elastic AI Assistant: All** privilege, with **Customize sub-feature privileges** enabled.
</admonition>

When you send alert data to AI Assistant, you may want to obfuscate sensitive information before it reaches the LLM provider.
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 (replaced by placeholders), so AI Assistant won't have access to their actual values.
This can help with:
- **Compliance**: Avoid sending PII or sensitive data to third-party LLM providers.
- **Privacy**: Protect internal data while still enabling AI analysis.
- **Policy**: Meet your organization's data handling requirements.

<note>
  You can access anonymization settings directly from the **Attack Discovery** page by clicking the settings (![Settings icon](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-icon-settings.png "title")) button next to the model selection dropdown menu.
</note>

![AI Assistant's settings menu](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/images/security-assistant-anonymization-menu.png)

These fields are among those most likely to provide relevant context to AI Assistant, and are included by default.
The **Show anonymized** toggle controls whether you see the obfuscated or plaintext versions of the fields you sent to AI Assistant. In other words, it controls how fields that were already sent and obfuscated appear to you. It doesn’t control what gets obfuscated — that’s determined by the anonymization settings.
When you include a particular event as context, such as an alert from the Alerts page, you can adjust anonymization behavior for the specific event. Be sure the anonymization behavior meets your specifications before sending a message with the event attached.

### Knowledge base

The **Knowledge base** tab of the **Security AI settings** page allows you to enable AI Assistant to remember specified information, and use it as context to improve response quality. To learn more, refer to [AI Assistant Knowledge Base](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/security/ai/ai-assistant-knowledge-base).

### Get the most from your queries

Elastic AI Assistant allows you to take full advantage of the Elastic Security platform to improve your security operations. It can help you write an ES|QL query for a particular use case, or answer general questions about how to use the platform. Its ability to assist you depends on the specificity and detail of your questions. The more context and detail you provide, the more tailored and useful its responses will be.
<note>
  `stack: ga 9.1` `serverless: ga` The agent has access to index names and field metadata from your cluster. This contextual information helps improve ESQL generation, though it may slightly increase response times.
</note>

To maximize its usefulness, consider using more detailed prompts or asking for additional information. For instance, after asking for an ES|QL query example, you could ask a follow-up question like, “Could you give me some other examples?” You can also ask for clarification or further exposition, for example "Provide comments explaining the query you just gave."
In addition to practical advice, AI Assistant can offer conceptual advice, tips, and best practices for enhancing your security measures. You can ask it, for example:
- “How do I set up a machine learning job in Elastic Security to detect anomalies in network traffic volume over time?”
- “I need to monitor for unusual file creation patterns that could indicate ransomware activity. How would I construct this query using EQL?”


## Learn more

The capabilities and ways to interact with AI Assistant can differ for each solution. For more information about how AI Assistant works in Observability and Search, refer to [Elastic AI Assistant for Observability and Search](https://docs-v3-preview.elastic.dev/elastic/docs-content/pull/4236/solutions/observability/observability-ai-assistant).