-
Notifications
You must be signed in to change notification settings - Fork 195
Standardize authentication meta fields across parsers and scenarios #1617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Standardize authentication meta fields across parsers and scenarios #1617
Conversation
- Replace log_type with auth_status (failed/success) for authentication events - Consolidate user/username fields into target_user meta field - Update all authentication-related parsers to use new standardized fields - Update all dependent scenarios (brute force, impossible travel, user enumeration) - Create new auth-generic-test scenario for generic authentication failure testing - Update all parser and scenario test files with new assert files - Ensure all service names are unique (proftpd, vsftpd, joplin, etc.) - Add test log lines with magic username to all suitable parsers
…of sub_type - Update mail-generic-bf scenario filter from sub_type to auth_status - Update distinct field from username to target_user - Regenerate scenario assert file with new meta fields
- Update sonarr-bf scenario: use auth_status instead of log_type, target_user instead of username - Update radarr-bf scenario: use auth_status instead of log_type, target_user instead of username - Update prowlarr-bf scenario: use auth_status instead of log_type, target_user instead of username - Regenerate assert files for sonarr-bf, radarr-bf, and prowlarr-bf tests
- Update sftpgo-bf scenario filter from log_type to auth_status - Regenerate scenario assert file
… name - Update filters to use auth_status and service - Rename user enum scenario to avoid duplicate name conflict - Update distinct field from username to target_user - Regenerate scenario assert file
- Remove log_subtype meta field from zoneminder parser - Update scenarios to use only auth_status, rely on distinct field for user enumeration detection - Both scenarios now use the same filter, distinction handled by distinct field in user-enum scenario - Regenerate assert file
- Replace log_type with auth_status (failed/success) for authentication events - Consolidate user, username, and target_user fields into target_user - Update all dependent scenarios to use new standardized fields - Create generic authentication test scenario (auth-generic-test) - Update all test assert files to reflect new meta fields - Remove parser.assert files from tests with ignore_parsers: true - Fix dovecot-logs parser.assert to use auth_status instead of dovecot_login_result - Fix cpanel-logs and cpanel_bf_attempt assert files - Ensure all service names are unique - Update impossible travel scenarios to use auth_status and target_user
91bc78a to
26e7949
Compare
…ail service to nginxmail Signed-off-by: Laurence <[email protected]>
26e7949 to
f5f6126
Compare
| results[0].Overflow.Alert.GetScenario() == "crowdsecurity/exim-bf" | ||
| results[0].Overflow.Alert.Remediation == true | ||
| results[0].Overflow.Alert.GetEventsCount() == 6 | ||
| "1.2.3.4" in results[1].Overflow.GetSources() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to investigate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regenerate parser fully
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to review logic here
- Update impossible-travel.md and impossible-travel-user.md to reflect correct meta field requirements (auth_status, target_user instead of log_type, user) - Add comprehensive README for auth-generic-test scenario with examples for both username and email formats - Include requirements, expected results, and service-specific examples
Description
This PR standardizes authentication meta fields across the CrowdSec hub by replacing inconsistent log_type values with a standardized auth_status field (failed/success) and consolidating user identifiers into a single target_user field. The changes affect 74 parsers and 73+ scenarios (brute force, impossible travel, user enumeration), ensuring consistent authentication event handling. A new generic auth-generic-test scenario enables unified testing across services. All test files have been updated accordingly.
Checklist