Debian Codegraph @

hub1/.tests/sshesame/scenario.assert

raw
1 len(results) == 5
2 "188.255.62.33" in results[0].Overflow.GetSources()
3 results[0].Overflow.Sources["188.255.62.33"].IP == "188.255.62.33"
4 results[0].Overflow.Sources["188.255.62.33"].Range == ""
5 results[0].Overflow.Sources["188.255.62.33"].GetScope() == "Ip"
6 results[0].Overflow.Sources["188.255.62.33"].GetValue() == "188.255.62.33"
7 results[0].Overflow.Alert.Events[0].GetMeta("command") == "/ip cloud print"
8 results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "sshesame.log"
9 results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
10 results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "sshesame_cmd"
11 results[0].Overflow.Alert.Events[0].GetMeta("service") == "sshesame"
12 results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "188.255.62.33"
13 results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-05-06T12:25:39Z"
14 results[0].Overflow.Alert.GetScenario() == "thespad/sshesame-cmd"
15 results[0].Overflow.Alert.Remediation == true
16 results[0].Overflow.Alert.GetEventsCount() == 1
17 "186.78.209.242" in results[1].Overflow.GetSources()
18 results[1].Overflow.Sources["186.78.209.242"].IP == "186.78.209.242"
19 results[1].Overflow.Sources["186.78.209.242"].Range == ""
20 results[1].Overflow.Sources["186.78.209.242"].GetScope() == "Ip"
21 results[1].Overflow.Sources["186.78.209.242"].GetValue() == "186.78.209.242"
22 results[1].Overflow.Alert.Events[0].GetMeta("command") == "scp -t /tmp/taCiyiIF"
23 results[1].Overflow.Alert.Events[0].GetMeta("datasource_path") == "sshesame.log"
24 results[1].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
25 results[1].Overflow.Alert.Events[0].GetMeta("log_type") == "sshesame_cmd"
26 results[1].Overflow.Alert.Events[0].GetMeta("service") == "sshesame"
27 results[1].Overflow.Alert.Events[0].GetMeta("source_ip") == "186.78.209.242"
28 results[1].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-05-06T05:40:31Z"
29 results[1].Overflow.Alert.GetScenario() == "thespad/sshesame-cmd"
30 results[1].Overflow.Alert.Remediation == true
31 results[1].Overflow.Alert.GetEventsCount() == 1
32 "165.232.183.156" in results[2].Overflow.GetSources()
33 results[2].Overflow.Sources["165.232.183.156"].IP == "165.232.183.156"
34 results[2].Overflow.Sources["165.232.183.156"].Range == ""
35 results[2].Overflow.Sources["165.232.183.156"].GetScope() == "Ip"
36 results[2].Overflow.Sources["165.232.183.156"].GetValue() == "165.232.183.156"
37 results[2].Overflow.Alert.Events[0].GetMeta("command") == "uname -s -v -n -r -m"
38 results[2].Overflow.Alert.Events[0].GetMeta("datasource_path") == "sshesame.log"
39 results[2].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
40 results[2].Overflow.Alert.Events[0].GetMeta("log_type") == "sshesame_cmd"
41 results[2].Overflow.Alert.Events[0].GetMeta("service") == "sshesame"
42 results[2].Overflow.Alert.Events[0].GetMeta("source_ip") == "165.232.183.156"
43 results[2].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-05-06T05:37:28Z"
44 results[2].Overflow.Alert.GetScenario() == "thespad/sshesame-cmd"
45 results[2].Overflow.Alert.Remediation == true
46 results[2].Overflow.Alert.GetEventsCount() == 1
47 "165.232.183.156" in results[3].Overflow.GetSources()
48 results[3].Overflow.Sources["165.232.183.156"].IP == "165.232.183.156"
49 results[3].Overflow.Sources["165.232.183.156"].Range == ""
50 results[3].Overflow.Sources["165.232.183.156"].GetScope() == "Ip"
51 results[3].Overflow.Sources["165.232.183.156"].GetValue() == "165.232.183.156"
52 results[3].Overflow.Alert.Events[0].GetMeta("command") == "uname -s -v -n -r -m"
53 results[3].Overflow.Alert.Events[0].GetMeta("datasource_path") == "sshesame.log"
54 results[3].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
55 results[3].Overflow.Alert.Events[0].GetMeta("log_type") == "sshesame_cmd"
56 results[3].Overflow.Alert.Events[0].GetMeta("service") == "sshesame"
57 results[3].Overflow.Alert.Events[0].GetMeta("source_ip") == "165.232.183.156"
58 results[3].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-05-06T09:52:12Z"
59 results[3].Overflow.Alert.GetScenario() == "thespad/sshesame-cmd"
60 results[3].Overflow.Alert.Remediation == true
61 results[3].Overflow.Alert.GetEventsCount() == 1
62 "3.16.59.158" in results[4].Overflow.GetSources()
63 results[4].Overflow.Sources["3.16.59.158"].IP == "3.16.59.158"
64 results[4].Overflow.Sources["3.16.59.158"].Range == ""
65 results[4].Overflow.Sources["3.16.59.158"].GetScope() == "Ip"
66 results[4].Overflow.Sources["3.16.59.158"].GetValue() == "3.16.59.158"
67 results[4].Overflow.Alert.Events[0].GetMeta("datasource_path") == "sshesame.log"
68 results[4].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file"
69 results[4].Overflow.Alert.Events[0].GetMeta("log_type") == "sshesame_login"
70 results[4].Overflow.Alert.Events[0].GetMeta("service") == "sshesame"
71 results[4].Overflow.Alert.Events[0].GetMeta("source_ip") == "3.16.59.158"
72 results[4].Overflow.Alert.Events[0].GetMeta("target_user") == "root"
73 results[4].Overflow.Alert.Events[0].GetMeta("timestamp") == "2022-05-06T09:15:03Z"
74 results[4].Overflow.Alert.Events[0].GetMeta("username") == "root"
75 results[4].Overflow.Alert.Events[1].GetMeta("datasource_path") == "sshesame.log"
76 results[4].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file"
77 results[4].Overflow.Alert.Events[1].GetMeta("log_type") == "sshesame_login"
78 results[4].Overflow.Alert.Events[1].GetMeta("service") == "sshesame"
79 results[4].Overflow.Alert.Events[1].GetMeta("source_ip") == "3.16.59.158"
80 results[4].Overflow.Alert.Events[1].GetMeta("target_user") == "knockknockwhosthere"
81 results[4].Overflow.Alert.Events[1].GetMeta("timestamp") == "2022-05-06T09:15:04Z"
82 results[4].Overflow.Alert.Events[1].GetMeta("username") == "knockknockwhosthere"
83 results[4].Overflow.Alert.Events[2].GetMeta("datasource_path") == "sshesame.log"
84 results[4].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file"
85 results[4].Overflow.Alert.Events[2].GetMeta("log_type") == "sshesame_login"
86 results[4].Overflow.Alert.Events[2].GetMeta("service") == "sshesame"
87 results[4].Overflow.Alert.Events[2].GetMeta("source_ip") == "3.16.59.158"
88 results[4].Overflow.Alert.Events[2].GetMeta("target_user") == "root"
89 results[4].Overflow.Alert.Events[2].GetMeta("timestamp") == "2022-05-06T09:17:10Z"
90 results[4].Overflow.Alert.Events[2].GetMeta("username") == "root"
91 results[4].Overflow.Alert.Events[3].GetMeta("datasource_path") == "sshesame.log"
92 results[4].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file"
93 results[4].Overflow.Alert.Events[3].GetMeta("log_type") == "sshesame_login"
94 results[4].Overflow.Alert.Events[3].GetMeta("service") == "sshesame"
95 results[4].Overflow.Alert.Events[3].GetMeta("source_ip") == "3.16.59.158"
96 results[4].Overflow.Alert.Events[3].GetMeta("target_user") == "knockknockwhosthere"
97 results[4].Overflow.Alert.Events[3].GetMeta("timestamp") == "2022-05-06T09:17:11Z"
98 results[4].Overflow.Alert.Events[3].GetMeta("username") == "knockknockwhosthere"
99 results[4].Overflow.Alert.GetScenario() == "thespad/sshesame-bf"
100 results[4].Overflow.Alert.Remediation == true
101 results[4].Overflow.Alert.GetEventsCount() == 4