-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into scenario_taxonomy
- Loading branch information
Showing
70 changed files
with
4,986 additions
and
3,635 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
parsers: | ||
- crowdsecurity/syslog-logs | ||
- ./parsers/s01-parse/crowdsecurity/endlessh-logs.yaml | ||
- crowdsecurity/dateparse-enrich | ||
scenarios: | ||
- ./scenarios/crowdsecurity/endlessh-bf.yaml | ||
postoverflows: | ||
- "" | ||
log_file: endlessh-logs.log | ||
log_type: syslog | ||
ignore_parsers: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 | ||
2023-08-17T16:55:35.689651+02:00 mono endlessh[34256]: ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096 | ||
2023-08-17T16:55:55.709713+02:00 mono endlessh[34256]: CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32 | ||
2023-08-17T17:01:29.754473+02:00 mono endlessh[34256]: ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096 | ||
2023-08-17T17:01:49.769219+02:00 mono endlessh[34256]: CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
len(results) == 4 | ||
len(results["s00-raw"]["crowdsecurity/syslog-logs"]) == 4 | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Success == true | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["logsource"] == "syslog" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["message"] == "ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["pid"] == "34256" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["program"] == "endlessh" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Parsed["timestamp8601"] == "2023-08-17T16:55:35.689651+02:00" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["datasource_type"] == "file" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][0].Evt.Meta["machine"] == "mono" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Success == true | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["program"] == "endlessh" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["timestamp8601"] == "2023-08-17T16:55:55.709713+02:00" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["logsource"] == "syslog" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["message"] == "CLOSE host=::ffff:124.222.66.99 port=43202 fd=5 time=20.020 bytes=32" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Parsed["pid"] == "34256" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["datasource_type"] == "file" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][1].Evt.Meta["machine"] == "mono" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Success == true | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Parsed["message"] == "ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Parsed["pid"] == "34256" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Parsed["program"] == "endlessh" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Parsed["timestamp8601"] == "2023-08-17T17:01:29.754473+02:00" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Parsed["logsource"] == "syslog" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Meta["datasource_type"] == "file" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][2].Evt.Meta["machine"] == "mono" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Success == true | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Parsed["logsource"] == "syslog" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Parsed["message"] == "CLOSE host=::ffff:65.49.1.109 port=39917 fd=5 time=20.014 bytes=31" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Parsed["pid"] == "34256" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Parsed["program"] == "endlessh" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Parsed["timestamp8601"] == "2023-08-17T17:01:49.769219+02:00" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Meta["datasource_type"] == "file" | ||
results["s00-raw"]["crowdsecurity/syslog-logs"][3].Evt.Meta["machine"] == "mono" | ||
len(results["s01-parse"]["crowdsecurity/endlessh-logs"]) == 4 | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Success == true | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["logsource"] == "syslog" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["pid"] == "34256" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["message"] == "ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["program"] == "endlessh" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["source_ip"] == "124.222.66.99" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Parsed["timestamp8601"] == "2023-08-17T16:55:35.689651+02:00" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["source_ip"] == "124.222.66.99" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["datasource_type"] == "file" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["log_type"] == "endlessh_accept" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["machine"] == "mono" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][0].Evt.Meta["service"] == "endlessh" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][1].Success == false | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Success == true | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["logsource"] == "syslog" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["message"] == "ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["pid"] == "34256" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["program"] == "endlessh" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["source_ip"] == "65.49.1.109" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Parsed["timestamp8601"] == "2023-08-17T17:01:29.754473+02:00" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["datasource_type"] == "file" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["log_type"] == "endlessh_accept" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["machine"] == "mono" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["service"] == "endlessh" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["source_ip"] == "65.49.1.109" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][2].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s01-parse"]["crowdsecurity/endlessh-logs"][3].Success == false | ||
len(results["s02-enrich"]["crowdsecurity/dateparse-enrich"]) == 2 | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Success == true | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["program"] == "endlessh" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["timestamp8601"] == "2023-08-17T16:55:35.689651+02:00" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["logsource"] == "syslog" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["message"] == "ACCEPT host=::ffff:124.222.66.99 port=43202 fd=5 n=1/4096" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["pid"] == "34256" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Parsed["source_ip"] == "124.222.66.99" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["timestamp"] == "2023-08-17T16:55:35.689651+02:00" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["datasource_type"] == "file" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["log_type"] == "endlessh_accept" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["machine"] == "mono" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["service"] == "endlessh" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Meta["source_ip"] == "124.222.66.99" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][0].Evt.Enriched["MarshaledTime"] == "2023-08-17T16:55:35.689651+02:00" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Success == true | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["message"] == "ACCEPT host=::ffff:65.49.1.109 port=39917 fd=5 n=1/4096" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["pid"] == "34256" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["program"] == "endlessh" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["source_ip"] == "65.49.1.109" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["timestamp8601"] == "2023-08-17T17:01:29.754473+02:00" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Parsed["logsource"] == "syslog" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_type"] == "file" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["log_type"] == "endlessh_accept" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["machine"] == "mono" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["service"] == "endlessh" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["source_ip"] == "65.49.1.109" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["timestamp"] == "2023-08-17T17:01:29.754473+02:00" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Meta["datasource_path"] == "endlessh-logs.log" | ||
results["s02-enrich"]["crowdsecurity/dateparse-enrich"][1].Evt.Enriched["MarshaledTime"] == "2023-08-17T17:01:29.754473+02:00" | ||
len(results["success"][""]) == 0 |
Oops, something went wrong.