diff --git a/public/templates/agents/agents-vuls.html b/public/templates/agents/agents-vuls.html index 6f9de2903..360e2cab0 100644 --- a/public/templates/agents/agents-vuls.html +++ b/public/templates/agents/agents-vuls.html @@ -1,53 +1,74 @@ - + -
- - -
Critical severity alerts:
-
High severity alerts:
-
Medium severity alerts:
-
Low severity alerts:
-
-
-
+
+ + +
Critical severity alerts:
+
High severity alerts:
+
Medium severity alerts:
+
Low severity alerts:
+
+
+
-
- - - - -
+
+ + + + +
-
- - - Alerts severity over time - - - - - - - Affected packages - Top 5 - - - - -
+
+ + + Alerts severity over time + + + + + + + Most common rules + + + + +
+
+ + + Most common CVEs + + + + + + + Severity distribution + + + + + + + Commonly affected packages + + + + +
-
- - - Alerts summary - - - - -
- - - -
+
+ + + Alert summary + + + + +
+
\ No newline at end of file diff --git a/public/templates/overview/overview-vuls.html b/public/templates/overview/overview-vuls.html index 9c99759bc..6c0fc7a0c 100644 --- a/public/templates/overview/overview-vuls.html +++ b/public/templates/overview/overview-vuls.html @@ -1,4 +1,5 @@ - +
@@ -19,15 +20,15 @@
- - - Most affected agents - - - - + + + Most affected agents + + + + - + Alerts evolution over time @@ -37,21 +38,21 @@
- + Severity distribution - + Commonly affected packages - + Most common CVEs @@ -68,4 +69,4 @@
- + \ No newline at end of file diff --git a/public/utils/agents-metrics.js b/public/utils/agents-metrics.js index 577fc380d..1708a8f2b 100644 --- a/public/utils/agents-metrics.js +++ b/public/utils/agents-metrics.js @@ -21,9 +21,12 @@ const metricsAudit = { // Metrics Vulnerability Detector const metricsVulnerability = { - vulnCritical: '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-Critical-severity\'"]', - vulnHigh: '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-High-severity\'"]', - vulnMedium: '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-Medium-severity\'"]', + vulnCritical: + '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-Critical-severity\'"]', + vulnHigh: + '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-High-severity\'"]', + vulnMedium: + '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-Medium-severity\'"]', vulnLow: '[vis-id="\'Wazuh-App-Agents-vulnerability-Metric-Low-severity\'"]' }; diff --git a/server/integration-files/visualizations/agents/agents-vuls.js b/server/integration-files/visualizations/agents/agents-vuls.js index a13d149e8..6bf42b373 100644 --- a/server/integration-files/visualizations/agents/agents-vuls.js +++ b/server/integration-files/visualizations/agents/agents-vuls.js @@ -27,7 +27,7 @@ export default [ } }, { - _id: 'Wazuh-App-Agents-vulnerability-Alerts-summary', + _id: 'Wazuh-App-Agents-vulnerability-Alert-summary', _type: 'visualization', _source: { title: 'Alerts summary', @@ -44,7 +44,7 @@ export default [ } }, { - _id: 'Wazuh-App-Agents-vulnerability-Top-5-affected-packages', + _id: 'Wazuh-App-Agents-vulnerability-Commonly-affected-packages', _type: 'visualization', _source: { title: 'Top 5 affected packages', @@ -258,5 +258,54 @@ export default [ '{"index":"wazuh-alerts","filter":[],"query":{"query":"","language":"lucene"}}' } } + }, + { + _id: 'Wazuh-App-Agents-vulnerability-Most-common-rules', + _type: 'visualization', + _source: { + title: 'Most common rules', + visState: + '{"title":"Most common rules","type":"table","params":{"perPage":10,"showPartialRows":false,"showMetricsAtAllLevels":false,"sort":{"columnIndex":null,"direction":null},"showTotal":false,"totalFunc":"sum"},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"bucket","params":{"field":"rule.id","size":5,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing","customLabel":"Rule ID"}},{"id":"3","enabled":true,"type":"terms","schema":"bucket","params":{"field":"rule.description","size":1,"order":"desc","orderBy":"1","otherBucket":false,"otherBucketLabel":"Other","missingBucket":false,"missingBucketLabel":"Missing","customLabel":"Description"}}]}', + uiStateJSON: + '{"vis":{"params":{"sort":{"columnIndex":null,"direction":null}}}}', + description: '', + version: 1, + kibanaSavedObjectMeta: { + searchSourceJSON: + '{"index":"wazuh-alerts","filter":[],"query":{"query":"","language":"lucene"}}' + } + } + }, + { + _id: 'Wazuh-App-Agents-vulnerability-Vulnerability-severity-distribution', + _type: 'visualization', + _source: { + title: 'Severity distribution', + visState: + '{"title":"Severity distribution","type":"pie","params":{"type":"pie","addTooltip":true,"addLegend":true,"legendPosition":"right","isDonut":true,"labels":{"show":false,"values":true,"last_level":true,"truncate":100}},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"data.vulnerability.severity","size":5,"order":"desc","orderBy":"1","customLabel":"Severity"}}]}', + uiStateJSON: '{}', + description: '', + version: 1, + kibanaSavedObjectMeta: { + searchSourceJSON: + '{"index":"wazuh-alerts","filter":[],"query":{"query":"","language":"lucene"}}' + } + } + }, + { + _id: 'Wazuh-App-Agents-vulnerability-Vulnerability-Most-common-CVEs', + _type: 'visualization', + _source: { + title: 'Most common CVEs', + visState: + '{"title":"Most common CVEs","type":"pie","params":{"type":"pie","addTooltip":true,"addLegend":true,"legendPosition":"right","isDonut":true,"labels":{"show":false,"values":true,"last_level":true,"truncate":100}},"aggs":[{"id":"1","enabled":true,"type":"count","schema":"metric","params":{}},{"id":"2","enabled":true,"type":"terms","schema":"segment","params":{"field":"data.vulnerability.cve","size":5,"order":"desc","orderBy":"1","customLabel":"CVE"}}]}', + uiStateJSON: '{}', + description: '', + version: 1, + kibanaSavedObjectMeta: { + searchSourceJSON: + '{"index":"wazuh-alerts","filter":[],"query":{"query":"","language":"lucene"}}' + } + } } ];