-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Cases] Auto-extract cases observables in add to case workflow #233027
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
Merged
michaelolo24
merged 9 commits into
elastic:main
from
christineweng:cases-extract-observables
Sep 30, 2025
+2,481
−261
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
b7c0935
auto extract observables
christineweng b6d91e9
disable by default and comments
christineweng 47e2501
Merge branch 'main' into cases-extract-observables
michaelolo24 64ecb55
Merge branch 'main' into cases-extract-observables
lgestc 791b434
Merge branch 'main' into cases-extract-observables
michaelolo24 43614ec
Merge branch 'main' into cases-extract-observables
michaelolo24 480e8c8
Merge branch 'main' into cases-extract-observables
michaelolo24 329d623
Merge branch 'main' into cases-extract-observables
michaelolo24 f25e848
Merge branch 'main' into cases-extract-observables
michaelolo24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
x-pack/platform/plugins/shared/cases/common/constants/observables.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
|
|
||
| export const OBSERVABLE_TYPE_IPV4 = { | ||
| label: 'IPv4', | ||
| key: 'observable-type-ipv4', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_IPV6 = { | ||
| label: 'IPv6', | ||
| key: 'observable-type-ipv6', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_URL = { | ||
| label: 'URL', | ||
| key: 'observable-type-url', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_HOSTNAME = { | ||
| label: 'Host name', | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Updated label from |
||
| key: 'observable-type-hostname', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_FILE_HASH = { | ||
| label: 'File hash', | ||
| key: 'observable-type-file-hash', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_FILE_PATH = { | ||
| label: 'File path', | ||
| key: 'observable-type-file-path', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_EMAIL = { | ||
| label: 'Email', | ||
| key: 'observable-type-email', | ||
| } as const; | ||
|
|
||
| export const OBSERVABLE_TYPE_DOMAIN = { | ||
| label: 'Domain', | ||
| key: 'observable-type-domain', | ||
| } as const; | ||
|
|
||
| /** | ||
| * Exporting an array of built-in observable types for use in the application | ||
| */ | ||
| export const OBSERVABLE_TYPES_BUILTIN: { label: string; key: string }[] = [ | ||
| OBSERVABLE_TYPE_IPV4, | ||
| OBSERVABLE_TYPE_IPV6, | ||
| OBSERVABLE_TYPE_URL, | ||
| OBSERVABLE_TYPE_HOSTNAME, | ||
| OBSERVABLE_TYPE_FILE_HASH, | ||
| OBSERVABLE_TYPE_FILE_PATH, | ||
| OBSERVABLE_TYPE_EMAIL, | ||
| OBSERVABLE_TYPE_DOMAIN, | ||
| ]; | ||
|
|
||
| export const OBSERVABLE_TYPES_BUILTIN_KEYS = OBSERVABLE_TYPES_BUILTIN.map(({ key }) => key); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use this flag to enable/disable auto extract observables in alerts table. Currently add to case from row action is working as expected, but bulk action isn't working yet and will be tackled in a separate PR