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

2 lines
205 B
Bash
Raw Normal View History

2024-10-24 23:09:21 +08:00
aws securityhub get-findings --filters '{"SeverityLabel":[{"Value": "HIGH","Comparison":"EQUALS"}]}' --max-items 500 | jq -cr '.Findings[] | [.AwsAccountId,.Title,.Resources[].Id,.Severity.Label] | @csv'