Skip to content
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

Add Host Risk metadata data to alerts flyout #113274

Merged
merged 25 commits into from
Oct 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
1d97cd1
Filter out empty values from alert flyout overview
machadoum Sep 28, 2021
5b47838
Add Host Risk metadata data to alerts flyout
machadoum Sep 23, 2021
ae40669
Update i18n
machadoum Sep 28, 2021
18366f6
Add feature flag to host risk data query
machadoum Sep 28, 2021
aaf90ad
Fix unit tests
machadoum Sep 29, 2021
9978912
Add support for feature disable and no data for host available
machadoum Sep 29, 2021
450ccc4
Fix typescript error
machadoum Sep 29, 2021
0720ec2
Simplifies host risk query logic and improves types
machadoum Sep 30, 2021
ae4333b
Update jest snapshot
machadoum Sep 30, 2021
e66ffb8
Swap investigation guide and enrichment data places in the UI
machadoum Sep 30, 2021
d93cfc4
Update alert flyout panels to have rounded corners
machadoum Sep 30, 2021
f16fe1b
Fix unit test
machadoum Sep 30, 2021
1b5f850
UI improvements
machadoum Oct 1, 2021
bb0167d
Fix unit test
machadoum Oct 4, 2021
2e599c0
Refactor use_risky_host_links to be generic and resuable for alert fl…
machadoum Oct 4, 2021
c338d4d
Improve getSummaryRows empty value check and move it to a new file
machadoum Oct 4, 2021
8f48c18
Please code review
machadoum Oct 5, 2021
16eb7f8
Fix Host risk empty state
machadoum Oct 5, 2021
5ea039b
Extract HostRiskData component to a file and add unit tests
machadoum Oct 5, 2021
fe8b8ac
Remove EuiSpacer from host risk and wrapp it with an EuiFlexGroup
machadoum Oct 5, 2021
d286bde
Add a loading state to useHostsRiskScore to simplify the code
machadoum Oct 5, 2021
156b40c
Migrate alert_summary_view.test to react testing library
machadoum Oct 6, 2021
7e27b6f
Fix overview page crashing
machadoum Oct 6, 2021
4a18a9d
Transform ThreatSummaryPanelHeader tooltip into a EuiPopover and a Eu…
machadoum Oct 6, 2021
48856b7
Refactor threat summary by extracting components and renaming
machadoum Oct 6, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion x-pack/plugins/security_solution/common/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ export const ELASTIC_NAME = 'estc';

export const METADATA_TRANSFORM_STATS_URL = `/api/transform/transforms/${METADATA_TRANSFORMS_PATTERN}/_stats`;

export const RISKY_HOSTS_INDEX = 'ml_host_risk_score_latest';
export const HOST_RISK_SCORES_INDEX = 'ml_host_risk_score_latest';

export const TRANSFORM_STATES = {
ABORTING: 'aborting',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export * from './common';
export * from './details';
export * from './first_last_seen';
export * from './kpi';
export * from './risky_hosts';
export * from './risk_score';
export * from './overview';
export * from './uncommon_processes';

Expand All @@ -23,6 +23,6 @@ export enum HostsQueries {
hosts = 'hosts',
hostsEntities = 'hostsEntities',
overview = 'overviewHost',
riskyHosts = 'riskyHosts',
hostsRiskScore = 'hostsRiskScore',
uncommonProcesses = 'uncommonProcesses',
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* 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.
*/

import { FactoryQueryTypes } from '../..';
import {
IEsSearchRequest,
IEsSearchResponse,
} from '../../../../../../../../src/plugins/data/common';
import { Inspect, Maybe, TimerangeInput } from '../../../common';

export interface HostsRiskScoreRequestOptions extends IEsSearchRequest {
defaultIndex: string[];
factoryQueryType?: FactoryQueryTypes;
hostName?: string;
timerange?: TimerangeInput;
}

export interface HostsRiskScoreStrategyResponse extends IEsSearchResponse {
inspect?: Maybe<Inspect>;
}

export interface HostsRiskScore {
host: {
name: string;
};
risk_score: number;
risk: string;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import {
HostsKpiUniqueIpsStrategyResponse,
HostsKpiUniqueIpsRequestOptions,
HostFirstLastSeenRequestOptions,
HostsRiskyHostsStrategyResponse,
HostsRiskyHostsRequestOptions,
HostsRiskScoreStrategyResponse,
HostsRiskScoreRequestOptions,
} from './hosts';
import {
NetworkQueries,
Expand Down Expand Up @@ -126,8 +126,8 @@ export type StrategyResponseType<T extends FactoryQueryTypes> = T extends HostsQ
? HostDetailsStrategyResponse
: T extends UebaQueries.riskScore
? RiskScoreStrategyResponse
: T extends HostsQueries.riskyHosts
? HostsRiskyHostsStrategyResponse
: T extends HostsQueries.hostsRiskScore
? HostsRiskScoreStrategyResponse
: T extends UebaQueries.hostRules
? HostRulesStrategyResponse
: T extends UebaQueries.userRules
Expand Down Expand Up @@ -182,8 +182,8 @@ export type StrategyResponseType<T extends FactoryQueryTypes> = T extends HostsQ

export type StrategyRequestType<T extends FactoryQueryTypes> = T extends HostsQueries.hosts
? HostsRequestOptions
: T extends HostsQueries.riskyHosts
? HostsRiskyHostsRequestOptions
: T extends HostsQueries.hostsRiskScore
? HostsRiskScoreRequestOptions
: T extends HostsQueries.details
? HostDetailsRequestOptions
: T extends HostsQueries.overview
Expand Down
Loading