|
| 1 | +{ |
| 2 | + "log": { |
| 3 | + "_recordingName": "Security Monitoring/Create a detection rule with type 'workload_security' returns \"OK\" response", |
| 4 | + "creator": { |
| 5 | + "comment": "persister:fs", |
| 6 | + "name": "Polly.JS", |
| 7 | + "version": "5.1.0" |
| 8 | + }, |
| 9 | + "entries": [ |
| 10 | + { |
| 11 | + "_id": "7dd828addaceac61c54def9ca5836e64", |
| 12 | + "_order": 0, |
| 13 | + "cache": {}, |
| 14 | + "request": { |
| 15 | + "bodySize": 573, |
| 16 | + "cookies": [], |
| 17 | + "headers": [ |
| 18 | + { |
| 19 | + "_fromType": "array", |
| 20 | + "name": "user-agent", |
| 21 | + "value": "datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.4; os Linux; arch x64)" |
| 22 | + }, |
| 23 | + { |
| 24 | + "_fromType": "array", |
| 25 | + "name": "accept", |
| 26 | + "value": "application/json, */*;q=0.8" |
| 27 | + }, |
| 28 | + { |
| 29 | + "_fromType": "array", |
| 30 | + "name": "content-type", |
| 31 | + "value": "application/json" |
| 32 | + }, |
| 33 | + { |
| 34 | + "_fromType": "array", |
| 35 | + "name": "x-datadog-parent-id", |
| 36 | + "value": "6698455153852476541" |
| 37 | + }, |
| 38 | + { |
| 39 | + "_fromType": "array", |
| 40 | + "name": "x-datadog-trace-id", |
| 41 | + "value": "1792726140053302697" |
| 42 | + }, |
| 43 | + { |
| 44 | + "_fromType": "array", |
| 45 | + "name": "content-length", |
| 46 | + "value": "573" |
| 47 | + }, |
| 48 | + { |
| 49 | + "_fromType": "array", |
| 50 | + "name": "connection", |
| 51 | + "value": "close" |
| 52 | + }, |
| 53 | + { |
| 54 | + "name": "host", |
| 55 | + "value": "api.datadoghq.com" |
| 56 | + } |
| 57 | + ], |
| 58 | + "headersSize": 492, |
| 59 | + "httpVersion": "HTTP/1.1", |
| 60 | + "method": "POST", |
| 61 | + "postData": { |
| 62 | + "mimeType": "application/json", |
| 63 | + "params": [], |
| 64 | + "text": "{\"cases\":[{\"condition\":\"a > 0\",\"name\":\"\",\"notifications\":[],\"status\":\"info\"}],\"filters\":[],\"isEnabled\":true,\"message\":\"Test rule\",\"name\":\"Test-Create_a_detection_rule_with_type_workload_security_returns_OK_response-1629100140\",\"options\":{\"evaluationWindow\":900,\"keepAlive\":3600,\"maxSignalDuration\":86400},\"queries\":[{\"agentRule\":{\"agentRuleId\":\"kernel_module_unlink_2\",\"expression\":\"(open.flags & ((O_CREAT|O_RDWR|O_WRONLY|O_TRUNC)) > 0)\"},\"aggregation\":\"count\",\"distinctFields\":[],\"groupByFields\":[],\"metric\":\"\",\"query\":\"@test:true\"}],\"tags\":[],\"type\":\"workload_security\"}" |
| 65 | + }, |
| 66 | + "queryString": [], |
| 67 | + "url": "https://api.datadoghq.com/api/v2/security_monitoring/rules" |
| 68 | + }, |
| 69 | + "response": { |
| 70 | + "bodySize": 901, |
| 71 | + "content": { |
| 72 | + "mimeType": "application/json;charset=utf-8", |
| 73 | + "size": 901, |
| 74 | + "text": "{\"creationAuthorId\":1445416,\"tags\":[],\"isEnabled\":true,\"hasExtendedTitle\":false,\"message\":\"Test rule\",\"options\":{\"detectionMethod\":\"threshold\",\"evaluationWindow\":900,\"maxSignalDuration\":86400,\"keepAlive\":3600},\"version\":1,\"createdAt\":1629100140907,\"filters\":[],\"queries\":[{\"distinctFields\":[],\"name\":\"\",\"metric\":\"\",\"aggregation\":\"count\",\"groupByFields\":[],\"query\":\"@agent.rule_id:(Test_Create_a_detection_rule_with_type_workload_security_returns_OK_response_1629100140_kernel_module_unlink_2 OR kernel_module_unlink_2)\",\"agentRule\":{\"expression\":\"(open.flags & ((O_CREAT|O_RDWR|O_WRONLY|O_TRUNC)) > 0)\",\"agentRuleId\":\"kernel_module_unlink_2\"}}],\"isDeleted\":false,\"cases\":[{\"status\":\"info\",\"notifications\":[],\"name\":\"\",\"condition\":\"a > 0\"}],\"type\":\"workload_security\",\"id\":\"csl-lpm-o3j\",\"isDefault\":false,\"name\":\"Test-Create_a_detection_rule_with_type_workload_security_returns_OK_response-1629100140\"}" |
| 75 | + }, |
| 76 | + "cookies": [], |
| 77 | + "headers": [ |
| 78 | + { |
| 79 | + "name": "date", |
| 80 | + "value": "Mon, 16 Aug 2021 07:49:00 GMT" |
| 81 | + }, |
| 82 | + { |
| 83 | + "name": "content-type", |
| 84 | + "value": "application/json;charset=utf-8" |
| 85 | + }, |
| 86 | + { |
| 87 | + "name": "content-length", |
| 88 | + "value": "901" |
| 89 | + }, |
| 90 | + { |
| 91 | + "name": "connection", |
| 92 | + "value": "close" |
| 93 | + }, |
| 94 | + { |
| 95 | + "name": "vary", |
| 96 | + "value": "Accept-Encoding" |
| 97 | + }, |
| 98 | + { |
| 99 | + "name": "pragma", |
| 100 | + "value": "no-cache" |
| 101 | + }, |
| 102 | + { |
| 103 | + "name": "cache-control", |
| 104 | + "value": "no-cache" |
| 105 | + }, |
| 106 | + { |
| 107 | + "name": "x-ratelimit-limit", |
| 108 | + "value": "600" |
| 109 | + }, |
| 110 | + { |
| 111 | + "name": "x-ratelimit-period", |
| 112 | + "value": "60" |
| 113 | + }, |
| 114 | + { |
| 115 | + "name": "x-ratelimit-reset", |
| 116 | + "value": "60" |
| 117 | + }, |
| 118 | + { |
| 119 | + "name": "x-ratelimit-remaining", |
| 120 | + "value": "599" |
| 121 | + }, |
| 122 | + { |
| 123 | + "name": "content-disposition", |
| 124 | + "value": "inline" |
| 125 | + }, |
| 126 | + { |
| 127 | + "name": "x-content-type-options", |
| 128 | + "value": "nosniff" |
| 129 | + }, |
| 130 | + { |
| 131 | + "name": "strict-transport-security", |
| 132 | + "value": "max-age=15724800;" |
| 133 | + }, |
| 134 | + { |
| 135 | + "name": "content-security-policy", |
| 136 | + "value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" |
| 137 | + }, |
| 138 | + { |
| 139 | + "name": "x-frame-options", |
| 140 | + "value": "SAMEORIGIN" |
| 141 | + } |
| 142 | + ], |
| 143 | + "headersSize": 525, |
| 144 | + "httpVersion": "HTTP/1.1", |
| 145 | + "redirectURL": "", |
| 146 | + "status": 200, |
| 147 | + "statusText": "OK" |
| 148 | + }, |
| 149 | + "startedDateTime": "2021-08-16T07:49:00.468Z", |
| 150 | + "time": 484, |
| 151 | + "timings": { |
| 152 | + "blocked": -1, |
| 153 | + "connect": -1, |
| 154 | + "dns": -1, |
| 155 | + "receive": 0, |
| 156 | + "send": 0, |
| 157 | + "ssl": -1, |
| 158 | + "wait": 484 |
| 159 | + } |
| 160 | + }, |
| 161 | + { |
| 162 | + "_id": "35b23d74fe3d2614af194129d8229540", |
| 163 | + "_order": 0, |
| 164 | + "cache": {}, |
| 165 | + "request": { |
| 166 | + "bodySize": 0, |
| 167 | + "cookies": [], |
| 168 | + "headers": [ |
| 169 | + { |
| 170 | + "_fromType": "array", |
| 171 | + "name": "user-agent", |
| 172 | + "value": "datadog-api-client-typescript/1.0.0-beta.4 (node 14.17.4; os Linux; arch x64)" |
| 173 | + }, |
| 174 | + { |
| 175 | + "_fromType": "array", |
| 176 | + "name": "accept", |
| 177 | + "value": "application/json, */*;q=0.8" |
| 178 | + }, |
| 179 | + { |
| 180 | + "_fromType": "array", |
| 181 | + "name": "x-datadog-parent-id", |
| 182 | + "value": "2468041391897675304" |
| 183 | + }, |
| 184 | + { |
| 185 | + "_fromType": "array", |
| 186 | + "name": "x-datadog-trace-id", |
| 187 | + "value": "1792726140053302697" |
| 188 | + }, |
| 189 | + { |
| 190 | + "_fromType": "array", |
| 191 | + "name": "connection", |
| 192 | + "value": "close" |
| 193 | + }, |
| 194 | + { |
| 195 | + "name": "host", |
| 196 | + "value": "api.datadoghq.com" |
| 197 | + } |
| 198 | + ], |
| 199 | + "headersSize": 453, |
| 200 | + "httpVersion": "HTTP/1.1", |
| 201 | + "method": "DELETE", |
| 202 | + "queryString": [], |
| 203 | + "url": "https://api.datadoghq.com/api/v2/security_monitoring/rules/csl-lpm-o3j" |
| 204 | + }, |
| 205 | + "response": { |
| 206 | + "bodySize": 0, |
| 207 | + "content": { |
| 208 | + "mimeType": "text/plain", |
| 209 | + "size": 0 |
| 210 | + }, |
| 211 | + "cookies": [], |
| 212 | + "headers": [ |
| 213 | + { |
| 214 | + "name": "date", |
| 215 | + "value": "Mon, 16 Aug 2021 07:49:01 GMT" |
| 216 | + }, |
| 217 | + { |
| 218 | + "name": "content-length", |
| 219 | + "value": "0" |
| 220 | + }, |
| 221 | + { |
| 222 | + "name": "connection", |
| 223 | + "value": "close" |
| 224 | + }, |
| 225 | + { |
| 226 | + "name": "pragma", |
| 227 | + "value": "no-cache" |
| 228 | + }, |
| 229 | + { |
| 230 | + "name": "cache-control", |
| 231 | + "value": "no-cache" |
| 232 | + }, |
| 233 | + { |
| 234 | + "name": "x-ratelimit-limit", |
| 235 | + "value": "600" |
| 236 | + }, |
| 237 | + { |
| 238 | + "name": "x-ratelimit-period", |
| 239 | + "value": "60" |
| 240 | + }, |
| 241 | + { |
| 242 | + "name": "x-ratelimit-reset", |
| 243 | + "value": "59" |
| 244 | + }, |
| 245 | + { |
| 246 | + "name": "x-ratelimit-remaining", |
| 247 | + "value": "598" |
| 248 | + }, |
| 249 | + { |
| 250 | + "name": "content-disposition", |
| 251 | + "value": "inline" |
| 252 | + }, |
| 253 | + { |
| 254 | + "name": "x-content-type-options", |
| 255 | + "value": "nosniff" |
| 256 | + }, |
| 257 | + { |
| 258 | + "name": "strict-transport-security", |
| 259 | + "value": "max-age=15724800;" |
| 260 | + }, |
| 261 | + { |
| 262 | + "name": "content-security-policy", |
| 263 | + "value": "frame-ancestors 'self'; report-uri https://api.datadoghq.com/csp-report" |
| 264 | + }, |
| 265 | + { |
| 266 | + "name": "x-frame-options", |
| 267 | + "value": "SAMEORIGIN" |
| 268 | + } |
| 269 | + ], |
| 270 | + "headersSize": 454, |
| 271 | + "httpVersion": "HTTP/1.1", |
| 272 | + "redirectURL": "", |
| 273 | + "status": 204, |
| 274 | + "statusText": "No Content" |
| 275 | + }, |
| 276 | + "startedDateTime": "2021-08-16T07:49:00.956Z", |
| 277 | + "time": 390, |
| 278 | + "timings": { |
| 279 | + "blocked": -1, |
| 280 | + "connect": -1, |
| 281 | + "dns": -1, |
| 282 | + "receive": 0, |
| 283 | + "send": 0, |
| 284 | + "ssl": -1, |
| 285 | + "wait": 390 |
| 286 | + } |
| 287 | + } |
| 288 | + ], |
| 289 | + "pages": [], |
| 290 | + "version": "1.2" |
| 291 | + } |
| 292 | +} |
0 commit comments