Skip to content

Commit

Permalink
Adapt the new global menu redirections (#5827)
Browse files Browse the repository at this point in the history
* Fix endpoint summary and server managment redirections

* fix: adapt the redirections to applications

- Endpoints summary
- IT Hygiene
- Groups

* fix(health-check): fix redirection to health check the removed the tab query parameter from URL and then the previous URL could not be rebuilt

* fix(redirections): redirection from Overview app to Endpoints summary

* fix(redirections): removed wz- prefix from the redirections to applications

* fix: renamed apps redirection URLs

* fix: app redirections URLs

* fix: test

* fix: tests

---------

Co-authored-by: Antonio David Gutiérrez <[email protected]>
  • Loading branch information
JuanGarriuz and Desvelao authored Sep 18, 2023
1 parent 32e9be3 commit 6eafba2
Show file tree
Hide file tree
Showing 23 changed files with 1,337 additions and 917 deletions.
106 changes: 69 additions & 37 deletions plugins/main/common/wazuh-modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,133 +11,165 @@
*/
export const WAZUH_MODULES = {
general: {
title: 'Security events',
title: 'Threat hunting',
appId: 'threat-hunting',
description:
'Browse through your security alerts, identifying issues and threats in your environment.'
'Browse through your security alerts, identifying issues and threats in your environment.',
},
fim: {
title: 'Integrity monitoring',
title: 'File integrity monitoring',
appId: 'file-integrity-monitoring',
description:
'Alerts related to file changes, including permissions, content, ownership and attributes.'
'Alerts related to file changes, including permissions, content, ownership and attributes.',
},
pm: {
title: 'Policy monitoring',
title: 'Malware detection',
appId: 'malware-detection',
description:
'Verify that your systems are configured according to your security policies baseline.'
'Verify that your systems are configured according to your security policies baseline.',
},
vuls: {
title: 'Vulnerabilities',
title: 'Vulnerability detection',
appId: 'vulnerability-detection',
description:
'Discover what applications in your environment are affected by well-known vulnerabilities.'
'Discover what applications in your environment are affected by well-known vulnerabilities.',
},
oscap: {
title: 'OpenSCAP',
appId: 'openscap',
description:
'Configuration assessment and automation of compliance monitoring using SCAP checks.'
'Configuration assessment and automation of compliance monitoring using SCAP checks.',
},
audit: {
title: 'System auditing',
appId: 'system-auditing',
description:
'Audit users behavior, monitoring command execution and alerting on access to critical files.'
'Audit users behavior, monitoring command execution and alerting on access to critical files.',
},
pci: {
title: 'PCI DSS',
appId: 'pci-dss',
description:
'Global security standard for entities that process, store or transmit payment cardholder data.'
'Global security standard for entities that process, store or transmit payment cardholder data.',
},
gdpr: {
title: 'GDPR',
appId: 'gdpr',
description:
'General Data Protection Regulation (GDPR) sets guidelines for processing of personal data.'
'General Data Protection Regulation (GDPR) sets guidelines for processing of personal data.',
},
hipaa: {
title: 'HIPAA',
appId: 'hipaa',
description:
'Health Insurance Portability and Accountability Act of 1996 (HIPAA) provides data privacy and security provisions for safeguarding medical information.'
'Health Insurance Portability and Accountability Act of 1996 (HIPAA) provides data privacy and security provisions for safeguarding medical information.',
},
nist: {
title: 'NIST 800-53',
appId: 'nist-800-53',
description:
'National Institute of Standards and Technology Special Publication 800-53 (NIST 800-53) sets guidelines for federal information systems.'
'National Institute of Standards and Technology Special Publication 800-53 (NIST 800-53) sets guidelines for federal information systems.',
},
tsc: {
title: 'TSC',
appId: 'tsc',
description:
'Trust Services Criteria for Security, Availability, Processing Integrity, Confidentiality, and Privacy'
'Trust Services Criteria for Security, Availability, Processing Integrity, Confidentiality, and Privacy',
},
ciscat: {
title: 'CIS-CAT',
appId: 'ciscat',
description:
'Configuration assessment using Center of Internet Security scanner and SCAP checks.'
'Configuration assessment using Center of Internet Security scanner and SCAP checks.',
},
aws: {
title: 'Amazon AWS',
title: 'AWS',
appId: 'amazon-web-services',
description:
'Security events related to your Amazon AWS services, collected directly via AWS API.'
'Security events related to your Amazon AWS services, collected directly via AWS API.',
},
office: {
title: 'Office 365',
description:
'Security events related to your Office 365 services.'
appId: 'office365',
description: 'Security events related to your Office 365 services.',
},
gcp: {
title: 'Google Cloud Platform',
title: 'Google Cloud',
appId: 'google-cloud',
description:
'Security events related to your Google Cloud Platform services, collected directly via GCP API.' // TODO GCP
'Security events related to your Google Cloud Platform services, collected directly via GCP API.', // TODO GCP
},
virustotal: {
title: 'VirusTotal',
appId: 'virustotal',
description:
'Alerts resulting from VirusTotal analysis of suspicious files via an integration with their API.'
'Alerts resulting from VirusTotal analysis of suspicious files via an integration with their API.',
},
mitre: {
title: 'MITRE ATT&CK',
appId: 'mitre-attack',
description:
'Security events from the knowledge base of adversary tactics and techniques based on real-world observations'
'Security events from the knowledge base of adversary tactics and techniques based on real-world observations',
},
syscollector: {
title: 'Inventory data',
// This appId is not used, for consistency was added.
appId: 'it-hygiene',
description:
'Applications, network configuration, open ports and processes running on your monitored systems.'
'Applications, network configuration, open ports and processes running on your monitored systems.',
},
stats: {
title: 'Stats',
description: 'Stats for agent and logcollector'
// This appId is not used, for consistency was added.
appId: 'it-hygiene',
description: 'Stats for agent and logcollector',
},
configuration: {
title: 'Configuration',
// This appId is not used, for consistency was added.
appId: 'it-hygiene',
description:
'Check the current agent configuration remotely applied by its group.'
'Check the current agent configuration remotely applied by its group.',
},
osquery: {
title: 'Osquery',
appId: 'osquery',
description:
'Osquery can be used to expose an operating system as a high-performance relational database.'
'Osquery can be used to expose an operating system as a high-performance relational database.',
},
sca: {
title: 'Security configuration assessment',
description: 'Scan your assets as part of a configuration assessment audit.'
title: 'Configuration assessment',
appId: 'configuration-assessment',
description:
'Scan your assets as part of a configuration assessment audit.',
},
docker: {
title: 'Docker listener',
title: 'Docker',
appId: 'docker',
description:
'Monitor and collect the activity from Docker containers such as creation, running, starting, stopping or pausing events.'
'Monitor and collect the activity from Docker containers such as creation, running, starting, stopping or pausing events.',
},
github: {
title: 'GitHub',
appId: 'github',
description:
'Monitoring events from audit logs of your GitHub organizations.'
'Monitoring events from audit logs of your GitHub organizations.',
},
devTools: {
title: 'API console',
description: 'Test the Wazuh API endpoints.'
appId: 'api-console',
description: 'Test the Wazuh API endpoints.',
},
logtest: {
title: 'Test your logs',
description: 'Check your ruleset testing logs.'
appId: 'ruleset-test',
description: 'Check your ruleset testing logs.',
},

// TODO - Research the uses of this code.
testConfiguration: {
title: 'Test your configurations',
description: 'Check configurations before applying them'
}
appId: '',
description: 'Check configurations before applying them',
},
};
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { SyscollectorTable } from './components/syscollector-table';
import { processColumns, portsColumns, packagesColumns } from './columns';
import { API_NAME_AGENT_STATUS } from '../../../../common/constants';
import { webDocumentationLink } from '../../../../common/services/web_documentation';
import { getNavigationAppURL } from '../../../react-services/navigate-app';

export function SyscollectorInventory({ agent }) {
if (agent && agent.status === API_NAME_AGENT_STATUS.NEVER_CONNECTED) {
Expand Down Expand Up @@ -51,7 +52,11 @@ export function SyscollectorInventory({ agent }) {
</Fragment>
}
actions={
<EuiButton href='#/agents-preview?' color='primary' fill>
<EuiButton
href={getNavigationAppURL('/app/endpoints-summary#/agents-preview')}
color='primary'
fill
>
Back
</EuiButton>
}
Expand Down
Loading

0 comments on commit 6eafba2

Please sign in to comment.