code-dumps/aws/aws-securityhub-summary.sh

2 lines
205 B
Bash

aws securityhub get-findings --filters '{"SeverityLabel":[{"Value": "HIGH","Comparison":"EQUALS"}]}' --max-items 500 | jq -cr '.Findings[] | [.AwsAccountId,.Title,.Resources[].Id,.Severity.Label] | @csv'