|
| 1 | +{ |
| 2 | + "version": "2.1", |
| 3 | + "metadata": { |
| 4 | + "rules_version": "0.42.0" |
| 5 | + }, |
| 6 | + "actions": [ |
| 7 | + { |
| 8 | + "id": "block", |
| 9 | + "type": "block_request", |
| 10 | + "parameters": { |
| 11 | + "status_code": 418, |
| 12 | + "type": "html" |
| 13 | + } |
| 14 | + } |
| 15 | + ], |
| 16 | + "rules": [ |
| 17 | + { |
| 18 | + "id": "ip_match_rule", |
| 19 | + "name": "rule1", |
| 20 | + "tags": { |
| 21 | + "type": "flow1", |
| 22 | + "category": "category1" |
| 23 | + }, |
| 24 | + "conditions": [ |
| 25 | + { |
| 26 | + "operator": "ip_match", |
| 27 | + "parameters": { |
| 28 | + "inputs": [ |
| 29 | + { |
| 30 | + "address": "http.client_ip" |
| 31 | + } |
| 32 | + ], |
| 33 | + "data": "ip_data" |
| 34 | + } |
| 35 | + } |
| 36 | + ], |
| 37 | + "on_match": ["block"] |
| 38 | + }, |
| 39 | + { |
| 40 | + "id": "crs-913-110", |
| 41 | + "name": "Found request header associated with Acunetix security scanner", |
| 42 | + "tags": { |
| 43 | + "type": "security_scanner", |
| 44 | + "crs_id": "913110", |
| 45 | + "category": "attack_attempt" |
| 46 | + }, |
| 47 | + "conditions": [ |
| 48 | + { |
| 49 | + "parameters": { |
| 50 | + "inputs": [ |
| 51 | + { |
| 52 | + "address": "server.request.headers.no_cookies" |
| 53 | + } |
| 54 | + ], |
| 55 | + "list": [ |
| 56 | + "acunetix-product", |
| 57 | + "(acunetix web vulnerability scanner", |
| 58 | + "acunetix-scanning-agreement", |
| 59 | + "acunetix-user-agreement" |
| 60 | + ] |
| 61 | + }, |
| 62 | + "operator": "phrase_match" |
| 63 | + } |
| 64 | + ], |
| 65 | + "transformers": [ |
| 66 | + "lowercase" |
| 67 | + ] |
| 68 | + }, |
| 69 | + { |
| 70 | + "id": "crs-913-120", |
| 71 | + "name": "Found request filename/argument associated with security scanner", |
| 72 | + "tags": { |
| 73 | + "type": "security_scanner", |
| 74 | + "crs_id": "913120", |
| 75 | + "category": "attack_attempt" |
| 76 | + }, |
| 77 | + "conditions": [ |
| 78 | + { |
| 79 | + "parameters": { |
| 80 | + "inputs": [ |
| 81 | + { |
| 82 | + "address": "server.request.query" |
| 83 | + }, |
| 84 | + { |
| 85 | + "address": "server.request.body" |
| 86 | + }, |
| 87 | + { |
| 88 | + "address": "server.request.path_params" |
| 89 | + } |
| 90 | + ], |
| 91 | + "list": [ |
| 92 | + "/.adsensepostnottherenonobook", |
| 93 | + "/<invalid>hello.html", |
| 94 | + "/actsensepostnottherenonotive", |
| 95 | + "/acunetix-wvs-test-for-some-inexistent-file", |
| 96 | + "/antidisestablishmentarianism", |
| 97 | + "/appscan_fingerprint/mac_address", |
| 98 | + "/arachni-", |
| 99 | + "/cybercop", |
| 100 | + "/nessus_is_probing_you_", |
| 101 | + "/nessustest", |
| 102 | + "/netsparker-", |
| 103 | + "/rfiinc.txt", |
| 104 | + "/thereisnowaythat-you-canbethere", |
| 105 | + "/w3af/remotefileinclude.html", |
| 106 | + "appscan_fingerprint", |
| 107 | + "w00tw00t.at.isc.sans.dfind", |
| 108 | + "w00tw00t.at.blackhats.romanian.anti-sec" |
| 109 | + ] |
| 110 | + }, |
| 111 | + "operator": "phrase_match" |
| 112 | + } |
| 113 | + ], |
| 114 | + "transformers": [ |
| 115 | + "lowercase" |
| 116 | + ] |
| 117 | + }, |
| 118 | + { |
| 119 | + "id": "crs-920-260", |
| 120 | + "name": "Unicode Full/Half Width Abuse Attack Attempt", |
| 121 | + "tags": { |
| 122 | + "type": "http_protocol_violation", |
| 123 | + "crs_id": "920260", |
| 124 | + "category": "attack_attempt" |
| 125 | + }, |
| 126 | + "conditions": [ |
| 127 | + { |
| 128 | + "parameters": { |
| 129 | + "inputs": [ |
| 130 | + { |
| 131 | + "address": "server.request.uri.raw" |
| 132 | + } |
| 133 | + ], |
| 134 | + "regex": "\\%u[fF]{2}[0-9a-fA-F]{2}", |
| 135 | + "options": { |
| 136 | + "case_sensitive": true, |
| 137 | + "min_length": 6 |
| 138 | + } |
| 139 | + }, |
| 140 | + "operator": "match_regex" |
| 141 | + } |
| 142 | + ], |
| 143 | + "transformers": [] |
| 144 | + }, |
| 145 | + { |
| 146 | + "id": "crs-921-110", |
| 147 | + "name": "HTTP Request Smuggling Attack", |
| 148 | + "tags": { |
| 149 | + "type": "http_protocol_violation", |
| 150 | + "crs_id": "921110", |
| 151 | + "category": "attack_attempt" |
| 152 | + }, |
| 153 | + "conditions": [ |
| 154 | + { |
| 155 | + "parameters": { |
| 156 | + "inputs": [ |
| 157 | + { |
| 158 | + "address": "server.request.query" |
| 159 | + }, |
| 160 | + { |
| 161 | + "address": "server.request.body" |
| 162 | + }, |
| 163 | + { |
| 164 | + "address": "server.request.path_params" |
| 165 | + } |
| 166 | + ], |
| 167 | + "regex": "(?:get|post|head|options|connect|put|delete|trace|track|patch|propfind|propatch|mkcol|copy|move|lock|unlock)\\s+[^\\s]+\\s+http/\\d", |
| 168 | + "options": { |
| 169 | + "case_sensitive": true, |
| 170 | + "min_length": 12 |
| 171 | + } |
| 172 | + }, |
| 173 | + "operator": "match_regex" |
| 174 | + } |
| 175 | + ], |
| 176 | + "transformers": [ |
| 177 | + "lowercase" |
| 178 | + ] |
| 179 | + } |
| 180 | + ] |
| 181 | +} |
0 commit comments