Debian Codegraph @

hub1/.tests/thehive-bf/scenario.assert

raw
1 len(results) == 1
2 "172.17.0.2" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["172.17.0.2"].IP == "172.17.0.2"
4 results[0].Overflow.Sources["172.17.0.2"].Range == ""
5 results[0].Overflow.Sources["172.17.0.2"].GetScope() == "Ip"
6 results[0].Overflow.Sources["172.17.0.2"].GetValue() == "172.17.0.2"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "thehive-bf.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
9 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "thehive_failed_auth"
10 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "172.17.0.2"
11 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "thehive-bf.log"
12 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
13 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "thehive_failed_auth"
14 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "172.17.0.2"
15 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "thehive-bf.log"
16 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
17 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "thehive_failed_auth"
18 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "172.17.0.2"
19 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "thehive-bf.log"
20 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
21 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "thehive_failed_auth"
22 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "172.17.0.2"
23 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "thehive-bf.log"
24 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "file"
25 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "thehive_failed_auth"
26 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "172.17.0.2"
27 results[0].Overflow.Alert.Events[5].GetMeta("datasource_path") == "thehive-bf.log"
28 results[0].Overflow.Alert.Events[5].GetMeta("datasource_type") == "file"
29 results[0].Overflow.Alert.Events[5].GetMeta("log_type") == "thehive_failed_auth"
30 results[0].Overflow.Alert.Events[5].GetMeta("source_ip") == "172.17.0.2"
31 results[0].Overflow.Alert.GetScenario() == "crowdsecurity/thehive-bf"
32 results[0].Overflow.Alert.Remediation == true
33 results[0].Overflow.Alert.GetEventsCount() == 6