vsftpd: implement 3-tier bruteforce detection with impossible travel#1568
Draft
LaurenceJJones wants to merge 1 commit intocrowdsecurity:masterfrom
Draft
vsftpd: implement 3-tier bruteforce detection with impossible travel#1568LaurenceJJones wants to merge 1 commit intocrowdsecurity:masterfrom
LaurenceJJones wants to merge 1 commit intocrowdsecurity:masterfrom
Conversation
- Add service: ftp metadata to vsftpd-logs parser - Create vsftpd-success-logs parser for OK LOGIN authentications - Uses generic log_type: auth_success for impossible-travel compatibility 3-Tier Bruteforce Detection (following SSH/SMB pattern): - vsftpd-bf: fast attacks (5 failures in ~50s, 0-10s intervals) - vsftpd-slow-bf: slow attacks (10 failures in ~10min, 10-60s intervals) - vsftpd-time-based-bf: time-based attacks (3 failures, >2min median, >120s intervals) - Uses MedianInterval() helper with conditional type - Includes cancel_on for successful authentication (false positive reduction) - Filters both failed and successful auth events Collections: - Update vsftpd collection with both parsers and 3 scenarios - Create vsftpd-impossible-travel collection (parser + impossible-travel scenarios) Testing: - vsftpd-logs: regenerate with service metadata - vsftpd-bf: update to private IPs and regenerate assertions - vsftpd-slow-bf: new test with 16 events at 15s intervals - vsftpd-time-based-bf: new test with 6 events at 3-4min intervals - vsftpd-success-logs: new parser test with 3 successful authentications - vsftpd-impossible-travel: new test with AU/US IPs - All 6 tests passing Provides gap-free coverage against all attack speeds for the most popular FTP server.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
3-Tier Bruteforce Detection (following SSH/SMB pattern):
Collections:
Testing:
Provides gap-free coverage against all attack speeds for the most popular FTP server.
Checklist