-
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
1 parent
4eede8f
commit 7b508d5
Showing
8 changed files
with
345 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
interface Mitre { | ||
tactic: string; | ||
techniques: string[]; | ||
} | ||
|
||
export interface Rule { | ||
customQuery: string; | ||
name: string; | ||
description: string; | ||
severity: string; | ||
riskScore: string; | ||
tags: string[]; | ||
timelineTemplate?: string; | ||
referenceUrls: string[]; | ||
falsePositivesExamples: string[]; | ||
mitre: Mitre[]; | ||
} | ||
|
||
const mitre1: Mitre = { | ||
tactic: 'Discovery (TA0007)', | ||
techniques: ['Cloud Service Discovery (T1526)', 'File and Directory Discovery (T1083)'], | ||
}; | ||
|
||
const mitre2: Mitre = { | ||
tactic: 'Execution (TA0002)', | ||
techniques: ['CMSTP (T1191)'], | ||
}; | ||
|
||
export const newRule: Rule = { | ||
customQuery: 'hosts.name: *', | ||
name: 'New Rule Test', | ||
description: 'The new rule description.', | ||
severity: 'High', | ||
riskScore: '17', | ||
tags: ['test', 'newRule'], | ||
referenceUrls: ['https://www.google.com/', 'https://elastic.co/'], | ||
falsePositivesExamples: ['False1', 'False2'], | ||
mitre: [mitre1, mitre2], | ||
}; |
Oops, something went wrong.