| 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-path-traversal.log" |
| 8 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 9 |
results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/%2Fetc%2Fpasswd" |
| 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-path-traversal.log" |
| 17 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" |
| 18 |
results[0].Overflow.Alert.Events[1].GetMeta("http_path") == "/%252E%252E%252Ffoo1" |
| 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-path-traversal.log" |
| 26 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" |
| 27 |
results[0].Overflow.Alert.Events[2].GetMeta("http_path") == "/%252E%252E%252Ffoo2" |
| 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-path-traversal.log" |
| 35 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" |
| 36 |
results[0].Overflow.Alert.Events[3].GetMeta("http_path") == "/%252E%252E%252Ffoo3" |
| 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.GetScenario() == "crowdsecurity/http-path-traversal-probing" |
| 44 |
results[0].Overflow.Alert.Remediation == true |
| 45 |
results[0].Overflow.Alert.GetEventsCount() == 5 |