{ "Name": "Block_ProxyScrape", "Priority": 0, "Statement": { "AndStatement": {"S...

@cR0w@infosec.exchange

{
"Name": "Block_ProxyScrape",
"Priority": 0,
"Statement": {
"AndStatement": {"Statements": [
{ "ByteMatchStatement": {
"SearchString": "/api/*",
"FieldToMatch": { "URIPath": {} },
"TextTransformations": [ { "Priority": 0, "Type": "LOWERCASE" } ],
"PositionalConstraint": "STARTS_WITH" } },
{ "SizeConstraintStatement": {
"FieldToMatch": { "SingleHeader": { "Name": "proxy-authorization" } },
"ComparisonOperator": "GT",
"Size": 0,
"TextTransformations": [ { "Priority": 0, "Type": "NONE" } ] } }
] }
},
"Action": { "Block": {} },
"VisibilityConfig": {
"SampledRequestsEnabled": true,
"CloudWatchMetricsEnabled": true,
"MetricName"; "Block_ProxyScrape"
}
}