Skip to content

Commit

Permalink
Change default vulnerabilities tables columns fields (#6703)
Browse files Browse the repository at this point in the history
  • Loading branch information
asteriscos authored May 23, 2024
1 parent 489c10b commit ed8ad60
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,24 @@ export const EventsSelectedFiles = {
'syscheck.event',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
mitre: [
'agent.name',
'rule.mitre.id',
'rule.mitre.tactic',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
sca: [
'data.sca.check.title',
'data.sca.check.file',
'data.sca.check.result',
'data.sca.policy',
],
general: [
'agent.name',
'rule.description',
'rule.level',
'rule.id',
],
aws: [
'data.aws.source',
'rule.description',
'rule.level',
'rule.id',
],
general: ['agent.name', 'rule.description', 'rule.level', 'rule.id'],
aws: ['data.aws.source', 'rule.description', 'rule.level', 'rule.id'],
gcp: [
'agent.name',
'data.gcp.jsonPayload.vmInstanceName',
Expand All @@ -52,13 +42,7 @@ export const EventsSelectedFiles = {
'data.gcp.resource.type',
'data.gcp.severity',
],
pm: [
'agent.name',
'data.title',
'rule.description',
'rule.level',
'rule.id',
],
pm: ['agent.name', 'data.title', 'rule.description', 'rule.level', 'rule.id'],
audit: [
'agent.name',
'data.audit.command',
Expand All @@ -85,10 +69,9 @@ export const EventsSelectedFiles = {
],
vuls: [
'agent.name',
'data.vulnerability.package.name',
'data.vulnerability.cve',
'data.vulnerability.severity',
'data.vulnerability.status'
'data.vulnerability.cve',
'data.vulnerability.package.name',
],
virustotal: [
'agent.name',
Expand Down Expand Up @@ -118,43 +101,37 @@ export const EventsSelectedFiles = {
'rule.pci_dss',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
gdpr: [
'agent.name',
'rule.gdpr',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
hipaa: [
'agent.name',
'rule.hipaa',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
nist: [
'agent.name',
'rule.nist_800_53',
'rule.description',
'rule.level',
'rule.id'
],
tsc: [
'agent.name',
'rule.tsc',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],
tsc: ['agent.name', 'rule.tsc', 'rule.description', 'rule.level', 'rule.id'],
office: [
'data.office365.Subscription',
'data.office365.Operation',
'data.office365.UserId',
'data.office365.ClientIP',
'rule.level',
'rule.id'
'rule.id',
],
github: [
'agent.id',
Expand All @@ -163,7 +140,6 @@ export const EventsSelectedFiles = {
'data.github.org',
'rule.description',
'rule.level',
'rule.id'
'rule.id',
],

};
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ import { EuiDataGridColumn } from '@elastic/eui';
export const MAX_ENTRIES_PER_QUERY = 10000;

export const inventoryTableDefaultColumns: EuiDataGridColumn[] = [
{
id: 'agent.id',
},
{
id: 'agent.name',
},
Expand All @@ -16,12 +13,12 @@ export const inventoryTableDefaultColumns: EuiDataGridColumn[] = [
id: 'package.version',
},
{
id: 'vulnerability.severity',
id: 'vulnerability.description',
},
{
id: 'vulnerability.id',
id: 'vulnerability.severity',
},
{
id: 'vulnerability.score.base',
id: 'vulnerability.id',
},
];

0 comments on commit ed8ad60

Please sign in to comment.