Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding EPSS Score Column #2321

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion aws/table_aws_inspector2_finding.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func tableAwsInspector2Finding(_ context.Context) *plugin.Table {
{Name: "first_observed_at", Operators: []string{"<=", ">="}, Require: plugin.Optional},
{Name: "fix_available", Operators: []string{"=", "<>"}, Require: plugin.Optional},
{Name: "inspector_score", Operators: []string{"<=", ">="}, Require: plugin.Optional},
{Name: "epss_score", Operators: []string{"<=", ">="}, Require: plugin.Optional},
{Name: "last_observed_at", Operators: []string{"<=", ">="}, Require: plugin.Optional},
{Name: "severity", Operators: []string{"=", "<>"}, Require: plugin.Optional},
{Name: "component_id", Operators: []string{"=", "<>"}, Require: plugin.Optional, CacheMatch: query_cache.CacheMatchExact},
Expand Down Expand Up @@ -102,7 +103,7 @@ func tableAwsInspector2Finding(_ context.Context) *plugin.Table {
},
{
Name: "type",
Description: "The type of the finding. Valid values are: NETWORK_REACHABILITY | PACKAGE_VULNERABILITY.",
Description: "The type of the finding. Valid values are: NETWORK_REACHABILITY | PACKAGE_VULNERABILITY | CODE_VULNERABILITY.",
Type: proto.ColumnType_STRING,
},
{
Expand Down Expand Up @@ -303,6 +304,12 @@ func tableAwsInspector2Finding(_ context.Context) *plugin.Table {
Type: proto.ColumnType_STRING,
Transform: transform.FromField("PackageVulnerabilityDetails.VulnerabilityId"),
},
{
Name: "epss_score",
Description: "The finding's EPSS score.",
Type: proto.ColumnType_DOUBLE,
Transform: transform.FromField("Epss.Score"),
},
{
Name: "exploitability_details",
Description: "The details of an exploit available for a finding discovered in your environment.",
Expand Down Expand Up @@ -665,6 +672,12 @@ var findingNumberFilters = []numberFilterField{
return &(f.InspectorScore)
},
},
{
columnName: "epss_score",
filterField: func(f *types.FilterCriteria) *[]types.NumberFilter {
return &(f.EpssScore)
},
},
}

var findingVulnerablePackageFilter = []vulnerablePackageFilter{
Expand Down
Loading