| 1 |
len(results) == 4 |
| 2 |
len(results["s00-raw"]["crowdsecurity/syslog-logs"]) == 2 |
| 3 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Success == true |
| 4 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["timestamp"] == "Dec 7 14:53:04" |
| 5 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["logsource"] == "syslog" |
| 6 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["message"] == "pam_tally2(sudo:auth): user zbadguy (4001) tally 6, deny 5" |
| 7 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["program"] == "sudo" |
| 8 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 9 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["datasource_type"] == "file" |
| 10 |
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["machine"] == "vskub1master01p" |
| 11 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Success == true |
| 12 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["logsource"] == "syslog" |
| 13 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["message"] == "pam_unix(sudo:auth): authentication failure; logname=zbadguy uid=4001 euid=0 tty=/dev/pts/12 ruser=zbadguy rhost= user=zbadguy" |
| 14 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["program"] == "sudo" |
| 15 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["timestamp"] == "Dec 7 14:52:59" |
| 16 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 17 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["datasource_type"] == "file" |
| 18 |
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["machine"] == "vskub1master01p" |
| 19 |
len(results["s01-parse"]["crowdsecurity/pam-logs"]) == 2 |
| 20 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Success == true |
| 21 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["program"] == "sudo" |
| 22 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["timestamp"] == "Dec 7 14:53:04" |
| 23 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["uid"] == "4001" |
| 24 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["logsource"] == "syslog" |
| 25 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["message"] == "pam_tally2(sudo:auth): user zbadguy (4001) tally 6, deny 5" |
| 26 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Parsed["username"] == "zbadguy" |
| 27 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["machine"] == "vskub1master01p" |
| 28 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["service"] == "pam" |
| 29 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["username"] == "zbadguy" |
| 30 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 31 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["datasource_type"] == "file" |
| 32 |
results["s01-parse"]["crowdsecurity/pam-logs"][0].Evt.Meta["log_type"] == "pam_user_lock" |
| 33 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Success == true |
| 34 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["program"] == "sudo" |
| 35 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["ruser"] == "zbadguy" |
| 36 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["timestamp"] == "Dec 7 14:52:59" |
| 37 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["euid"] == "0" |
| 38 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["logsource"] == "syslog" |
| 39 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["message"] == "pam_unix(sudo:auth): authentication failure; logname=zbadguy uid=4001 euid=0 tty=/dev/pts/12 ruser=zbadguy rhost= user=zbadguy" |
| 40 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["uid"] == "4001" |
| 41 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["username"] == "zbadguy" |
| 42 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["tty"] == "/dev/pts/12" |
| 43 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Parsed["logname"] == "zbadguy" |
| 44 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["username"] == "zbadguy" |
| 45 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 46 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["datasource_type"] == "file" |
| 47 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["log_type"] == "pam_failed_auth" |
| 48 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["machine"] == "vskub1master01p" |
| 49 |
results["s01-parse"]["crowdsecurity/pam-logs"][1].Evt.Meta["service"] == "pam" |
| 50 |
len(results["s02-enrich"]["crowdsecurity/dateparse-enrich"]) == 2 |
| 51 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Success == true |
| 52 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["program"] == "sudo" |
| 53 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["logsource"] == "syslog" |
| 54 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["message"] == "pam_tally2(sudo:auth): user zbadguy (4001) tally 6, deny 5" |
| 55 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["timestamp"] == "Dec 7 14:53:04" |
| 56 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["uid"] == "4001" |
| 57 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["username"] == "zbadguy" |
| 58 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 59 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_type"] == "file" |
| 60 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["log_type"] == "pam_user_lock" |
| 61 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["machine"] == "vskub1master01p" |
| 62 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["service"] == "pam" |
| 63 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["username"] == "zbadguy" |
| 64 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Enriched["MarshaledTime"][4:] == "-12-07T14:53:04Z" |
| 65 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Success == true |
| 66 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["uid"] == "4001" |
| 67 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["euid"] == "0" |
| 68 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["logsource"] == "syslog" |
| 69 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["message"] == "pam_unix(sudo:auth): authentication failure; logname=zbadguy uid=4001 euid=0 tty=/dev/pts/12 ruser=zbadguy rhost= user=zbadguy" |
| 70 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["timestamp"] == "Dec 7 14:52:59" |
| 71 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["tty"] == "/dev/pts/12" |
| 72 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["logname"] == "zbadguy" |
| 73 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["ruser"] == "zbadguy" |
| 74 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["username"] == "zbadguy" |
| 75 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["program"] == "sudo" |
| 76 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["machine"] == "vskub1master01p" |
| 77 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["service"] == "pam" |
| 78 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["username"] == "zbadguy" |
| 79 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_path"] == "pam-logs.log" |
| 80 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_type"] == "file" |
| 81 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["log_type"] == "pam_failed_auth" |
| 82 |
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Enriched["MarshaledTime"][4:] == "-12-07T14:52:59Z" |
| 83 |
|