Debian Codegraph @

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

raw
1 len(results) == 1
2 "192.168.9.212" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["192.168.9.212"].IP == "192.168.9.212"
4 results[0].Overflow.Sources["192.168.9.212"].Range == ""
5 results[0].Overflow.Sources["192.168.9.212"].GetScope() == "Ip"
6 results[0].Overflow.Sources["192.168.9.212"].GetValue() == "192.168.9.212"
7 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "windows-bf.log"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "wineventlog"
9 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "windows_failed_auth"
10 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "192.168.9.212"
11 results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-04-29T12:36:01.9027913Z"
12 results[0].Overflow.Alert.Events[0].GetMeta("username") == "asdfasdf"
13 results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "windows-bf.log"
14 results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "wineventlog"
15 results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "windows_failed_auth"
16 results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "192.168.9.212"
17 results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-04-29T12:36:02.2268806Z"
18 results[0].Overflow.Alert.Events[1].GetMeta("username") == "asdfasdf"
19 results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "windows-bf.log"
20 results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "wineventlog"
21 results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "windows_failed_auth"
22 results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "192.168.9.212"
23 results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-04-29T12:36:03.2268806Z"
24 results[0].Overflow.Alert.Events[2].GetMeta("username") == "asdfasdf"
25 results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "windows-bf.log"
26 results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "wineventlog"
27 results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "windows_failed_auth"
28 results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "192.168.9.212"
29 results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-04-29T12:36:04.2268806Z"
30 results[0].Overflow.Alert.Events[3].GetMeta("username") == "asdfasdf"
31 results[0].Overflow.Alert.Events[4].GetMeta("datasource_path") == "windows-bf.log"
32 results[0].Overflow.Alert.Events[4].GetMeta("datasource_type") == "wineventlog"
33 results[0].Overflow.Alert.Events[4].GetMeta("log_type") == "windows_failed_auth"
34 results[0].Overflow.Alert.Events[4].GetMeta("source_ip") == "192.168.9.212"
35 results[0].Overflow.Alert.Events[4].GetMeta("timestamp") == "2022-04-29T12:36:06.2268806Z"
36 results[0].Overflow.Alert.Events[4].GetMeta("username") == "asdfasdf"
37 results[0].Overflow.Alert.Events[5].GetMeta("datasource_path") == "windows-bf.log"
38 results[0].Overflow.Alert.Events[5].GetMeta("datasource_type") == "wineventlog"
39 results[0].Overflow.Alert.Events[5].GetMeta("log_type") == "windows_failed_auth"
40 results[0].Overflow.Alert.Events[5].GetMeta("source_ip") == "192.168.9.212"
41 results[0].Overflow.Alert.Events[5].GetMeta("timestamp") == "2022-04-29T12:36:07.2268806Z"
42 results[0].Overflow.Alert.Events[5].GetMeta("username") == "asdfasdf"
43 results[0].Overflow.Alert.GetScenario() == "crowdsecurity/windows-bf"
44 results[0].Overflow.Alert.Remediation == true
45 results[0].Overflow.Alert.GetEventsCount() == 6