Skip to content

Commit

Permalink
[Security Solution][Detections] Adds Security Network ML Module to li…
Browse files Browse the repository at this point in the history
…st of available jobs (#97014) (#97637)

## Summary

This PR adds the `Security Network` ML Module to the available jobs displayed within the `ML Job Settings` UI within the Security Solution. Module was added as part of this PR: #96480




<p align="center">
  <img width="500" src="https://user-images.githubusercontent.com/2946766/114595590-c9f9be80-9c4b-11eb-9bcb-0c2d99b58195.png" />
</p>

Co-authored-by: Garrett Spong <spong@users.noreply.github.com>
  • Loading branch information
kibanamachine and spong authored Apr 20, 2021
1 parent 3c406dc commit 4635549
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,22 @@
],
"datafeeds": [
{
"id": "datafeed_high_count_by_destination_country",
"id": "datafeed-high_count_by_destination_country",
"file": "datafeed_high_count_by_destination_country.json",
"job_id": "high_count_by_destination_country"
},
{
"id": "datafeed_high_count_network_denies",
"id": "datafeed-high_count_network_denies",
"file": "datafeed_high_count_network_denies.json",
"job_id": "high_count_network_denies"
},
{
"id": "datafeed_high_count_network_events",
"id": "datafeed-high_count_network_events",
"file": "datafeed_high_count_network_events.json",
"job_id": "high_count_network_events"
},
{
"id": "datafeed_rare_destination_country",
"id": "datafeed-rare_destination_country",
"file": "datafeed_rare_destination_country.json",
"job_id": "rare_destination_country"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,6 @@ export const LOOK_BACK_TIME_TYPE =
export const MACHINE_LEARNING_DROPDOWN_INPUT =
'[data-test-subj="mlJobSelect"] [data-test-subj="comboBoxInput"]';

export const MACHINE_LEARNING_DROPDOWN_ITEM = '.euiFilterSelectItem';

export const MACHINE_LEARNING_TYPE = '[data-test-subj="machineLearningRuleType"]';

export const MITRE_TACTIC = '.euiContextMenuItem__text';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ import {
THRESHOLD_FIELD_SELECTION,
THRESHOLD_INPUT_AREA,
THRESHOLD_TYPE,
MACHINE_LEARNING_DROPDOWN_ITEM,
} from '../screens/create_new_rule';
import { TOAST_ERROR } from '../screens/shared';
import { SERVER_SIDE_EVENT_COUNT } from '../screens/timeline';
Expand Down Expand Up @@ -436,7 +435,7 @@ export const fillDefineIndicatorMatchRuleAndContinue = (rule: ThreatIndicatorRul
export const fillDefineMachineLearningRuleAndContinue = (rule: MachineLearningRule) => {
rule.machineLearningJobs.forEach((machineLearningJob) => {
cy.get(MACHINE_LEARNING_DROPDOWN_INPUT).click({ force: true });
cy.contains(MACHINE_LEARNING_DROPDOWN_ITEM, machineLearningJob).click();
cy.get(MACHINE_LEARNING_DROPDOWN_INPUT).type(`${machineLearningJob}{enter}`);
cy.get(MACHINE_LEARNING_DROPDOWN_INPUT).type('{esc}');
});
cy.get(ANOMALY_THRESHOLD_INPUT).type(`{selectall}${machineLearningRule.anomalyScoreThreshold}`, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ export const mlModules: string[] = [
'siem_winlogbeat',
'siem_winlogbeat_auth',
'security_linux',
'security_network',
'security_windows',
];

0 comments on commit 4635549

Please sign in to comment.