-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: Add stirling-pdf parser and scenario (#1142)
- Loading branch information
1 parent
8eced90
commit 15a1e5c
Showing
15 changed files
with
547 additions
and
0 deletions.
There are no files selected for viewing
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,12 @@ | ||
parsers: | ||
- crowdsecurity/syslog-logs | ||
- ./parsers/s01-parse/crowdsecurity/stirling-pdf-logs.yaml | ||
- crowdsecurity/dateparse-enrich | ||
scenarios: | ||
- "./scenarios/crowdsecurity/stirling-pdf-bf.yaml" | ||
postoverflows: | ||
- "" | ||
log_file: stirling-pdf.log | ||
log_type: stirling-pdf | ||
labels: {} | ||
ignore_parsers: true |
Empty file.
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,33 @@ | ||
len(results) == 1 | ||
"::1" in results[0].Overflow.GetSources() | ||
results[0].Overflow.Sources["::1"].IP == "::1" | ||
results[0].Overflow.Sources["::1"].Range == "" | ||
results[0].Overflow.Sources["::1"].GetScope() == "Ip" | ||
results[0].Overflow.Sources["::1"].GetValue() == "::1" | ||
results[0].Overflow.Alert.Events[0].GetMeta("datasource_path") == "stirling-pdf.log" | ||
results[0].Overflow.Alert.Events[0].GetMeta("datasource_type") == "file" | ||
results[0].Overflow.Alert.Events[0].GetMeta("log_type") == "failed_authentication" | ||
results[0].Overflow.Alert.Events[0].GetMeta("service") == "stirling-pdf" | ||
results[0].Overflow.Alert.Events[0].GetMeta("source_ip") == "::1" | ||
results[0].Overflow.Alert.Events[0].GetMeta("timestamp") == "2024-10-10T12:59:53.237Z" | ||
results[0].Overflow.Alert.Events[1].GetMeta("datasource_path") == "stirling-pdf.log" | ||
results[0].Overflow.Alert.Events[1].GetMeta("datasource_type") == "file" | ||
results[0].Overflow.Alert.Events[1].GetMeta("log_type") == "failed_authentication" | ||
results[0].Overflow.Alert.Events[1].GetMeta("service") == "stirling-pdf" | ||
results[0].Overflow.Alert.Events[1].GetMeta("source_ip") == "::1" | ||
results[0].Overflow.Alert.Events[1].GetMeta("timestamp") == "2024-10-10T12:59:53.237Z" | ||
results[0].Overflow.Alert.Events[2].GetMeta("datasource_path") == "stirling-pdf.log" | ||
results[0].Overflow.Alert.Events[2].GetMeta("datasource_type") == "file" | ||
results[0].Overflow.Alert.Events[2].GetMeta("log_type") == "failed_authentication" | ||
results[0].Overflow.Alert.Events[2].GetMeta("service") == "stirling-pdf" | ||
results[0].Overflow.Alert.Events[2].GetMeta("source_ip") == "::1" | ||
results[0].Overflow.Alert.Events[2].GetMeta("timestamp") == "2024-10-10T12:59:58.543Z" | ||
results[0].Overflow.Alert.Events[3].GetMeta("datasource_path") == "stirling-pdf.log" | ||
results[0].Overflow.Alert.Events[3].GetMeta("datasource_type") == "file" | ||
results[0].Overflow.Alert.Events[3].GetMeta("log_type") == "failed_authentication" | ||
results[0].Overflow.Alert.Events[3].GetMeta("service") == "stirling-pdf" | ||
results[0].Overflow.Alert.Events[3].GetMeta("source_ip") == "::1" | ||
results[0].Overflow.Alert.Events[3].GetMeta("timestamp") == "2024-10-10T12:59:58.543Z" | ||
results[0].Overflow.Alert.GetScenario() == "crowdsecurity/stirling-pdf-bf" | ||
results[0].Overflow.Alert.Remediation == true | ||
results[0].Overflow.Alert.GetEventsCount() == 4 |
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,6 @@ | ||
2024-10-10 12:59:53,237 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-102] Failed login attempt from IP: [::1] | ||
2024-10-10 12:59:53,237 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-102] Failed login attempt from IP: [::1] | ||
2024-10-10 12:59:58,543 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-1176] Failed login attempt from IP: [::1] | ||
2024-10-10 12:59:58,543 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-1176] Failed login attempt from IP: [::1] | ||
2024-10-10 12:59:58,543 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-1176] Failed login attempt from IP: [::1] | ||
2024-10-10 12:59:58,543 ERROR s.s.S.c.s.CustomAuthenticationFailureHandler [qtp877788296-1176] Failed login attempt from IP: [::1] |
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,12 @@ | ||
parsers: | ||
- crowdsecurity/syslog-logs | ||
- ./parsers/s01-parse/crowdsecurity/stirling-pdf-logs.yaml | ||
- crowdsecurity/dateparse-enrich | ||
scenarios: | ||
- "" | ||
postoverflows: | ||
- "" | ||
log_file: stirling-pdf.log | ||
log_type: stirling-pdf | ||
labels: {} | ||
ignore_parsers: false |
Oops, something went wrong.