| 1 |
len(results) == 4 |
| 2 |
len(results["s00-raw"]["crowdsecurity/non-syslog"]) == 2 |
| 3 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Success == true |
| 4 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["program"] == "nginx" |
| 5 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Parsed["message"] == "5.5.8.5 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1 HTTP/1.1\" 404 522 \"-\" \"Go-http-client/1.1\"" |
| 6 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 7 |
results["s00-raw"]["crowdsecurity/non-syslog"][0].Evt.Meta["datasource_type"] == "file" |
| 8 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Success == true |
| 9 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["message"] == "5.5.8.56 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd HTTP/1.1\" 401 522 \"-\" \"Go-http-client/1.1\"" |
| 10 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Parsed["program"] == "nginx" |
| 11 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 12 |
results["s00-raw"]["crowdsecurity/non-syslog"][1].Evt.Meta["datasource_type"] == "file" |
| 13 |
len(results["s00-raw"]["crowdsecurity/syslog-logs"]) == 2 |
| 14 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Success == false |
| 15 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Success == false |
| 16 |
len(results["s01-parse"]["crowdsecurity/nginx-logs"]) == 2 |
| 17 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Success == true |
| 18 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["http_version"] == "1.1" |
| 19 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["remote_user"] == "-" |
| 20 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["status"] == "404" |
| 21 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["http_referer"] == "-" |
| 22 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["message"] == "5.5.8.5 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1 HTTP/1.1\" 404 522 \"-\" \"Go-http-client/1.1\"" |
| 23 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["program"] == "nginx" |
| 24 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["remote_addr"] == "5.5.8.5" |
| 25 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["request"] == "/service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1" |
| 26 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["body_bytes_sent"] == "522" |
| 27 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["http_user_agent"] == "Go-http-client/1.1" |
| 28 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["verb"] == "POST" |
| 29 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Parsed["time_local"] == "04/Jan/2020:07:25:02 +0000" |
| 30 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["datasource_type"] == "file" |
| 31 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["http_path"] == "/service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1" |
| 32 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["http_status"] == "404" |
| 33 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["http_user_agent"] == "Go-http-client/1.1" |
| 34 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 35 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["http_verb"] == "POST" |
| 36 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["log_type"] == "http_access-log" |
| 37 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["service"] == "http" |
| 38 |
results["s01-parse"]["crowdsecurity/nginx-logs"][0].Evt.Meta["source_ip"] == "5.5.8.5" |
| 39 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Success == true |
| 40 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["http_referer"] == "-" |
| 41 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["http_user_agent"] == "Go-http-client/1.1" |
| 42 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["remote_addr"] == "5.5.8.56" |
| 43 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["http_version"] == "1.1" |
| 44 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["time_local"] == "04/Jan/2020:07:25:02 +0000" |
| 45 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["verb"] == "POST" |
| 46 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["body_bytes_sent"] == "522" |
| 47 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["program"] == "nginx" |
| 48 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["remote_user"] == "-" |
| 49 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["message"] == "5.5.8.56 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd HTTP/1.1\" 401 522 \"-\" \"Go-http-client/1.1\"" |
| 50 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["request"] == "/service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd" |
| 51 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Parsed["status"] == "401" |
| 52 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["log_type"] == "http_access-log" |
| 53 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["service"] == "http" |
| 54 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["source_ip"] == "5.5.8.56" |
| 55 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 56 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["datasource_type"] == "file" |
| 57 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["http_path"] == "/service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd" |
| 58 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["http_status"] == "401" |
| 59 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["http_user_agent"] == "Go-http-client/1.1" |
| 60 |
results["s01-parse"]["crowdsecurity/nginx-logs"][1].Evt.Meta["http_verb"] == "POST" |
| 61 |
len(results["s02-enrich"]["crowdsecurity/dateparse-enrich"]) == 2 |
| 62 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Success == true |
| 63 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["message"] == "5.5.8.5 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1 HTTP/1.1\" 404 522 \"-\" \"Go-http-client/1.1\"" |
| 64 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["remote_addr"] == "5.5.8.5" |
| 65 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["request"] == "/service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1" |
| 66 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["http_referer"] == "-" |
| 67 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["remote_user"] == "-" |
| 68 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["status"] == "404" |
| 69 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["http_version"] == "1.1" |
| 70 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["time_local"] == "04/Jan/2020:07:25:02 +0000" |
| 71 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["http_user_agent"] == "Go-http-client/1.1" |
| 72 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["program"] == "nginx" |
| 73 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["verb"] == "POST" |
| 74 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["body_bytes_sent"] == "522" |
| 75 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["http_path"] == "/service/extension/backup/mboximport?account-name=admin&ow=2&no-switch=1&append=1" |
| 76 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["log_type"] == "http_access-log" |
| 77 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["service"] == "http" |
| 78 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 79 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_type"] == "file" |
| 80 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["http_status"] == "404" |
| 81 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["http_user_agent"] == "Go-http-client/1.1" |
| 82 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["http_verb"] == "POST" |
| 83 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["source_ip"] == "5.5.8.5" |
| 84 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["timestamp"] == "2020-01-04T07:25:02Z" |
| 85 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Enriched["MarshaledTime"] == "2020-01-04T07:25:02Z" |
| 86 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Success == true |
| 87 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["body_bytes_sent"] == "522" |
| 88 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["message"] == "5.5.8.56 - - [04/Jan/2020:07:25:02 +0000] \"POST /service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd HTTP/1.1\" 401 522 \"-\" \"Go-http-client/1.1\"" |
| 89 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["program"] == "nginx" |
| 90 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["remote_addr"] == "5.5.8.56" |
| 91 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["http_user_agent"] == "Go-http-client/1.1" |
| 92 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["time_local"] == "04/Jan/2020:07:25:02 +0000" |
| 93 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["http_referer"] == "-" |
| 94 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["request"] == "/service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd" |
| 95 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["verb"] == "POST" |
| 96 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["http_version"] == "1.1" |
| 97 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["remote_user"] == "-" |
| 98 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["status"] == "401" |
| 99 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["service"] == "http" |
| 100 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_path"] == "cve_2022_37042.log" |
| 101 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_type"] == "file" |
| 102 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["http_status"] == "401" |
| 103 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["http_verb"] == "POST" |
| 104 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["timestamp"] == "2020-01-04T07:25:02Z" |
| 105 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["http_path"] == "/service/extension/backup/mboximport?account-name=admin&account-status=1&ow=cmd" |
| 106 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["http_user_agent"] == "Go-http-client/1.1" |
| 107 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["log_type"] == "http_access-log" |
| 108 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["source_ip"] == "5.5.8.56" |
| 109 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Enriched["MarshaledTime"] == "2020-01-04T07:25:02Z" |
| 110 |
len(results["success"][""]) == 0 |