| 1 |
len(results) == 1 |
| 2 |
"192.168.9.163" in results[0].Overflow.GetSources() |
| 3 |
results[0].Overflow.Sources["192.168.9.163"].IP == "192.168.9.163" |
| 4 |
results[0].Overflow.Sources["192.168.9.163"].Range == "" |
| 5 |
results[0].Overflow.Sources["192.168.9.163"].GetScope() == "Ip" |
| 6 |
results[0].Overflow.Sources["192.168.9.163"].GetValue() == "192.168.9.163" |
| 7 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "litespeed-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") == "/.env" |
| 10 |
results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "401" |
| 11 |
results[0].Overflow.Alert.Events[0].GetMeta("http_user_agent") == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" |
| 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") == "192.168.9.163" |
| 16 |
results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-06-09T12:22:05+02:00" |
| 17 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "litespeed-http-sensitive-files.log" |
| 18 |
results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" |
| 19 |
results[0].Overflow.Alert.Events[1].GetMeta("http_path") == "/foo.sql" |
| 20 |
results[0].Overflow.Alert.Events[1].GetMeta("http_status") == "401" |
| 21 |
results[0].Overflow.Alert.Events[1].GetMeta("http_user_agent") == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" |
| 22 |
results[0].Overflow.Alert.Events[1].GetMeta("http_verb") == "GET" |
| 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") == "192.168.9.163" |
| 26 |
results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-06-09T12:22:05+02:00" |
| 27 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "litespeed-http-sensitive-files.log" |
| 28 |
results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" |
| 29 |
results[0].Overflow.Alert.Events[2].GetMeta("http_path") == "/.passwd" |
| 30 |
results[0].Overflow.Alert.Events[2].GetMeta("http_status") == "401" |
| 31 |
results[0].Overflow.Alert.Events[2].GetMeta("http_user_agent") == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" |
| 32 |
results[0].Overflow.Alert.Events[2].GetMeta("http_verb") == "GET" |
| 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") == "192.168.9.163" |
| 36 |
results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-06-09T12:22:05+02:00" |
| 37 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "litespeed-http-sensitive-files.log" |
| 38 |
results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" |
| 39 |
results[0].Overflow.Alert.Events[3].GetMeta("http_path") == "/.ssh" |
| 40 |
results[0].Overflow.Alert.Events[3].GetMeta("http_status") == "401" |
| 41 |
results[0].Overflow.Alert.Events[3].GetMeta("http_user_agent") == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" |
| 42 |
results[0].Overflow.Alert.Events[3].GetMeta("http_verb") == "GET" |
| 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") == "192.168.9.163" |
| 46 |
results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-06-09T12:22:05+02:00" |
| 47 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "litespeed-http-sensitive-files.log" |
| 48 |
results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file" |
| 49 |
results[0].Overflow.Alert.Events[4].GetMeta("http_path") == "/.git" |
| 50 |
results[0].Overflow.Alert.Events[4].GetMeta("http_status") == "401" |
| 51 |
results[0].Overflow.Alert.Events[4].GetMeta("http_user_agent") == "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36" |
| 52 |
results[0].Overflow.Alert.Events[4].GetMeta("http_verb") == "GET" |
| 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") == "192.168.9.163" |
| 56 |
results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-06-09T12:22:05+02:00" |
| 57 |
results[0].Overflow.Alert.GetScenario() == "crowdsecurity/http-sensitive-files" |
| 58 |
results[0].Overflow.Alert.Remediation == true |
| 59 |
results[0].Overflow.Alert.GetEventsCount() == 5 |