[Cloud Security][Dashboard Enhancements] Create Aggregation query to get benchmarks #170750
Labels
8.12 candidate
Feature:Cloud-Security
Cloud Security related features
Team:Cloud Security
Cloud Security team related
verified
Motivation: I aim to create a new aggregation query that retrieves findings by benchmark, enabling users to quickly view and analyze grouped cloud assets. This will include benchmark data (ID, name, versions), passed/failed findings, posture score, and CIS section’s Compliance Score. The benchmark aggregation will utilize the stats API to enhance the Compliance Dashboard Data API ticket.
Acceptance Criteria:
A new aggregation query that collects cloud assets metadata and stats by
rule.benchmark.id
and `rule.benchmark.version.The aggregated results return a list of benchmark assets which include the rule benchmark ID and benchmark versions
The aggregated results should include
Apply
getIdentifierRuntimeMapping
to the aggregation query in order to get the number of cloud assets depending on posture type and ensure querying Backward compatibility.result.evaluation
field passed/failed findings.3.Add Resource type Aggregation under Benchmark Version Aggs
Resource type aggregation
shall aggregate CIS section compliance scores.4.Add Error Handling
Definition of Done
Note:
This ticket is subtask to
Epic - https://github.com/elastic/security-team/issues/7621
The text was updated successfully, but these errors were encountered: