Skip to content

[Security Solution] Security AI Prompts #13323

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

stephmilovic
Copy link

@stephmilovic stephmilovic commented Mar 26, 2025

Proposed commit message

Integration for Security AI Prompts

WHAT

This PR introduces a beta integration for Security AI Prompts, which provides pre-configured AI-driven security prompts in the Elastic Security solution. These prompts enhance automated threat detection and investigation workflows.

Users do not need to install the integration manually—it is automatically installed when they visit the Security Solution in Kibana.

For developers maintaining the integration, the prompts are generated in the Kibana repo and must be manually copied into this package when updates occur.

Requires elastic/package-spec#871

WHY

This enhancement streamlines AI-driven security assistance within Elastic Security, making it easier for analysts to leverage AI-generated insights. The automated installation removes friction for users, while the structured update process ensures prompt consistency across releases.

Checklist

  • I have reviewed tips for building integrations and this pull request is aligned with them.
  • I have added an entry to my package's changelog.yml file.
  • I have verified that Kibana version constraints are current according to guidelines.

Author's Checklist

  • Ensure the generated prompts are correctly formatted and copied into the integration package.
  • Verify that the prompts appear correctly in Elastic Assistant after installation.

How to test this PR locally

Developer Flow (Updating Prompts)

  1. In the Kibana repository, generate the Security AI Prompts:
    cd x-pack/solutions/security/plugins/elastic_assistant
    yarn generate-security-ai-prompts
  2. Copy the generated prompt files into the package:
    cd packages/security_ai_prompts/kibana/security_ai_prompt
    rm ./*.json
    cp $KIBANA_HOME/target/security_ai_prompts/*.json .
  3. Bump the version in the integration, and build the integration locally with:
    elastic-package lint && elastic-package build && elastic-package stack down && elastic-package stack up -d -v --services package-registry.
  4. Verify that the updated prompts are correctly reflected in Kibana.

User Flow (No Setup Required)

  1. Open Kibana Security Solution and navigate to Elastic Assistant.
  2. Confirm that Security AI Prompts are available for use.

Screenshots

Screenshot 2025-03-26 at 2 52 39 PM

Kibana PR

Once this integrations PR is merged, we can move forward with the Kibana PR: elastic/kibana#216106

andrew-goldstein and others added 5 commits March 25, 2025 12:05
- updated description that appears in Kibana
- update CODEOWNERS and ISSUE_TEMPLATE
- Test elastic-package from PR 871 - 45b69849daebc5557d5bf540dca60f561132f973
- move to 1.0
- updated manifest:
  kibana:
    version: from "^8.17.0" to "^9.1.0"
format_version: 3.0.0 (from higher, 3.3.2)
- update version to support 9.x
- latest prompt saved objects'
@stephmilovic stephmilovic added the enhancement New feature or request label Mar 26, 2025
@andrewkroh andrewkroh added the New Integration Issue or pull request for creating a new integration package. label Mar 26, 2025
@elasticmachine
Copy link

elasticmachine commented Mar 28, 2025

@elastic-vault-github-plugin-prod

🚀 Benchmarks report

Package crowdstrike 👍(3) 💚(0) 💔(2)

Expand to view
Data stream Previous EPS New EPS Diff (%) Result
falcon 7042.25 4566.21 -2476.04 (-35.16%) 💔
host 2801.12 2083.33 -717.79 (-25.63%) 💔

To see the full report comment with /test benchmark fullreport

Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
8.19 candidate enhancement New feature or request New Integration Issue or pull request for creating a new integration package.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants