| 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") == "cve-2021-42013.log" |
| 8 |
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" |
| 9 |
results[0].Overflow.Alert.Events[0].GetMeta("http_path") == "/cgi-bin/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/%%32%65%%32%65/bin/bash" |
| 10 |
results[0].Overflow.Alert.Events[0].GetMeta("http_status") == "200" |
| 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.GetScenario() == "crowdsecurity/http-cve-2021-42013" |
| 15 |
results[0].Overflow.Alert.Remediation == true |
| 16 |
results[0].Overflow.Alert.GetEventsCount() == 1 |
| 17 |
|