| 1 |
len(results) == 1 |
| 2 |
"127.0.0.1" in results[0].Overflow.GetSources() |
| 3 |
results[0].Overflow.Sources["127.0.0.1"].IP == "127.0.0.1" |
| 4 |
results[0].Overflow.Sources["127.0.0.1"].Range == "" |
| 5 |
results[0].Overflow.Sources["127.0.0.1"].GetScope() == "Ip" |
| 6 |
results[0].Overflow.Sources["127.0.0.1"].GetValue() == "127.0.0.1" |
| 7 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "nginx-http-sensitive-files.log" |
| 8 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 9 |
results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/.bash_history" |
| 10 |
results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "404" |
| 11 |
results[0].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "curl/7.68.0" |
| 12 |
results[0].Overflow.Alert.Events[0].GetMeta("http_verb") == "GET" |
| 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") == "127.0.0.1" |
| 16 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "nginx-http-sensitive-files.log" |
| 17 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" |
| 18 |
results[0].Overflow.Alert.Events[1].GetMeta("http_path") == "/.bashrc" |
| 19 |
results[0].Overflow.Alert.Events[1].GetMeta("http_status") == "404" |
| 20 |
results[0].Overflow.Alert.Events[1].GetMeta("http_user_agent") == "curl/7.68.0" |
| 21 |
results[0].Overflow.Alert.Events[1].GetMeta("http_verb") == "GET" |
| 22 |
results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "http_access-log" |
| 23 |
results[0].Overflow.Alert.Events[1].GetMeta("service") == "http" |
| 24 |
results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "127.0.0.1" |
| 25 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "nginx-http-sensitive-files.log" |
| 26 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" |
| 27 |
results[0].Overflow.Alert.Events[2].GetMeta("http_path") == "/.cache" |
| 28 |
results[0].Overflow.Alert.Events[2].GetMeta("http_status") == "404" |
| 29 |
results[0].Overflow.Alert.Events[2].GetMeta("http_user_agent") == "curl/7.68.0" |
| 30 |
results[0].Overflow.Alert.Events[2].GetMeta("http_verb") == "GET" |
| 31 |
results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "http_access-log" |
| 32 |
results[0].Overflow.Alert.Events[2].GetMeta("service") == "http" |
| 33 |
results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "127.0.0.1" |
| 34 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "nginx-http-sensitive-files.log" |
| 35 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" |
| 36 |
results[0].Overflow.Alert.Events[3].GetMeta("http_path") == "/.config" |
| 37 |
results[0].Overflow.Alert.Events[3].GetMeta("http_status") == "404" |
| 38 |
results[0].Overflow.Alert.Events[3].GetMeta("http_user_agent") == "curl/7.68.0" |
| 39 |
results[0].Overflow.Alert.Events[3].GetMeta("http_verb") == "GET" |
| 40 |
results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "http_access-log" |
| 41 |
results[0].Overflow.Alert.Events[3].GetMeta("service") == "http" |
| 42 |
results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "127.0.0.1" |
| 43 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "nginx-http-sensitive-files.log" |
| 44 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file" |
| 45 |
results[0].Overflow.Alert.Events[4].GetMeta("http_path") == "/.cvs" |
| 46 |
results[0].Overflow.Alert.Events[4].GetMeta("http_status") == "404" |
| 47 |
results[0].Overflow.Alert.Events[4].GetMeta("http_user_agent") == "curl/7.68.0" |
| 48 |
results[0].Overflow.Alert.Events[4].GetMeta("http_verb") == "GET" |
| 49 |
results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "http_access-log" |
| 50 |
results[0].Overflow.Alert.Events[4].GetMeta("service") == "http" |
| 51 |
results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "127.0.0.1" |
| 52 |
results[0].Overflow.Alert.GetScenario() == "crowdsecurity/http-sensitive-files" |
| 53 |
results[0].Overflow.Alert.Remediation == true |
| 54 |
results[0].Overflow.Alert.GetEventsCount() == 5 |