diff --git "a/map-waf/AWS-WAF-Mapping.jsonl" "b/map-waf/AWS-WAF-Mapping.jsonl" new file mode 100644--- /dev/null +++ "b/map-waf/AWS-WAF-Mapping.jsonl" @@ -0,0 +1,93 @@ +{"input": "CRS XSS Rule 941100: XSS Attack Detected via libinjection", "output": "{\n \"Name\": \"CRS-941100\",\n \"Priority\": 941100,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"XssMatchStatement\": {\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"HTML_ENTITY_DECODE\"\n }\n ]\n }\n },\n {\n \"XssMatchStatement\": {\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"HTML_ENTITY_DECODE\"\n }\n ]\n }\n },\n {\n \"XssMatchStatement\": {\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"HTML_ENTITY_DECODE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941100\"\n }\n}"} +{"input": "CRS XSS Rule 941110: XSS Filter - Category 1: Script Tag Vector", "output": "{\n \"Name\": \"CRS-941110\",\n \"Priority\": 941110,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]*>[\\\\s\\\\S]*?\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]*>[\\\\s\\\\S]*?\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]*>[\\\\s\\\\S]*?\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941110\"\n }\n}"} +{"input": "CRS XSS Rule 941130: XSS Filter - Category 3: Attribute Vector", "output": "{\n \"Name\": \"CRS-941130\",\n \"Priority\": 941130,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i).(?:\\\\b(?:(?:x(?:link:href|html|mlns)|data:text/html|formaction)\\\\b|pattern[\\\\s\\\\x0b]*=)|(?:!ENTITY[\\\\s\\\\x0b]+(?:%[\\\\s\\\\x0b]+)?[^\\\\s\\\\x0b]+[\\\\s\\\\x0b]+(?:SYSTEM|PUBLIC)|@import|;base64)\\\\b)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i).(?:\\\\b(?:(?:x(?:link:href|html|mlns)|data:text/html|formaction)\\\\b|pattern[\\\\s\\\\x0b]*=)|(?:!ENTITY[\\\\s\\\\x0b]+(?:%[\\\\s\\\\x0b]+)?[^\\\\s\\\\x0b]+[\\\\s\\\\x0b]+(?:SYSTEM|PUBLIC)|@import|;base64)\\\\b)\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i).(?:\\\\b(?:(?:x(?:link:href|html|mlns)|data:text/html|formaction)\\\\b|pattern[\\\\s\\\\x0b]*=)|(?:!ENTITY[\\\\s\\\\x0b]+(?:%[\\\\s\\\\x0b]+)?[^\\\\s\\\\x0b]+[\\\\s\\\\x0b]+(?:SYSTEM|PUBLIC)|@import|;base64)\\\\b)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941130\"\n }\n}"} +{"input": "CRS XSS Rule 941140: XSS Filter - Category 4: Javascript URI Vector", "output": "{\n \"Name\": \"CRS-941140\",\n \"Priority\": 941140,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[a-z]+=(?:[^:=]+:.+;)*?[^:=]+:url\\\\(javascript\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[a-z]+=(?:[^:=]+:.+;)*?[^:=]+:url\\\\(javascript\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[a-z]+=(?:[^:=]+:.+;)*?[^:=]+:url\\\\(javascript\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941140\"\n }\n}"} +{"input": "CRS XSS Rule 941160: NoScript XSS InjectionChecker: HTML Injection", "output": "{\n \"Name\": \"CRS-941160\",\n \"Priority\": 941160,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)<[^0-9<>A-Z_a-z]*(?:[^\\\\s\\\\x0b\\\\\\\"'<>]*:)?[^0-9<>A-Z_a-z]*[^0-9A-Z_a-z]*?(?:s[^0-9A-Z_a-z]*?(?:c[^0-9A-Z_a-z]*?r[^0-9A-Z_a-z]*?i[^0-9A-Z_a-z]*?p[^0-9A-Z_a-z]*?t|t[^0-9A-Z_a-z]*?y[^0-9A-Z_a-z]*?l[^0-9A\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)<[^0-9<>A-Z_a-z]*(?:[^\\\\s\\\\x0b\\\\\\\"'<>]*:)?[^0-9<>A-Z_a-z]*[^0-9A-Z_a-z]*?(?:s[^0-9A-Z_a-z]*?(?:c[^0-9A-Z_a-z]*?r[^0-9A-Z_a-z]*?i[^0-9A-Z_a-z]*?p[^0-9A-Z_a-z]*?t|t[^0-9A-Z_a-z]*?y[^0-9A-Z_a-z]*?l[^0-9A\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)<[^0-9<>A-Z_a-z]*(?:[^\\\\s\\\\x0b\\\\\\\"'<>]*:)?[^0-9<>A-Z_a-z]*[^0-9A-Z_a-z]*?(?:s[^0-9A-Z_a-z]*?(?:c[^0-9A-Z_a-z]*?r[^0-9A-Z_a-z]*?i[^0-9A-Z_a-z]*?p[^0-9A-Z_a-z]*?t|t[^0-9A-Z_a-z]*?y[^0-9A-Z_a-z]*?l[^0-9A\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941160\"\n }\n}"} +{"input": "CRS XSS Rule 941170: NoScript XSS InjectionChecker: Attribute Injection", "output": "{\n \"Name\": \"CRS-941170\",\n \"Priority\": 941170,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i).*?(?:@[i\\\\x5c]|(?:[:=]|&#x?0*(?:58|3A|61|3D);?).*?(?:[(\\\\x5c]|&#x?0*(?:40|28|92|5C);?)))\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:.*?(?:@[i\\\\x5c]|(?:[:=]|&#x?0*(?:58|3A|61|3D);?).*?(?:[(\\\\x5c]|&#x?0*(?:40|28|92|5C);?)))\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:.*?(?:@[i\\\\x5c]|(?:[:=]|&#x?0*(?:58|3A|61|3D);?).*?(?:[(\\\\x5c]|&#x?0*(?:40|28|92|5C);?)))\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941190\"\n }\n}"} +{"input": "CRS XSS Rule 941200: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941200\",\n \"Priority\": 941200,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:<.*[:]?vmlframe.*?[\\\\s/+]*?src[\\\\s/+]*=)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:<.*[:]?vmlframe.*?[\\\\s/+]*?src[\\\\s/+]*=)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:<.*[:]?vmlframe.*?[\\\\s/+]*?src[\\\\s/+]*=)\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941200\"\n }\n}"} +{"input": "CRS XSS Rule 941210: Javascript Word Detected", "output": "{\n \"Name\": \"CRS-941210\",\n \"Priority\": 941210,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:j|&#(?:0*(?:74|106)|x0*[46]A);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:a|&#(?:0*(?:65|97)|x0*[46]1);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:j|&#(?:0*(?:74|106)|x0*[46]A);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:a|&#(?:0*(?:65|97)|x0*[46]1);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:j|&#(?:0*(?:74|106)|x0*[46]A);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:a|&#(?:0*(?:65|97)|x0*[46]1);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941210\"\n }\n}"} +{"input": "CRS XSS Rule 941220: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941220\",\n \"Priority\": 941220,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:v|&#(?:0*(?:118|86)|x0*[57]6);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:b|&#(?:0*(?:98|66)|x0*[46]2);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:v|&#(?:0*(?:118|86)|x0*[57]6);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:b|&#(?:0*(?:98|66)|x0*[46]2);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:v|&#(?:0*(?:118|86)|x0*[57]6);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(?:b|&#(?:0*(?:98|66)|x0*[46]2);)(?:[\\\\t\\\\n\\\\r]|&(?:#(?:0*(?:9|1[03])|x0*[AD]);?|(?:tab|newline);))*(\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941220\"\n }\n}"} +{"input": "CRS XSS Rule 941230: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941230\",\n \"Priority\": 941230,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941290\"\n }\n}"} +{"input": "CRS XSS Rule 941300: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941300\",\n \"Priority\": 941300,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)]*[\\\\xbe>]|<[^\\\\xbe]*\\\\xbe\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\xbc[^\\\\xbe>]*[\\\\xbe>]|<[^\\\\xbe]*\\\\xbe\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\xbc[^\\\\xbe>]*[\\\\xbe>]|<[^\\\\xbe]*\\\\xbe\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941310\"\n }\n}"} +{"input": "CRS XSS Rule 941350: UTF-7 Encoding IE XSS - Attack Detected", "output": "{\n \"Name\": \"CRS-941350\",\n \"Priority\": 941350,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\+ADw-.*(?:\\\\+AD4-|>)|<.*\\\\+AD4-\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\+ADw-.*(?:\\\\+AD4-|>)|<.*\\\\+AD4-\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\+ADw-.*(?:\\\\+AD4-|>)|<.*\\\\+AD4-\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941350\"\n }\n}"} +{"input": "CRS XSS Rule 941360: JSFuck / Hieroglyphy obfuscation detected", "output": "{\n \"Name\": \"CRS-941360\",\n \"Priority\": 941360,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"![!+ ]\\\\[\\\\]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"![!+ ]\\\\[\\\\]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"![!+ ]\\\\[\\\\]\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941360\"\n }\n}"} +{"input": "CRS XSS Rule 941370: JavaScript global variable found", "output": "{\n \"Name\": \"CRS-941370\",\n \"Priority\": 941370,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:self|document|this|top|window)\\\\s*(?:/\\\\*|[\\\\[)]).+?(?:\\\\]|\\\\*/)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:self|document|this|top|window)\\\\s*(?:/\\\\*|[\\\\[)]).+?(?:\\\\]|\\\\*/)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:self|document|this|top|window)\\\\s*(?:/\\\\*|[\\\\[)]).+?(?:\\\\]|\\\\*/)\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941370\"\n }\n}"} +{"input": "CRS XSS Rule 941390: Javascript method detected", "output": "{\n \"Name\": \"CRS-941390\",\n \"Priority\": 941390,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:eval|set(?:timeout|interval)|new[\\\\s\\\\x0b]+Function|a(?:lert|tob)|btoa|(?:promp|impor)t|con(?:firm|sole\\\\.(?:log|dir))|fetch)[\\\\s\\\\x0b]*[\\\\(\\\\{]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:eval|set(?:timeout|interval)|new[\\\\s\\\\x0b]+Function|a(?:lert|tob)|btoa|(?:promp|impor)t|con(?:firm|sole\\\\.(?:log|dir))|fetch)[\\\\s\\\\x0b]*[\\\\(\\\\{]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:eval|set(?:timeout|interval)|new[\\\\s\\\\x0b]+Function|a(?:lert|tob)|btoa|(?:promp|impor)t|con(?:firm|sole\\\\.(?:log|dir))|fetch)[\\\\s\\\\x0b]*[\\\\(\\\\{]\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941390\"\n }\n}"} +{"input": "CRS XSS Rule 941400: XSS JavaScript function without parentheses", "output": "{\n \"Name\": \"CRS-941400\",\n \"Priority\": 941400,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:\\\\[[^\\\\]]*\\\\][^.]*\\\\.)|Reflect[^.]*\\\\.).*(?:map|sort|apply)[^.]*\\\\..*call[^`]*`.*`\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:\\\\[[^\\\\]]*\\\\][^.]*\\\\.)|Reflect[^.]*\\\\.).*(?:map|sort|apply)[^.]*\\\\..*call[^`]*`.*`\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:\\\\[[^\\\\]]*\\\\][^.]*\\\\.)|Reflect[^.]*\\\\.).*(?:map|sort|apply)[^.]*\\\\..*call[^`]*`.*`\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941400\"\n }\n}"} +{"input": "CRS XSS Rule 941101: XSS Attack Detected via libinjection", "output": "{\n \"Name\": \"CRS-941101\",\n \"Priority\": 941101,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"XssMatchStatement\": {\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"HTML_ENTITY_DECODE\"\n }\n ]\n }\n },\n {\n \"XssMatchStatement\": {\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"HTML_ENTITY_DECODE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941101\"\n }\n}"} +{"input": "CRS XSS Rule 941120: XSS Filter - Category 2: Event Handler Vector", "output": "{\n \"Name\": \"CRS-941120\",\n \"Priority\": 941120,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\\\\"'`;/0-9=\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]on[a-zA-Z]{3,50}[\\\\s\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]*?=[^=]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\\\\"'`;/0-9=\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]on[a-zA-Z]{3,50}[\\\\s\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]*?=[^=]\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\\\\"'`;/0-9=\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]on[a-zA-Z]{3,50}[\\\\s\\\\x0B\\\\x09\\\\x0C\\\\x3B\\\\x2C\\\\x28\\\\x3B]*?=[^=]\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941120\"\n }\n}"} +{"input": "CRS XSS Rule 941150: XSS Filter - Category 5: Disallowed HTML Attributes", "output": "{\n \"Name\": \"CRS-941150\",\n \"Priority\": 941150,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:s(?:tyle|rc)|href)\\\\b[\\\\s\\\\S]*?=\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:s(?:tyle|rc)|href)\\\\b[\\\\s\\\\S]*?=\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:s(?:tyle|rc)|href)\\\\b[\\\\s\\\\S]*?=\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941150\"\n }\n}"} +{"input": "CRS XSS Rule 941181: Node-Validator Deny List Keywords", "output": "{\n \"Name\": \"CRS-941181\",\n \"Priority\": 941181,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"ByteMatchStatement\": {\n \"SearchString\": \"-->\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"LOWERCASE\"\n }\n ],\n \"PositionalConstraint\": \"CONTAINS\"\n }\n },\n {\n \"ByteMatchStatement\": {\n \"SearchString\": \"-->\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"LOWERCASE\"\n }\n ],\n \"PositionalConstraint\": \"CONTAINS\"\n }\n },\n {\n \"ByteMatchStatement\": {\n \"SearchString\": \"-->\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"LOWERCASE\"\n }\n ],\n \"PositionalConstraint\": \"CONTAINS\"\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941181\"\n }\n}"} +{"input": "CRS XSS Rule 941320: Possible XSS Attack Detected - HTML Tag Handler", "output": "{\n \"Name\": \"CRS-941320\",\n \"Priority\": 941320,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"<(?:a|abbr|acronym|address|applet|area|audioscope|b|base|basefront|bdo|bgsound|big|blackface|blink|blockquote|body|bq|br|button|caption|center|cite|code|col|colgroup|comment|dd|del|dfn|dir|div|dl|dt|e\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"<(?:a|abbr|acronym|address|applet|area|audioscope|b|base|basefront|bdo|bgsound|big|blackface|blink|blockquote|body|bq|br|button|caption|center|cite|code|col|colgroup|comment|dd|del|dfn|dir|div|dl|dt|e\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"<(?:a|abbr|acronym|address|applet|area|audioscope|b|base|basefront|bdo|bgsound|big|blackface|blink|blockquote|body|bq|br|button|caption|center|cite|code|col|colgroup|comment|dd|del|dfn|dir|div|dl|dt|e\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941320\"\n }\n}"} +{"input": "CRS XSS Rule 941330: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941330\",\n \"Priority\": 941330,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:[\\\\\\\"'][ ]*(?:[^a-z0-9~_:' ]|in).*?(?:(?:l|\\\\x5cu006C)(?:o|\\\\x5cu006F)(?:c|\\\\x5cu0063)(?:a|\\\\x5cu0061)(?:t|\\\\x5cu0074)(?:i|\\\\x5cu0069)(?:o|\\\\x5cu006F)(?:n|\\\\x5cu006E)|(?:n|\\\\x5cu006E)(?:a|\\\\x5cu0061)(?:m|\\\\x5c\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:[\\\\\\\"'][ ]*(?:[^a-z0-9~_:' ]|in).*?(?:(?:l|\\\\x5cu006C)(?:o|\\\\x5cu006F)(?:c|\\\\x5cu0063)(?:a|\\\\x5cu0061)(?:t|\\\\x5cu0074)(?:i|\\\\x5cu0069)(?:o|\\\\x5cu006F)(?:n|\\\\x5cu006E)|(?:n|\\\\x5cu006E)(?:a|\\\\x5cu0061)(?:m|\\\\x5c\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:[\\\\\\\"'][ ]*(?:[^a-z0-9~_:' ]|in).*?(?:(?:l|\\\\x5cu006C)(?:o|\\\\x5cu006F)(?:c|\\\\x5cu0063)(?:a|\\\\x5cu0061)(?:t|\\\\x5cu0074)(?:i|\\\\x5cu0069)(?:o|\\\\x5cu006F)(?:n|\\\\x5cu006E)|(?:n|\\\\x5cu006E)(?:a|\\\\x5cu0061)(?:m|\\\\x5c\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941330\"\n }\n}"} +{"input": "CRS XSS Rule 941340: IE XSS Filters - Attack Detected", "output": "{\n \"Name\": \"CRS-941340\",\n \"Priority\": 941340,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"\\\\'][ ]*(?:[^a-z0-9~_:\\\\' ]|in).+?[.].+?=\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"\\\\'][ ]*(?:[^a-z0-9~_:\\\\' ]|in).+?[.].+?=\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"\\\\'][ ]*(?:[^a-z0-9~_:\\\\' ]|in).+?[.].+?=\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941340\"\n }\n}"} +{"input": "CRS XSS Rule 941380: AngularJS client side template injection detected", "output": "{\n \"Name\": \"CRS-941380\",\n \"Priority\": 941380,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"{{.*?}}\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"{{.*?}}\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"{{.*?}}\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-941380\"\n }\n}"} +{"input": "CRS SQLi Rule 942100: SQL Injection Attack Detected via libinjection", "output": "{\n \"Name\": \"CRS-942100\",\n \"Priority\": 942100,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"SqliMatchStatement\": {\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"LOWERCASE\"\n }\n ]\n }\n },\n {\n \"SqliMatchStatement\": {\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"LOWERCASE\"\n }\n ]\n }\n },\n {\n \"SqliMatchStatement\": {\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"LOWERCASE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942100\"\n }\n}"} +{"input": "CRS SQLi Rule 942140: SQL Injection Attack: Common DB Names Detected", "output": "{\n \"Name\": \"CRS-942140\",\n \"Priority\": 942140,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:d(?:atabas|b_nam)e[^0-9A-Z_a-z]*\\\\(|(?:information_schema|m(?:aster\\\\.\\\\.sysdatabases|s(?:db|ys(?:ac(?:cess(?:objects|storage|xml)|es)|modules2?|(?:object|querie|relationship)s))|ysql\\\\.db)|north\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:d(?:atabas|b_nam)e[^0-9A-Z_a-z]*\\\\(|(?:information_schema|m(?:aster\\\\.\\\\.sysdatabases|s(?:db|ys(?:ac(?:cess(?:objects|storage|xml)|es)|modules2?|(?:object|querie|relationship)s))|ysql\\\\.db)|north\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942140\"\n }\n}"} +{"input": "CRS SQLi Rule 942151: SQL Injection Attack: SQL function name detected", "output": "{\n \"Name\": \"CRS-942151\",\n \"Priority\": 942151,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:cii(?:str)?|in)|tan2?)|b(?:enchmark|i(?:n_to_num|t_(?:and|count|length|x?or)))|c(?:har(?:acter)?_length|eil(?:ing)?|o(?:alesce|ercibility|llation|(?:m\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:cii(?:str)?|in)|tan2?)|b(?:enchmark|i(?:n_to_num|t_(?:and|count|length|x?or)))|c(?:har(?:acter)?_length|eil(?:ing)?|o(?:alesce|ercibility|llation|(?:m\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942151\"\n }\n}"} +{"input": "CRS SQLi Rule 942160: Detects blind sqli tests using sleep() or benchmark()", "output": "{\n \"Name\": \"CRS-942160\",\n \"Priority\": 942160,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:sleep\\\\s*?\\\\(.*?\\\\)|benchmark\\\\s*?\\\\(.*?\\\\,.*?\\\\))\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:sleep\\\\s*?\\\\(.*?\\\\)|benchmark\\\\s*?\\\\(.*?\\\\,.*?\\\\))\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:sleep\\\\s*?\\\\(.*?\\\\)|benchmark\\\\s*?\\\\(.*?\\\\,.*?\\\\))\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942160\"\n }\n}"} +{"input": "CRS SQLi Rule 942170: Detects SQL benchmark and sleep injection attempts including conditional queries", "output": "{\n \"Name\": \"CRS-942170\",\n \"Priority\": 942170,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:select|;)[\\\\s\\\\x0b]+(?:benchmark|if|sleep)[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\(?[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:select|;)[\\\\s\\\\x0b]+(?:benchmark|if|sleep)[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\(?[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942170\"\n }\n}"} +{"input": "CRS SQLi Rule 942190: Detects MSSQL code execution and information gathering attempts", "output": "{\n \"Name\": \"CRS-942190\",\n \"Priority\": 942190,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)union.*select\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)union.*select\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942190\"\n }\n}"} +{"input": "CRS SQLi Rule 942220: Looking for integer overflow attacks, these are taken from skipfish, except 2.2.2250738585072011e-308 is the \\\"magic number\\\" crash", "output": "{\n \"Name\": \"CRS-942220\",\n \"Priority\": 942220,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"^(?i:-0000023456|4294967295|4294967296|2147483648|2147483647|0000012345|-2147483648|-2147483649|0000023456|2.2250738585072007e-308|2.2250738585072011e-308|1e309)$\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"^(?i:-0000023456|4294967295|4294967296|2147483648|2147483647|0000012345|-2147483648|-2147483649|0000023456|2.2250738585072007e-308|2.2250738585072011e-308|1e309)$\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942220\"\n }\n}"} +{"input": "CRS SQLi Rule 942230: Detects conditional SQL injection attempts", "output": "{\n \"Name\": \"CRS-942230\",\n \"Priority\": 942230,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\x0b\\\\(\\\\)]case[\\\\s\\\\x0b]+when.*?then|\\\\)[\\\\s\\\\x0b]*?like[\\\\s\\\\x0b]*?\\\\(|select.*?having[\\\\s\\\\x0b]*?[^\\\\s\\\\x0b]+[\\\\s\\\\x0b]*?[^\\\\s\\\\x0b0-9A-Z_a-z]|if[\\\\s\\\\x0b]?\\\\([0-9A-Z_a-z]+[\\\\s\\\\x0b]*?[<->~]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\x0b\\\\(\\\\)]case[\\\\s\\\\x0b]+when.*?then|\\\\)[\\\\s\\\\x0b]*?like[\\\\s\\\\x0b]*?\\\\(|select.*?having[\\\\s\\\\x0b]*?[^\\\\s\\\\x0b]+[\\\\s\\\\x0b]*?[^\\\\s\\\\x0b0-9A-Z_a-z]|if[\\\\s\\\\x0b]?\\\\([0-9A-Z_a-z]+[\\\\s\\\\x0b]*?[<->~]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942230\"\n }\n}"} +{"input": "CRS SQLi Rule 942240: Detects MySQL charset switch and MSSQL DoS attempts", "output": "{\n \"Name\": \"CRS-942240\",\n \"Priority\": 942240,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)alter[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+.*?char(?:acter)?[\\\\s\\\\x0b]+set[\\\\s\\\\x0b]+[0-9A-Z_a-z]+|[\\\\\\\"'`](?:;*?[\\\\s\\\\x0b]*?waitfor[\\\\s\\\\x0b]+(?:time|delay)[\\\\s\\\\x0b]+[\\\\\\\"'`]|;.*?:[\\\\s\\\\x0b]*?goto)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)alter[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+.*?char(?:acter)?[\\\\s\\\\x0b]+set[\\\\s\\\\x0b]+[0-9A-Z_a-z]+|[\\\\\\\"'`](?:;*?[\\\\s\\\\x0b]*?waitfor[\\\\s\\\\x0b]+(?:time|delay)[\\\\s\\\\x0b]+[\\\\\\\"'`]|;.*?:[\\\\s\\\\x0b]*?goto)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942240\"\n }\n}"} +{"input": "CRS SQLi Rule 942250: Detects MATCH AGAINST, MERGE and EXECUTE IMMEDIATE injections", "output": "{\n \"Name\": \"CRS-942250\",\n \"Priority\": 942250,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:merge.*?using\\\\s*?\\\\(|execute\\\\s*?immediate\\\\s*?[\\\\\\\"'`]|match\\\\s*?[\\\\w(),+-]+\\\\s*?against\\\\s*?\\\\()\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:merge.*?using\\\\s*?\\\\(|execute\\\\s*?immediate\\\\s*?[\\\\\\\"'`]|match\\\\s*?[\\\\w(),+-]+\\\\s*?against\\\\s*?\\\\()\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942250\"\n }\n}"} +{"input": "CRS SQLi Rule 942270: Looking for basic sql injection. Common attack string for mysql, oracle and others", "output": "{\n \"Name\": \"CRS-942270\",\n \"Priority\": 942270,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)union.*?select.*?from\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)union.*?select.*?from\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942270\"\n }\n}"} +{"input": "CRS SQLi Rule 942280: Detects Postgres pg_sleep injection, waitfor delay attacks and database shutdown attempts", "output": "{\n \"Name\": \"CRS-942280\",\n \"Priority\": 942280,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)select[\\\\s\\\\x0b]*?pg_sleep|waitfor[\\\\s\\\\x0b]*?delay[\\\\s\\\\x0b]?[\\\\\\\"'`]+[\\\\s\\\\x0b]?[0-9]|;[\\\\s\\\\x0b]*?shutdown[\\\\s\\\\x0b]*?(?:[#;\\\\{]|/\\\\*|--)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)select[\\\\s\\\\x0b]*?pg_sleep|waitfor[\\\\s\\\\x0b]*?delay[\\\\s\\\\x0b]?[\\\\\\\"'`]+[\\\\s\\\\x0b]?[0-9]|;[\\\\s\\\\x0b]*?shutdown[\\\\s\\\\x0b]*?(?:[#;\\\\{]|/\\\\*|--)\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)select[\\\\s\\\\x0b]*?pg_sleep|waitfor[\\\\s\\\\x0b]*?delay[\\\\s\\\\x0b]?[\\\\\\\"'`]+[\\\\s\\\\x0b]?[0-9]|;[\\\\s\\\\x0b]*?shutdown[\\\\s\\\\x0b]*?(?:[#;\\\\{]|/\\\\*|--)\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942280\"\n }\n}"} +{"input": "CRS SQLi Rule 942290: Finds basic MongoDB SQL injection attempts", "output": "{\n \"Name\": \"CRS-942290\",\n \"Priority\": 942290,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\[?\\\\$(?:a(?:bs|c(?:cumulator|osh?)|dd(?:ToSet)?|ll(?:ElementsTrue)?|n(?:d|yElementTrue)|rray(?:ElemA|ToObjec)t|sinh?|tan[2h]?|vg)|b(?:etween|i(?:narySize|t(?:And|Not|(?:O|Xo)r)?)|ottomN?|sonSize|u\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\[?\\\\$(?:a(?:bs|c(?:cumulator|osh?)|dd(?:ToSet)?|ll(?:ElementsTrue)?|n(?:d|yElementTrue)|rray(?:ElemA|ToObjec)t|sinh?|tan[2h]?|vg)|b(?:etween|i(?:narySize|t(?:And|Not|(?:O|Xo)r)?)|ottomN?|sonSize|u\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942290\"\n }\n}"} +{"input": "CRS SQLi Rule 942320: Detects MySQL and PostgreSQL stored procedure/function injections", "output": "{\n \"Name\": \"CRS-942320\",\n \"Priority\": 942320,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+(?:function|procedure)[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\)[\\\\s\\\\x0b]*?-|d(?:eclare[^0-9A-Z_a-z]+[#@][\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|iv[\\\\s\\\\x0b]*?\\\\([\\\\+\\\\-]*[\\\\s\\\\x0b\\\\.0-9]+,[\\\\+\\\\-]*[\\\\s\\\\x\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+(?:function|procedure)[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\)[\\\\s\\\\x0b]*?-|d(?:eclare[^0-9A-Z_a-z]+[#@][\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|iv[\\\\s\\\\x0b]*?\\\\([\\\\+\\\\-]*[\\\\s\\\\x0b\\\\.0-9]+,[\\\\+\\\\-]*[\\\\s\\\\x\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942320\"\n }\n}"} +{"input": "CRS SQLi Rule 942350: Detects MySQL UDF injection and other data/structure manipulation attempts", "output": "{\n \"Name\": \"CRS-942350\",\n \"Priority\": 942350,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+function[\\\\s\\\\x0b].+[\\\\s\\\\x0b]returns|;[\\\\s\\\\x0b]*?(?:alter|(?:(?:cre|trunc|upd)at|renam)e|d(?:e(?:lete|sc)|rop)|(?:inser|selec)t|load)\\\\b[\\\\s\\\\x0b]*?[\\\\(\\\\[]?[0-9A-Z_a-z]{2,}\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+function[\\\\s\\\\x0b].+[\\\\s\\\\x0b]returns|;[\\\\s\\\\x0b]*?(?:alter|(?:(?:cre|trunc|upd)at|renam)e|d(?:e(?:lete|sc)|rop)|(?:inser|selec)t|load)\\\\b[\\\\s\\\\x0b]*?[\\\\(\\\\[]?[0-9A-Z_a-z]{2,}\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942350\"\n }\n}"} +{"input": "CRS SQLi Rule 942360: Detects concatenated basic SQL injection and SQLLFI attempts", "output": "{\n \"Name\": \"CRS-942360\",\n \"Priority\": 942360,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:(?:alter|(?:(?:cre|trunc|upd)at|renam)e|de(?:lete|sc)|(?:inser|selec)t|load)[\\\\s\\\\x0b]+(?:char|group_concat|load_file)\\\\b[\\\\s\\\\x0b]*\\\\(?|end[\\\\s\\\\x0b]*?\\\\);)|[\\\\s\\\\x0b\\\\(]load_file[\\\\s\\\\x0b]*?\\\\(|[\\\\\\\"'`][\\\\s\\\\\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:(?:alter|(?:(?:cre|trunc|upd)at|renam)e|de(?:lete|sc)|(?:inser|selec)t|load)[\\\\s\\\\x0b]+(?:char|group_concat|load_file)\\\\b[\\\\s\\\\x0b]*\\\\(?|end[\\\\s\\\\x0b]*?\\\\);)|[\\\\s\\\\x0b\\\\(]load_file[\\\\s\\\\x0b]*?\\\\(|[\\\\\\\"'`][\\\\s\\\\\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942360\"\n }\n}"} +{"input": "CRS SQLi Rule 942500: MySQL in-line comment detected", "output": "{\n \"Name\": \"CRS-942500\",\n \"Priority\": 942500,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)/\\\\*[\\\\s\\\\x0b]*?[!\\\\+](?:[\\\\s\\\\x0b\\\\(\\\\)\\\\-0-9=A-Z_a-z]+)?\\\\*/\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)/\\\\*[\\\\s\\\\x0b]*?[!\\\\+](?:[\\\\s\\\\x0b\\\\(\\\\)\\\\-0-9=A-Z_a-z]+)?\\\\*/\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942500\"\n }\n}"} +{"input": "CRS SQLi Rule 942540: SQL Authentication bypass (split query)", "output": "{\n \"Name\": \"CRS-942540\",\n \"Priority\": 942540,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"^(?:[^']*'|[^\\\\\\\"]*\\\\\\\"|[^`]*`)[\\\\s\\\\x0b]*;\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"^(?:[^']*'|[^\\\\\\\"]*\\\\\\\"|[^`]*`)[\\\\s\\\\x0b]*;\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942540\"\n }\n}"} +{"input": "CRS SQLi Rule 942560: MySQL Scientific Notation payload detected", "output": "{\n \"Name\": \"CRS-942560\",\n \"Priority\": 942560,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)1\\\\.e(?:[\\\\(\\\\),]|\\\\.[\\\\$0-9A-Z_a-z])\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)1\\\\.e(?:[\\\\(\\\\),]|\\\\.[\\\\$0-9A-Z_a-z])\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942560\"\n }\n}"} +{"input": "CRS SQLi Rule 942550: JSON-Based SQL Injection", "output": "{\n \"Name\": \"CRS-942550\",\n \"Priority\": 942550,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|(?:[\\\\-@]>?|<@|@[\\\\?@]|\\\\?(?:(?:)|&|\\\\|#>)|#(?:>>|-)|->>|[<>])[\\\\\\\"'`](?:[\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|\\\\$[\\\\.\\\\[])|\\\\bjson_extract\\\\b[^\\\\(]*\\\\([^\\\\)]*\\\\)\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|(?:[\\\\-@]>?|<@|@[\\\\?@]|\\\\?(?:(?:)|&|\\\\|#>)|#(?:>>|-)|->>|[<>])[\\\\\\\"'`](?:[\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|\\\\$[\\\\.\\\\[])|\\\\bjson_extract\\\\b[^\\\\(]*\\\\([^\\\\)]*\\\\)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|(?:[\\\\-@]>?|<@|@[\\\\?@]|\\\\?(?:(?:)|&|\\\\|#>)|#(?:>>|-)|->>|[<>])[\\\\\\\"'`](?:[\\\\[\\\\{][^#\\\\]\\\\}]*[\\\\]\\\\}]+[\\\\\\\"'`]|\\\\$[\\\\.\\\\[])|\\\\bjson_extract\\\\b[^\\\\(]*\\\\([^\\\\)]*\\\\)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942550\"\n }\n}"} +{"input": "CRS SQLi Rule 942120: SQL Injection Attack: SQL Operator Detected", "output": "{\n \"Name\": \"CRS-942120\",\n \"Priority\": 942120,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[!=]=|&&|\\\\|\\\\||->|>[=>]|<(?:[<=]|>(?:[\\\\s\\\\x0b]+binary)?)|\\\\b(?:(?:xor|r(?:egexp|like)|i(?:snull|like)|notnull)\\\\b|collate(?:[^0-9A-Z_a-z]*?(?:U&)?[\\\\\\\"'`]|[^0-9A-Z_a-z]+(?:(?:binary|nocase|rtrim)\\\\b|[0-9\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[!=]=|&&|\\\\|\\\\||->|>[=>]|<(?:[<=]|>(?:[\\\\s\\\\x0b]+binary)?)|\\\\b(?:(?:xor|r(?:egexp|like)|i(?:snull|like)|notnull)\\\\b|collate(?:[^0-9A-Z_a-z]*?(?:U&)?[\\\\\\\"'`]|[^0-9A-Z_a-z]+(?:(?:binary|nocase|rtrim)\\\\b|[0-9\",\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942120\"\n }\n}"} +{"input": "CRS SQLi Rule 942130: SQL Injection Attack: SQL Boolean-based attack detected", "output": "{\n \"Name\": \"CRS-942130\",\n \"Priority\": 942130,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?\\\\b([0-9A-Z_a-z]+)\\\\b[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?(?:=|<=>|(?:sounds[\\\\s\\\\x0b]+)?like|glob|r(?:like|egexp))[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?\\\\b([0-9A-Z_a-z]+)\\\\b\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942130\"\n }\n}"} +{"input": "CRS SQLi Rule 942131: SQL Injection Attack: SQL Boolean-based attack detected", "output": "{\n \"Name\": \"CRS-942131\",\n \"Priority\": 942131,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?\\\\b([0-9A-Z_a-z]+)\\\\b[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?(?:![<->]|<[=>]?|>=?|\\\\^|is[\\\\s\\\\x0b]+not|not[\\\\s\\\\x0b]+(?:like|r(?:like|egexp)))[\\\\s\\\\x0b\\\\\\\"'-\\\\)`]*?\\\\b([0-9A-Z_a-z]+)\\\\b\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942131\"\n }\n}"} +{"input": "CRS SQLi Rule 942150: SQL Injection Attack: SQL function name detected", "output": "{\n \"Name\": \"CRS-942150\",\n \"Priority\": 942150,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:json(?:_[0-9A-Z_a-z]+)?|a(?:bs|(?:cos|sin)h?|tan[2h]?|vg)|c(?:eil(?:ing)?|h(?:a(?:nges|r(?:set)?)|r)|o(?:alesce|sh?|unt)|ast)|d(?:e(?:grees|fault)|a(?:te|y))|exp|f(?:loor(?:avg)?|ormat|ield)|\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:json(?:_[0-9A-Z_a-z]+)?|a(?:bs|(?:cos|sin)h?|tan[2h]?|vg)|c(?:eil(?:ing)?|h(?:a(?:nges|r(?:set)?)|r)|o(?:alesce|sh?|unt)|ast)|d(?:e(?:grees|fault)|a(?:te|y))|exp|f(?:loor(?:avg)?|ormat|ield)|\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942150\"\n }\n}"} +{"input": "CRS SQLi Rule 942180: Detects basic SQL authentication bypass attempts 1/3", "output": "{\n \"Name\": \"CRS-942180\",\n \"Priority\": 942180,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:/\\\\*)+[\\\\\\\"'`]+[\\\\s\\\\x0b]?(?:--|[#\\\\{]|/\\\\*)?|[\\\\\\\"'`](?:[\\\\s\\\\x0b]*(?:(?:x?or|and|div|like|between)[\\\\s\\\\x0b\\\\-0-9A-Z_a-z]+[\\\\(\\\\)\\\\+-\\\\-<->][\\\\s\\\\x0b]*[\\\\\\\"'0-9`]|[!=\\\\|](?:[\\\\s\\\\x0b!\\\\+\\\\-0-9=]+[^\\\\[]*[\\\\\\\"'\\\\(`].*|[\\\\s\\\\x0\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:/\\\\*)+[\\\\\\\"'`]+[\\\\s\\\\x0b]?(?:--|[#\\\\{]|/\\\\*)?|[\\\\\\\"'`](?:[\\\\s\\\\x0b]*(?:(?:x?or|and|div|like|between)[\\\\s\\\\x0b\\\\-0-9A-Z_a-z]+[\\\\(\\\\)\\\\+-\\\\-<->][\\\\s\\\\x0b]*[\\\\\\\"'0-9`]|[!=\\\\|](?:[\\\\s\\\\x0b!\\\\+\\\\-0-9=]+[^\\\\[]*[\\\\\\\"'\\\\(`].*|[\\\\s\\\\x0\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942180\"\n }\n}"} +{"input": "CRS SQLi Rule 942200: Detects MySQL comment-/space-obfuscated injections and backtick termination", "output": "{\n \"Name\": \"CRS-942200\",\n \"Priority\": 942200,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i),.*?[\\\\\\\"'\\\\)0-9`-f][\\\\\\\"'`](?:[\\\\\\\"'`].*?[\\\\\\\"'`]|(?:\\\\r?\\\\n)?\\\\z|[^\\\\\\\"'`]+)|[^0-9A-Z_a-z]select.+[^0-9A-Z_a-z]*?from|(?:alter|(?:(?:cre|trunc|upd)at|renam)e|d(?:e(?:lete|sc)|rop)|(?:inser|selec)t|load)[\\\\s\\\\x0\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i),.*?[\\\\\\\"'\\\\)0-9`-f][\\\\\\\"'`](?:[\\\\\\\"'`].*?[\\\\\\\"'`]|(?:\\\\r?\\\\n)?\\\\z|[^\\\\\\\"'`]+)|[^0-9A-Z_a-z]select.+[^0-9A-Z_a-z]*?from|(?:alter|(?:(?:cre|trunc|upd)at|renam)e|d(?:e(?:lete|sc)|rop)|(?:inser|selec)t|load)[\\\\s\\\\x0\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i),.*?[\\\\\\\"'\\\\)0-9`-f][\\\\\\\"'`](?:[\\\\\\\"'`].*?[\\\\\\\"'`]|(?:\\\\r?\\\\n)?\\\\z|[^\\\\\\\"'`]+)|[^0-9A-Z_a-z]select.+[^0-9A-Z_a-z]*?from|(?:alter|(?:(?:cre|trunc|upd)at|renam)e|d(?:e(?:lete|sc)|rop)|(?:inser|selec)t|load)[\\\\s\\\\x0\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942200\"\n }\n}"} +{"input": "CRS SQLi Rule 942210: Detects chained SQL injection attempts 1/2", "output": "{\n \"Name\": \"CRS-942210\",\n \"Priority\": 942210,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:&&|\\\\|\\\\||and|between|div|like|n(?:and|ot)|(?:xx?)?or)[\\\\s\\\\x0b\\\\(]+[0-9A-Z_a-z]+[\\\\s\\\\x0b\\\\)]*?[!\\\\+=]+[\\\\s\\\\x0b0-9]*?[\\\\\\\"'-\\\\)=`]|[0-9](?:[\\\\s\\\\x0b]*?(?:and|between|div|like|x?or)[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?[\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:&&|\\\\|\\\\||and|between|div|like|n(?:and|ot)|(?:xx?)?or)[\\\\s\\\\x0b\\\\(]+[0-9A-Z_a-z]+[\\\\s\\\\x0b\\\\)]*?[!\\\\+=]+[\\\\s\\\\x0b0-9]*?[\\\\\\\"'-\\\\)=`]|[0-9](?:[\\\\s\\\\x0b]*?(?:and|between|div|like|x?or)[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?[\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942210\"\n }\n}"} +{"input": "CRS SQLi Rule 942260: Detects basic SQL authentication bypass attempts 2/3", "output": "{\n \"Name\": \"CRS-942260\",\n \"Priority\": 942260,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between|\\\\|\\\\||&&)[\\\\s\\\\x0b]+[\\\\s\\\\x0b0-9A-Z_a-z]+=[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?having[\\\\s\\\\x0b]+|like[^0-9A-Z_a-z]*?[\\\\\\\"'0-9`])|[0-9A-Z_a-z][\\\\\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between|\\\\|\\\\||&&)[\\\\s\\\\x0b]+[\\\\s\\\\x0b0-9A-Z_a-z]+=[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?having[\\\\s\\\\x0b]+|like[^0-9A-Z_a-z]*?[\\\\\\\"'0-9`])|[0-9A-Z_a-z][\\\\\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942260\"\n }\n}"} +{"input": "CRS SQLi Rule 942300: Detects MySQL comments, conditions and ch(a)r injections", "output": "{\n \"Name\": \"CRS-942300\",\n \"Priority\": 942300,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\)[\\\\s\\\\x0b]*?when[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?then|[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:[#\\\\{]|--)|/\\\\*![\\\\s\\\\x0b]?[0-9]+|\\\\b(?:(?:binary|cha?r)[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?[0-9]|(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between|r(?:\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\)[\\\\s\\\\x0b]*?when[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?then|[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:[#\\\\{]|--)|/\\\\*![\\\\s\\\\x0b]?[0-9]+|\\\\b(?:(?:binary|cha?r)[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?[0-9]|(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between|r(?:\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942300\"\n }\n}"} +{"input": "CRS SQLi Rule 942310: Detects chained SQL injection attempts 2/2", "output": "{\n \"Name\": \"CRS-942310\",\n \"Priority\": 942310,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:\\\\([\\\\s\\\\x0b]*?select[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|coalesce|order[\\\\s\\\\x0b]+by[\\\\s\\\\x0b]+if[0-9A-Z_a-z]*?)[\\\\s\\\\x0b]*?\\\\(|\\\\*/from|\\\\+[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?\\\\+[\\\\s\\\\x0b]*?@|[0-9A-Z_a-z][\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:[\\\\+\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:\\\\([\\\\s\\\\x0b]*?select[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|coalesce|order[\\\\s\\\\x0b]+by[\\\\s\\\\x0b]+if[0-9A-Z_a-z]*?)[\\\\s\\\\x0b]*?\\\\(|\\\\*/from|\\\\+[\\\\s\\\\x0b]*?[0-9]+[\\\\s\\\\x0b]*?\\\\+[\\\\s\\\\x0b]*?@|[0-9A-Z_a-z][\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:[\\\\+\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942310\"\n }\n}"} +{"input": "CRS SQLi Rule 942330: Detects classic SQL injection probings 1/3", "output": "{\n \"Name\": \"CRS-942330\",\n \"Priority\": 942330,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?\\\\b(?:x?or|div|like|between|and)\\\\b[\\\\s\\\\x0b]*?[\\\\\\\"'`]?[0-9]|\\\\x5cx(?:2[37]|3d)|^(?:.?[\\\\\\\"'`]$|[\\\\\\\"'\\\\x5c`]*?(?:[\\\\\\\"'0-9`]+|[^\\\\\\\"'`]+[\\\\\\\"'`])[\\\\s\\\\x0b]*?\\\\b(?:and|n(?:and|ot)|(?:xx?)?or|div|like|\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?\\\\b(?:x?or|div|like|between|and)\\\\b[\\\\s\\\\x0b]*?[\\\\\\\"'`]?[0-9]|\\\\x5cx(?:2[37]|3d)|^(?:.?[\\\\\\\"'`]$|[\\\\\\\"'\\\\x5c`]*?(?:[\\\\\\\"'0-9`]+|[^\\\\\\\"'`]+[\\\\\\\"'`])[\\\\s\\\\x0b]*?\\\\b(?:and|n(?:and|ot)|(?:xx?)?or|div|like|\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942330\"\n }\n}"} +{"input": "CRS SQLi Rule 942340: Detects basic SQL authentication bypass attempts 3/3", "output": "{\n \"Name\": \"CRS-942340\",\n \"Priority\": 942340,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)in[\\\\s\\\\x0b]*?\\\\(+[\\\\s\\\\x0b]*?select|(?:(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between)[\\\\s\\\\x0b]+|(?:\\\\|\\\\||&&)[\\\\s\\\\x0b]*?)[\\\\s\\\\x0b\\\\+0-9A-Z_a-z]+(?:regexp[\\\\s\\\\x0b]*?\\\\(|sounds[\\\\s\\\\x0b]+like[\\\\s\\\\x0b]*?[\\\\\\\"'`]|[0-\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)in[\\\\s\\\\x0b]*?\\\\(+[\\\\s\\\\x0b]*?select|(?:(?:and|n(?:and|ot)|(?:xx?)?or|div|like|between)[\\\\s\\\\x0b]+|(?:\\\\|\\\\||&&)[\\\\s\\\\x0b]*?)[\\\\s\\\\x0b\\\\+0-9A-Z_a-z]+(?:regexp[\\\\s\\\\x0b]*?\\\\(|sounds[\\\\s\\\\x0b]+like[\\\\s\\\\x0b]*?[\\\\\\\"'`]|[0-\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942340\"\n }\n}"} +{"input": "CRS SQLi Rule 942361: Detects basic SQL injection based on keyword alter or union", "output": "{\n \"Name\": \"CRS-942361\",\n \"Priority\": 942361,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:^[\\\\W\\\\d]+\\\\s*?(?:alter|union)\\\\b)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:^[\\\\W\\\\d]+\\\\s*?(?:alter|union)\\\\b)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942361\"\n }\n}"} +{"input": "CRS SQLi Rule 942362: Detects concatenated basic SQL injection and SQLLFI attempts", "output": "{\n \"Name\": \"CRS-942362\",\n \"Priority\": 942362,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:alter|(?:(?:cre|trunc|upd)at|renam)e|de(?:lete|sc)|(?:inser|selec)t|load)[\\\\s\\\\x0b]+(?:char|group_concat|load_file)[\\\\s\\\\x0b]?\\\\(?|end[\\\\s\\\\x0b]*?\\\\);|[\\\\s\\\\x0b\\\\(]load_file[\\\\s\\\\x0b]*?\\\\(|[\\\\\\\"'`][\\\\s\\\\x0b]+reg\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)(?:alter|(?:(?:cre|trunc|upd)at|renam)e|de(?:lete|sc)|(?:inser|selec)t|load)[\\\\s\\\\x0b]+(?:char|group_concat|load_file)[\\\\s\\\\x0b]?\\\\(?|end[\\\\s\\\\x0b]*?\\\\);|[\\\\s\\\\x0b\\\\(]load_file[\\\\s\\\\x0b]*?\\\\(|[\\\\\\\"'`][\\\\s\\\\x0b]+reg\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942362\"\n }\n}"} +{"input": "CRS SQLi Rule 942370: Detects classic SQL injection probings 2/3", "output": "{\n \"Name\": \"CRS-942370\",\n \"Priority\": 942370,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`](?:[\\\\s\\\\x0b]*?(?:(?:\\\\*.+(?:x?or|div|like|between|(?:an|i)d)[^0-9A-Z_a-z]*?[\\\\\\\"'`]|(?:x?or|div|like|between|and)[\\\\s\\\\x0b][^0-9]+[\\\\-0-9A-Z_a-z]+[^0-9]*)[0-9]|[^\\\\s\\\\x0b0-9\\\\?A-Z_a-z]+[\\\\s\\\\x0b]*?[^\\\\s\\\\\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`](?:[\\\\s\\\\x0b]*?(?:(?:\\\\*.+(?:x?or|div|like|between|(?:an|i)d)[^0-9A-Z_a-z]*?[\\\\\\\"'`]|(?:x?or|div|like|between|and)[\\\\s\\\\x0b][^0-9]+[\\\\-0-9A-Z_a-z]+[^0-9]*)[0-9]|[^\\\\s\\\\x0b0-9\\\\?A-Z_a-z]+[\\\\s\\\\x0b]*?[^\\\\s\\\\\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`](?:[\\\\s\\\\x0b]*?(?:(?:\\\\*.+(?:x?or|div|like|between|(?:an|i)d)[^0-9A-Z_a-z]*?[\\\\\\\"'`]|(?:x?or|div|like|between|and)[\\\\s\\\\x0b][^0-9]+[\\\\-0-9A-Z_a-z]+[^0-9]*)[0-9]|[^\\\\s\\\\x0b0-9\\\\?A-Z_a-z]+[\\\\s\\\\x0b]*?[^\\\\s\\\\\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942370\"\n }\n}"} +{"input": "CRS SQLi Rule 942380: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942380\",\n \"Priority\": 942380,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:having\\\\b(?:[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')[\\\\s\\\\x0b]*?[<->]| ?(?:[0-9]{1,10} ?[<->]+|[\\\\\\\"'][^=]{1,10}[ \\\\\\\"'<-\\\\?\\\\[]+))|ex(?:ecute(?:\\\\(|[\\\\s\\\\x0b]{1,5}[\\\\$\\\\.0-9A-Z_a-z]{1,5}[\\\\s\\\\x0b]{0,3})|ists[\\\\\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:having\\\\b(?:[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')[\\\\s\\\\x0b]*?[<->]| ?(?:[0-9]{1,10} ?[<->]+|[\\\\\\\"'][^=]{1,10}[ \\\\\\\"'<-\\\\?\\\\[]+))|ex(?:ecute(?:\\\\(|[\\\\s\\\\x0b]{1,5}[\\\\$\\\\.0-9A-Z_a-z]{1,5}[\\\\s\\\\x0b]{0,3})|ists[\\\\\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942380\"\n }\n}"} +{"input": "CRS SQLi Rule 942390: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942390\",\n \"Priority\": 942390,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:or\\\\b(?:[\\\\s\\\\x0b]?(?:[0-9]{1,10}|[\\\\\\\"'][^=]{1,10}[\\\\\\\"'])[\\\\s\\\\x0b]?[<->]+|[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')(?:[\\\\s\\\\x0b]*?[<->])?)|xor\\\\b[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')(?:[\\\\s\\\\x0b]*?[<->])?)|\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:or\\\\b(?:[\\\\s\\\\x0b]?(?:[0-9]{1,10}|[\\\\\\\"'][^=]{1,10}[\\\\\\\"'])[\\\\s\\\\x0b]?[<->]+|[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')(?:[\\\\s\\\\x0b]*?[<->])?)|xor\\\\b[\\\\s\\\\x0b]+(?:[0-9]{1,10}|'[^=]{1,10}')(?:[\\\\s\\\\x0b]*?[<->])?)|\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942390\"\n }\n}"} +{"input": "CRS SQLi Rule 942400: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942400\",\n \"Priority\": 942400,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\band\\\\b(?:[\\\\s\\\\x0b]+(?:[0-9]{1,10}[\\\\s\\\\x0b]*?[<->]|'[^=]{1,10}')| ?(?:[0-9]{1,10}|[\\\\\\\"'][^=]{1,10}[\\\\\\\"']) ?[<->]+)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\band\\\\b(?:[\\\\s\\\\x0b]+(?:[0-9]{1,10}[\\\\s\\\\x0b]*?[<->]|'[^=]{1,10}')| ?(?:[0-9]{1,10}|[\\\\\\\"'][^=]{1,10}[\\\\\\\"']) ?[<->]+)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942400\"\n }\n}"} +{"input": "CRS SQLi Rule 942410: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942410\",\n \"Priority\": 942410,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:(?:b|co)s|dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:in|cii(?:str)?)|tan2?|vg)|b(?:enchmark|i(?:n(?:_to_num)?|t_(?:and|count|length|x?or)))|c(?:ast|h(?:ar(?:(?:acter)?_length|set)?|r)|iel(?:ing\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:(?:b|co)s|dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:in|cii(?:str)?)|tan2?|vg)|b(?:enchmark|i(?:n(?:_to_num)?|t_(?:and|count|length|x?or)))|c(?:ast|h(?:ar(?:(?:acter)?_length|set)?|r)|iel(?:ing\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942410\"\n }\n}"} +{"input": "CRS SQLi Rule 942470: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942470\",\n \"Priority\": 942470,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)autonomous_transaction|(?:current_use|n?varcha|tbcreato)r|db(?:a_users|ms_java)|open(?:owa_util|query|rowset)|s(?:p_(?:(?:addextendedpro|sqlexe)c|execute(?:sql)?|help|is_srvrolemember|makewebtask|\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)autonomous_transaction|(?:current_use|n?varcha|tbcreato)r|db(?:a_users|ms_java)|open(?:owa_util|query|rowset)|s(?:p_(?:(?:addextendedpro|sqlexe)c|execute(?:sql)?|help|is_srvrolemember|makewebtask|\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942470\"\n }\n}"} +{"input": "CRS SQLi Rule 942480: SQL Injection Attack", "output": "{\n \"Name\": \"CRS-942480\",\n \"Priority\": 942480,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:(?:d(?:bms_[0-9A-Z_a-z]+\\\\.|elete\\\\b[^0-9A-Z_a-z]*?\\\\bfrom)|(?:group\\\\b.*?\\\\bby\\\\b.{1,100}?\\\\bhav|overlay\\\\b[^0-9A-Z_a-z]*?\\\\(.*?\\\\b[^0-9A-Z_a-z]*?plac)ing|in(?:ner\\\\b[^0-9A-Z_a-z]*?\\\\bjoin|sert\\\\b[^0-9A-\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:(?:d(?:bms_[0-9A-Z_a-z]+\\\\.|elete\\\\b[^0-9A-Z_a-z]*?\\\\bfrom)|(?:group\\\\b.*?\\\\bby\\\\b.{1,100}?\\\\bhav|overlay\\\\b[^0-9A-Z_a-z]*?\\\\(.*?\\\\b[^0-9A-Z_a-z]*?plac)ing|in(?:ner\\\\b[^0-9A-Z_a-z]*?\\\\bjoin|sert\\\\b[^0-9A-\",\n \"FieldToMatch\": {\n \"Headers\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:(?:d(?:bms_[0-9A-Z_a-z]+\\\\.|elete\\\\b[^0-9A-Z_a-z]*?\\\\bfrom)|(?:group\\\\b.*?\\\\bby\\\\b.{1,100}?\\\\bhav|overlay\\\\b[^0-9A-Z_a-z]*?\\\\(.*?\\\\b[^0-9A-Z_a-z]*?plac)ing|in(?:ner\\\\b[^0-9A-Z_a-z]*?\\\\bjoin|sert\\\\b[^0-9A-\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942480\"\n }\n}"} +{"input": "CRS SQLi Rule 942430: Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (12)", "output": "{\n \"Name\": \"CRS-942430\",\n \"Priority\": 942430,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:[~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>][^~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>]*?){12})\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942430\"\n }\n}"} +{"input": "CRS SQLi Rule 942440: SQL Comment Sequence Detected", "output": "{\n \"Name\": \"CRS-942440\",\n \"Priority\": 942440,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"/\\\\*!?|\\\\*/|[';]--|--(?:[\\\\s\\\\x0b]|[^\\\\-]*?-)|[^&\\\\-]#.*?[\\\\s\\\\x0b]|;?\\\\x00\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"/\\\\*!?|\\\\*/|[';]--|--(?:[\\\\s\\\\x0b]|[^\\\\-]*?-)|[^&\\\\-]#.*?[\\\\s\\\\x0b]|;?\\\\x00\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942440\"\n }\n}"} +{"input": "CRS SQLi Rule 942450: SQL Hex Encoding Identified", "output": "{\n \"Name\": \"CRS-942450\",\n \"Priority\": 942450,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:\\\\b0x[a-f\\\\d]{3,})\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i:\\\\b0x[a-f\\\\d]{3,})\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942450\"\n }\n}"} +{"input": "CRS SQLi Rule 942510: SQLi bypass attempt by ticks or backticks detected", "output": "{\n \"Name\": \"CRS-942510\",\n \"Priority\": 942510,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:`(?:(?:[\\\\w\\\\s=_\\\\-+{}()<@]){2,29}|(?:[A-Za-z0-9+/]{4})+(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)`)\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:`(?:(?:[\\\\w\\\\s=_\\\\-+{}()<@]){2,29}|(?:[A-Za-z0-9+/]{4})+(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)`)\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942510\"\n }\n}"} +{"input": "CRS SQLi Rule 942520: Detects basic SQL authentication bypass attempts 4.0/4", "output": "{\n \"Name\": \"CRS-942520\",\n \"Priority\": 942520,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:is[\\\\s\\\\x0b]+not|not[\\\\s\\\\x0b]+(?:like|glob|(?:betwee|i)n|null|regexp|match)|mod|div|sounds[\\\\s\\\\x0b]+like)\\\\b|[%&\\\\*\\\\+\\\\-/<->\\\\^\\\\|]{1,3})\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)[\\\\\\\"'`][\\\\s\\\\x0b]*?(?:(?:is[\\\\s\\\\x0b]+not|not[\\\\s\\\\x0b]+(?:like|glob|(?:betwee|i)n|null|regexp|match)|mod|div|sounds[\\\\s\\\\x0b]+like)\\\\b|[%&\\\\*\\\\+\\\\-/<->\\\\^\\\\|]{1,3})\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942520\"\n }\n}"} +{"input": "CRS SQLi Rule 942521: Detects basic SQL authentication bypass attempts 4.1/4", "output": "{\n \"Name\": \"CRS-942521\",\n \"Priority\": 942521,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)^(?:[^']*?(?:'[^']*?'[^']*?)*?'|[^\\\\\\\"]*?(?:\\\\\\\"[^\\\\\\\"]*?\\\\\\\"[^\\\\\\\"]*?)*?\\\\\\\"|[^`]*?(?:`[^`]*?`[^`]*?)*?`)[\\\\s\\\\x0b]*([0-9A-Z_a-z]+)\\\\b\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)^(?:[^']*?(?:'[^']*?'[^']*?)*?'|[^\\\\\\\"]*?(?:\\\\\\\"[^\\\\\\\"]*?\\\\\\\"[^\\\\\\\"]*?)*?\\\\\\\"|[^`]*?(?:`[^`]*?`[^`]*?)*?`)[\\\\s\\\\x0b]*([0-9A-Z_a-z]+)\\\\b\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)^(?:[^']*?(?:'[^']*?'[^']*?)*?'|[^\\\\\\\"]*?(?:\\\\\\\"[^\\\\\\\"]*?\\\\\\\"[^\\\\\\\"]*?)*?\\\\\\\"|[^`]*?(?:`[^`]*?`[^`]*?)*?`)[\\\\s\\\\x0b]*([0-9A-Z_a-z]+)\\\\b\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942521\"\n }\n}"} +{"input": "CRS SQLi Rule 942522: Detects basic SQL authentication bypass attempts 4.1/4", "output": "{\n \"Name\": \"CRS-942522\",\n \"Priority\": 942522,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"^.*?\\\\x5c['\\\\\\\"`](?:.*?['\\\\\\\"`])?\\\\s*(?:and|or)\\\\b\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942522\"\n }\n}"} +{"input": "CRS SQLi Rule 942101: SQL Injection Attack Detected via libinjection", "output": "{\n \"Name\": \"CRS-942101\",\n \"Priority\": 942101,\n \"Statement\": {\n \"SqliMatchStatement\": {\n \"FieldToMatch\": {\n \"UriPath\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"URL_DECODE\"\n },\n {\n \"Priority\": 1,\n \"Type\": \"LOWERCASE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942101\"\n }\n}"} +{"input": "CRS SQLi Rule 942152: SQL Injection Attack: SQL function name detected", "output": "{\n \"Name\": \"CRS-942152\",\n \"Priority\": 942152,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:cii(?:str)?|in)|tan2?)|b(?:enchmark|i(?:n_to_num|t_(?:and|count|length|x?or)))|c(?:har(?:acter)?_length|eil(?:ing)?|o(?:alesce|ercibility|llation|(?:m\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\b(?:a(?:dd(?:dat|tim)e|es_(?:de|en)crypt|s(?:cii(?:str)?|in)|tan2?)|b(?:enchmark|i(?:n_to_num|t_(?:and|count|length|x?or)))|c(?:har(?:acter)?_length|eil(?:ing)?|o(?:alesce|ercibility|llation|(?:m\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942152\"\n }\n}"} +{"input": "CRS SQLi Rule 942321: Detects MySQL and PostgreSQL stored procedure/function injections", "output": "{\n \"Name\": \"CRS-942321\",\n \"Priority\": 942321,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+(?:function|procedure)[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\)[\\\\s\\\\x0b]*?-|d(?:eclare[^0-9A-Z_a-z]+[#@][\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|iv[\\\\s\\\\x0b]*?\\\\([\\\\+\\\\-]*[\\\\s\\\\x0b\\\\.0-9]+,[\\\\+\\\\-]*[\\\\s\\\\x\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"referer\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)create[\\\\s\\\\x0b]+(?:function|procedure)[\\\\s\\\\x0b]*?[0-9A-Z_a-z]+[\\\\s\\\\x0b]*?\\\\([\\\\s\\\\x0b]*?\\\\)[\\\\s\\\\x0b]*?-|d(?:eclare[^0-9A-Z_a-z]+[#@][\\\\s\\\\x0b]*?[0-9A-Z_a-z]+|iv[\\\\s\\\\x0b]*?\\\\([\\\\+\\\\-]*[\\\\s\\\\x0b\\\\.0-9]+,[\\\\+\\\\-]*[\\\\s\\\\x\",\n \"FieldToMatch\": {\n \"SingleHeader\": {\n \"Name\": \"user-agent\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942321\"\n }\n}"} +{"input": "CRS SQLi Rule 942251: Detects HAVING injections", "output": "{\n \"Name\": \"CRS-942251\",\n \"Priority\": 942251,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\W+\\\\d*?\\\\s*?\\\\bhaving\\\\b\\\\s*?[^\\\\s\\\\-]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?i)\\\\W+\\\\d*?\\\\s*?\\\\bhaving\\\\b\\\\s*?[^\\\\s\\\\-]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942251\"\n }\n}"} +{"input": "CRS SQLi Rule 942490: Detects classic SQL injection probings 3/3", "output": "{\n \"Name\": \"CRS-942490\",\n \"Priority\": 942490,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"[\\\\\\\"'`][\\\\s\\\\d]*?[^\\\\w\\\\s]\\\\W*?\\\\d\\\\W*?.*?[\\\\\\\"'`\\\\d]\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"[\\\\\\\"'`][\\\\s\\\\d]*?[^\\\\w\\\\s]\\\\W*?\\\\d\\\\W*?.*?[\\\\\\\"'`\\\\d]\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942490\"\n }\n}"} +{"input": "CRS SQLi Rule 942420: Restricted SQL Character Anomaly Detection (cookies): # of special characters exceeded (8)", "output": "{\n \"Name\": \"CRS-942420\",\n \"Priority\": 942420,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:[~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>][^~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>]*?){8})\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942420\"\n }\n}"} +{"input": "CRS SQLi Rule 942431: Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (6)", "output": "{\n \"Name\": \"CRS-942431\",\n \"Priority\": 942431,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:[~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>][^~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>]*?){6})\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942431\"\n }\n}"} +{"input": "CRS SQLi Rule 942460: Meta-Character Anomaly Detection Alert - Repetitive Non-Word Characters", "output": "{\n \"Name\": \"CRS-942460\",\n \"Priority\": 942460,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"\\\\W{4}\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942460\"\n }\n}"} +{"input": "CRS SQLi Rule 942511: SQLi bypass attempt by ticks detected", "output": "{\n \"Name\": \"CRS-942511\",\n \"Priority\": 942511,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:'(?:(?:[\\\\w\\\\s=_\\\\-+{}()<@]){2,29}|(?:[A-Za-z0-9+/]{4})+(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)')\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"(?:'(?:(?:[\\\\w\\\\s=_\\\\-+{}()<@]){2,29}|(?:[A-Za-z0-9+/]{4})+(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?)')\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942511\"\n }\n}"} +{"input": "CRS SQLi Rule 942530: SQLi query termination detected", "output": "{\n \"Name\": \"CRS-942530\",\n \"Priority\": 942530,\n \"Statement\": {\n \"OrStatement\": {\n \"Statements\": [\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"';\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n {\n \"RegexMatchStatement\": {\n \"RegexString\": \"';\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942530\"\n }\n}"} +{"input": "CRS SQLi Rule 942421: Restricted SQL Character Anomaly Detection (cookies): # of special characters exceeded (3)", "output": "{\n \"Name\": \"CRS-942421\",\n \"Priority\": 942421,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:[~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>][^~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>]*?){3})\",\n \"FieldToMatch\": {\n \"Cookies\": {\n \"MatchScope\": \"ALL\",\n \"OversizeHandling\": \"CONTINUE\"\n }\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942421\"\n }\n}"} +{"input": "CRS SQLi Rule 942432: Restricted SQL Character Anomaly Detection (args): # of special characters exceeded (2)", "output": "{\n \"Name\": \"CRS-942432\",\n \"Priority\": 942432,\n \"Statement\": {\n \"RegexMatchStatement\": {\n \"RegexString\": \"((?:[~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>][^~!@#\\\\$%\\\\^&\\\\*\\\\(\\\\)\\\\-\\\\+=\\\\{\\\\}\\\\[\\\\]\\\\|:;\\\\\\\"'´’‘`<>]*?){2})\",\n \"FieldToMatch\": {\n \"AllQueryArguments\": {}\n },\n \"TextTransformations\": [\n {\n \"Priority\": 0,\n \"Type\": \"NONE\"\n }\n ]\n }\n },\n \"Action\": {\n \"Block\": {}\n },\n \"VisibilityConfig\": {\n \"SampledRequestsEnabled\": true,\n \"CloudWatchMetricsEnabled\": true,\n \"MetricName\": \"CRS-942432\"\n }\n}"}