| 1 |
len(results) == 1 |
| 2 |
"1.2.3.4" in results[0].Overflow.GetSources() |
| 3 |
results[0].Overflow.Sources["1.2.3.4"].IP == "1.2.3.4" |
| 4 |
results[0].Overflow.Sources["1.2.3.4"].Range == "" |
| 5 |
results[0].Overflow.Sources["1.2.3.4"].GetScope() == "Ip" |
| 6 |
results[0].Overflow.Sources["1.2.3.4"].GetValue() == "1.2.3.4" |
| 7 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "apiscp-bf.log" |
| 8 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 9 |
results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/apps/login" |
| 10 |
results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "200" |
| 11 |
results[0].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 12 |
results[0].Overflow.Alert.Events[0].GetMeta("http_verb") == "POST" |
| 13 |
results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log" |
| 14 |
results[0].Overflow.Alert.Events[0].GetMeta("service") == "http" |
| 15 |
results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "1.2.3.4" |
| 16 |
results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-07-12T11:45:00-04:00" |
| 17 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "apiscp-bf.log" |
| 18 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" |
| 19 |
results[0].Overflow.Alert.Events[1].GetMeta("http_path") == "/apps/login" |
| 20 |
results[0].Overflow.Alert.Events[1].GetMeta("http_status") == "200" |
| 21 |
results[0].Overflow.Alert.Events[1].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 22 |
results[0].Overflow.Alert.Events[1].GetMeta("http_verb") == "POST" |
| 23 |
results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "http_access-log" |
| 24 |
results[0].Overflow.Alert.Events[1].GetMeta("service") == "http" |
| 25 |
results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "1.2.3.4" |
| 26 |
results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-07-12T11:45:01-04:00" |
| 27 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "apiscp-bf.log" |
| 28 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" |
| 29 |
results[0].Overflow.Alert.Events[2].GetMeta("http_path") == "/apps/login" |
| 30 |
results[0].Overflow.Alert.Events[2].GetMeta("http_status") == "200" |
| 31 |
results[0].Overflow.Alert.Events[2].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 32 |
results[0].Overflow.Alert.Events[2].GetMeta("http_verb") == "POST" |
| 33 |
results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "http_access-log" |
| 34 |
results[0].Overflow.Alert.Events[2].GetMeta("service") == "http" |
| 35 |
results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "1.2.3.4" |
| 36 |
results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-07-12T11:45:01-04:00" |
| 37 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "apiscp-bf.log" |
| 38 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" |
| 39 |
results[0].Overflow.Alert.Events[3].GetMeta("http_path") == "/apps/login" |
| 40 |
results[0].Overflow.Alert.Events[3].GetMeta("http_status") == "200" |
| 41 |
results[0].Overflow.Alert.Events[3].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 42 |
results[0].Overflow.Alert.Events[3].GetMeta("http_verb") == "POST" |
| 43 |
results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "http_access-log" |
| 44 |
results[0].Overflow.Alert.Events[3].GetMeta("service") == "http" |
| 45 |
results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "1.2.3.4" |
| 46 |
results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-07-12T11:45:02-04:00" |
| 47 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "apiscp-bf.log" |
| 48 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file" |
| 49 |
results[0].Overflow.Alert.Events[4].GetMeta("http_path") == "/apps/login" |
| 50 |
results[0].Overflow.Alert.Events[4].GetMeta("http_status") == "200" |
| 51 |
results[0].Overflow.Alert.Events[4].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 52 |
results[0].Overflow.Alert.Events[4].GetMeta("http_verb") == "POST" |
| 53 |
results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "http_access-log" |
| 54 |
results[0].Overflow.Alert.Events[4].GetMeta("service") == "http" |
| 55 |
results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "1.2.3.4" |
| 56 |
results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-07-12T11:45:02-04:00" |
| 57 |
results[0].Overflow.Alert.Events[5].GetMeta("datasource_path") == "apiscp-bf.log" |
| 58 |
results[0].Overflow.Alert.Events[5].GetMeta("datasource_type") == "file" |
| 59 |
results[0].Overflow.Alert.Events[5].GetMeta("http_path") == "/apps/login" |
| 60 |
results[0].Overflow.Alert.Events[5].GetMeta("http_status") == "200" |
| 61 |
results[0].Overflow.Alert.Events[5].GetMeta("http_user_agent") == "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36" |
| 62 |
results[0].Overflow.Alert.Events[5].GetMeta("http_verb") == "POST" |
| 63 |
results[0].Overflow.Alert.Events[5].GetMeta("log_type") == "http_access-log" |
| 64 |
results[0].Overflow.Alert.Events[5].GetMeta("service") == "http" |
| 65 |
results[0].Overflow.Alert.Events[5].GetMeta("source_ip") == "1.2.3.4" |
| 66 |
results[0].Overflow.Alert.Events[5].GetMeta("timestamp") == "2022-07-12T11:45:02-04:00" |
| 67 |
results[0].Overflow.Alert.GetScenario() == "crowdsecurity/http-apiscp-bf" |
| 68 |
results[0].Overflow.Alert.Remediation == true |
| 69 |
results[0].Overflow.Alert.GetEventsCount() == 6 |