Skip to content

Commit 6050c9f

Browse files
committed
feat(alert-fields): add new fields for target and adversary details
1 parent 166cc0f commit 6050c9f

2 files changed

Lines changed: 43 additions & 0 deletions

File tree

frontend/src/app/data-management/alert-management/shared/components/alert-host-detail/alert-host-detail.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import {IncidentOriginTypeEnum} from '../../../../../shared/enums/incident-respo
55
import {UtmAlertType} from '../../../../../shared/types/alert/utm-alert.type';
66
import {UtmFieldType} from '../../../../../shared/types/table/utm-field.type';
77
import {AlertFieldService} from '../../services/alert-field.service';
8+
import {isEmpty} from "rxjs/operators";
89

910
@Component({
1011
selector: 'app-alert-host-detail',

frontend/src/app/shared/constants/alert/alert-field.constant.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ export const ALERT_IMPACT_INTEGRITY_FIELD = 'impact.integrity';
7171

7272
// TARGET
7373
export const ALERT_TARGET_IP_FIELD = 'target.ip';
74+
export const ALERT_TARGET_FILE_FIELD = 'target.file';
75+
export const ALERT_TARGET_HOST_FIELD = 'target.host';
76+
export const ALERT_TARGET_USER_FIELD = 'target.user';
7477
export const ALERT_TARGET_BYTES_SENT_FIELD = 'target.bytesSent';
7578
export const ALERT_TARGET_URL_FIELD = 'target.url';
7679
export const ALERT_TARGET_DOMAIN_FIELD = 'target.domain';
@@ -84,6 +87,9 @@ export const ALERT_TARGET_GEOLOCATION_LONGITUDE_FIELD = 'target.geolocation.long
8487

8588
// ADVERSARY
8689
export const ALERT_ADVERSARY_IP_FIELD = 'adversary.ip';
90+
export const ALERT_ADVERSARY_FILE_FIELD = 'adversary.file';
91+
export const ALERT_ADVERSARY_HOST_FIELD = 'adversary.host';
92+
export const ALERT_ADVERSARY_USER_FIELD = 'adversary.user';
8793
export const ALERT_ADVERSARY_BYTES_SENT_FIELD = 'adversary.bytesSent';
8894
export const ALERT_ADVERSARY_URL_FIELD = 'adversary.url';
8995
export const ALERT_ADVERSARY_DOMAIN_FIELD = 'adversary.domain';
@@ -194,6 +200,24 @@ export const ALERT_FIELDS: UtmFieldType[] = [
194200
field: ALERT_TARGET_GEOLOCATION_LONGITUDE_FIELD,
195201
type: ElasticDataTypesEnum.STRING,
196202
visible: false,
203+
},
204+
{
205+
label: 'Target File',
206+
field: ALERT_TARGET_FILE_FIELD,
207+
type: ElasticDataTypesEnum.STRING,
208+
visible: false,
209+
},
210+
{
211+
label: 'Target Host',
212+
field: ALERT_TARGET_HOST_FIELD,
213+
type: ElasticDataTypesEnum.STRING,
214+
visible: false,
215+
},
216+
{
217+
label: 'Target User',
218+
field: ALERT_TARGET_USER_FIELD,
219+
type: ElasticDataTypesEnum.STRING,
220+
visible: false,
197221
}
198222
]
199223
},
@@ -250,6 +274,24 @@ export const ALERT_FIELDS: UtmFieldType[] = [
250274
field: ALERT_ADVERSARY_GEOLOCATION_LONGITUDE_FIELD,
251275
type: ElasticDataTypesEnum.STRING,
252276
visible: false,
277+
},
278+
{
279+
label: 'Adversary File',
280+
field: ALERT_ADVERSARY_FILE_FIELD,
281+
type: ElasticDataTypesEnum.STRING,
282+
visible: false,
283+
},
284+
{
285+
label: 'Adversary Host',
286+
field: ALERT_ADVERSARY_HOST_FIELD,
287+
type: ElasticDataTypesEnum.STRING,
288+
visible: false,
289+
},
290+
{
291+
label: 'Adversary User',
292+
field: ALERT_ADVERSARY_URL_FIELD,
293+
type: ElasticDataTypesEnum.STRING,
294+
visible: false,
253295
}
254296
]
255297
},

0 commit comments

Comments
 (0)