-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
78 additions
and
42 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 |
---|---|---|
|
@@ -36,6 +36,7 @@ export const ruleMock: NewRule = { | |
}; | ||
|
||
export const savedRuleMock: Rule = { | ||
author: [], | ||
actions: [], | ||
created_at: 'mm/dd/yyyyTHH:MM:sssz', | ||
created_by: 'mockUser', | ||
|
@@ -58,11 +59,13 @@ export const savedRuleMock: Rule = { | |
rule_id: 'bbd3106e-b4b5-4d7c-a1a2-47531d6a2baf', | ||
language: 'kuery', | ||
risk_score: 75, | ||
risk_score_mapping: [], | ||
name: 'Test rule', | ||
max_signals: 100, | ||
query: "user.email: '[email protected]'", | ||
references: [], | ||
severity: 'high', | ||
severity_mapping: [], | ||
tags: ['APM'], | ||
to: 'now', | ||
type: 'query', | ||
|
@@ -79,6 +82,7 @@ export const rulesMock: FetchRulesResponse = { | |
data: [ | ||
{ | ||
actions: [], | ||
author: [], | ||
created_at: '2020-02-14T19:49:28.178Z', | ||
updated_at: '2020-02-14T19:49:28.320Z', | ||
created_by: 'elastic', | ||
|
@@ -96,12 +100,14 @@ export const rulesMock: FetchRulesResponse = { | |
output_index: '.siem-signals-default', | ||
max_signals: 100, | ||
risk_score: 73, | ||
risk_score_mapping: [], | ||
name: 'Credential Dumping - Detected - Elastic Endpoint', | ||
query: | ||
'event.kind:alert and event.module:endgame and event.action:cred_theft_event and endgame.metadata.type:detection', | ||
filters: [], | ||
references: [], | ||
severity: 'high', | ||
severity_mapping: [], | ||
updated_by: 'elastic', | ||
tags: ['Elastic', 'Endpoint'], | ||
to: 'now', | ||
|
@@ -112,6 +118,7 @@ export const rulesMock: FetchRulesResponse = { | |
}, | ||
{ | ||
actions: [], | ||
author: [], | ||
created_at: '2020-02-14T19:49:28.189Z', | ||
updated_at: '2020-02-14T19:49:28.326Z', | ||
created_by: 'elastic', | ||
|
@@ -129,11 +136,13 @@ export const rulesMock: FetchRulesResponse = { | |
output_index: '.siem-signals-default', | ||
max_signals: 100, | ||
risk_score: 47, | ||
risk_score_mapping: [], | ||
name: 'Adversary Behavior - Detected - Elastic Endpoint', | ||
query: 'event.kind:alert and event.module:endgame and event.action:rules_engine_event', | ||
filters: [], | ||
references: [], | ||
severity: 'medium', | ||
severity_mapping: [], | ||
updated_by: 'elastic', | ||
tags: ['Elastic', 'Endpoint'], | ||
to: 'now', | ||
|
This file contains 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 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 |
---|---|---|
|
@@ -32,6 +32,7 @@ describe('useRule', () => { | |
false, | ||
{ | ||
actions: [], | ||
author: [], | ||
created_at: 'mm/dd/yyyyTHH:MM:sssz', | ||
created_by: 'mockUser', | ||
description: 'some desc', | ||
|
@@ -56,8 +57,10 @@ describe('useRule', () => { | |
query: "user.email: '[email protected]'", | ||
references: [], | ||
risk_score: 75, | ||
risk_score_mapping: [], | ||
rule_id: 'bbd3106e-b4b5-4d7c-a1a2-47531d6a2baf', | ||
severity: 'high', | ||
severity_mapping: [], | ||
tags: ['APM'], | ||
threat: [], | ||
throttle: null, | ||
|
This file contains 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 |
---|---|---|
|
@@ -27,6 +27,7 @@ const testRule: Rule = { | |
}, | ||
}, | ||
], | ||
author: [], | ||
created_at: 'mm/dd/yyyyTHH:MM:sssz', | ||
created_by: 'mockUser', | ||
description: 'some desc', | ||
|
@@ -51,8 +52,10 @@ const testRule: Rule = { | |
query: "user.email: '[email protected]'", | ||
references: [], | ||
risk_score: 75, | ||
risk_score_mapping: [], | ||
rule_id: 'bbd3106e-b4b5-4d7c-a1a2-47531d6a2baf', | ||
severity: 'high', | ||
severity_mapping: [], | ||
tags: ['APM'], | ||
threat: [], | ||
throttle: null, | ||
|
This file contains 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 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 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.