Debian Codegraph @

hub1/.tests/apache2-http-sensitive-files/scenario.assert

raw
1 len(results) == 1
2 "172.17.0.1" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["172.17.0.1"].IP == "172.17.0.1"
4 results[0].Overflow.Sources["172.17.0.1"].Range == ""
5 results[0].Overflow.Sources["172.17.0.1"].GetScope() == "Ip"
6 results[0].Overflow.Sources["172.17.0.1"].GetValue() == "172.17.0.1"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "apache2-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") == "/.htpasswd"
10 results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "403"
11 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "http_access-log"
12 results[0].Overflow.Alert.Events[0].GetMeta("service") == "http"
13 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "172.17.0.1"
14 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "apache2-http-sensitive-files.log"
15 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
16 results[0].Overflow.Alert.Events[1].GetMeta("http_path") == "/.listing"
17 results[0].Overflow.Alert.Events[1].GetMeta("http_status") == "404"
18 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "http_access-log"
19 results[0].Overflow.Alert.Events[1].GetMeta("service") == "http"
20 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "172.17.0.1"
21 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "apache2-http-sensitive-files.log"
22 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
23 results[0].Overflow.Alert.Events[2].GetMeta("http_path") == "/.listings"
24 results[0].Overflow.Alert.Events[2].GetMeta("http_status") == "404"
25 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "http_access-log"
26 results[0].Overflow.Alert.Events[2].GetMeta("service") == "http"
27 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "172.17.0.1"
28 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "apache2-http-sensitive-files.log"
29 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
30 results[0].Overflow.Alert.Events[3].GetMeta("http_path") == "/.mysql_history"
31 results[0].Overflow.Alert.Events[3].GetMeta("http_status") == "404"
32 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "http_access-log"
33 results[0].Overflow.Alert.Events[3].GetMeta("service") == "http"
34 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "172.17.0.1"
35 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "apache2-http-sensitive-files.log"
36 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
37 results[0].Overflow.Alert.Events[4].GetMeta("http_path") == "/.passwd"
38 results[0].Overflow.Alert.Events[4].GetMeta("http_status") == "404"
39 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "http_access-log"
40 results[0].Overflow.Alert.Events[4].GetMeta("service") == "http"
41 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "172.17.0.1"
42 results[0].Overflow.Alert.GetScenario() == "crowdsecurity/http-sensitive-files"
43 results[0].Overflow.Alert.Remediation == true
44 results[0].Overflow.Alert.GetEventsCount() == 5