Set up AI features

This page explains how to set up Elastic Security AI features. It covers the required setup, optional setup that controls which models and chat experience are available, and setup that applies only to specific features.

Elastic Security AI features require a connection to a large language model (LLM), and users need privileges for the features they use.

If your subscription or project feature tier includes Elastic Managed LLMs, they're available by default with no setup required. To connect a different LLM, refer to Configure access to LLMs.

Model performance varies by task. To compare models, refer to the Large language model performance matrix.

For the privileges that each feature needs, refer to:

If your space still uses AI Assistant, refer to the requirements in AI Assistant for Security.

AI features work with their default settings. Change them to control which models and features are available, or which chat experience each space uses.

To limit which connectors and models AI features can use, or to turn AI features off, go to Feature Settings or GenAI Settings (depending on your Elastic Stack version). For details, refer to Manage access to AI features.

AlertZero has its own model settings, which start with preset models instead of your default model. To learn how the Workers pick a model and how to change it, refer to Select models for the Workers.

Elastic Agent Builder is the recommended chat experience, and each space uses one experience for all its users. To change the experience a space uses, refer to Migrate from AI Assistant to Agent Builder.

The following sections apply to specific features. Only use them if you plan to set up the feature it covers.

Elastic Agent Builder gets product context from installed documentation, and your own data from tools.

The Knowledge Base gives AI Assistant more context, such as your internal documentation or threat research. The Knowledge Base requires a machine learning node of at least 4 GB. Enable the Knowledge Base in each Kibana space where you want to use it. For steps to enable it and add knowledge, refer to AI Assistant Knowledge Base.

To run Attack Discovery from a workflow or from Elastic Agent Builder, turn on the securitySolution:enableAttackDiscoveryWorkflows advanced setting. This setting also lets you configure alert retrieval, generation, and validation in the Attacks view. After you turn it on, users also need Workflows privileges.

AlertZero is off by default, and you set it up in each space where you want it. Its Workers need an AI model, and some also need other features turned on. For what each Worker needs and how to start them, refer to Set up AlertZero.

Some features need a separate project or a local install: