Skip to content

Commit 203092c

Browse files
authored
Merge pull request #50 from mitre-attack/optional_analytic_fields
Optional analytic fields
2 parents 8100217 + 4a72fa2 commit 203092c

File tree

3 files changed

+22
-20
lines changed

3 files changed

+22
-20
lines changed

package-lock.json

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/generator/index.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,6 @@ const minimalAnalytic: MinimalAnalytic = {
6666
x_mitre_domains: ['enterprise-attack'],
6767
x_mitre_platforms: ['Windows'],
6868
description: 'Adversary execution of PowerShell commands with suspicious parameters',
69-
x_mitre_log_source_references: [
70-
{
71-
x_mitre_data_component_ref: 'x-mitre-data-component--1a2b3c4d-5e6f-789a-bcde-123456789abc',
72-
name: 'PowerShell',
73-
channel: '1',
74-
},
75-
{
76-
x_mitre_data_component_ref: 'x-mitre-data-component--1a2b3c4d-5e6f-789a-bcde-123456789abc',
77-
name: 'PowerShell',
78-
channel: '2',
79-
},
80-
],
81-
x_mitre_mutable_elements: [
82-
{
83-
field: 'TimeWindow',
84-
description: 'Time window for correlation analysis',
85-
},
86-
],
8769
};
8870

8971
type MinimalCampaign = Omit<Campaign, MinimalSdoKeys>;

src/schemas/sdo/analytic.schema.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ export const analyticSchema = attackBaseDomainObjectSchema
118118

119119
external_references: createAttackExternalReferencesSchema('x-mitre-analytic'),
120120

121-
x_mitre_log_source_references: xMitreLogSourceReferencesSchema,
121+
x_mitre_log_source_references: xMitreLogSourceReferencesSchema.optional(),
122122

123-
x_mitre_mutable_elements: xMitreMutableElementsSchema,
123+
x_mitre_mutable_elements: xMitreMutableElementsSchema.optional(),
124124

125125
x_mitre_domains: xMitreDomainsSchema,
126126

0 commit comments

Comments
 (0)