Skip to content

Commit

Permalink
Added epss_score column to aws_inspector2_finding table (#2321)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbermuehler authored Oct 29, 2024
1 parent d87d706 commit c9b8622
Showing 1 changed file with 14 additions and 1 deletion.
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

0 comments on commit c9b8622

Please sign in to comment.