sudo cscli collections install crowdsecurity/aws-consoleInstalls 1 parser and 2 scenarios.
View AWS Console - Bruteforce Protection →sudo cscli scenarios install crowdsecurity/aws-bfThen reload CrowdSec: sudo systemctl reload crowdsec
Sign in to see which of your engines run it →Hover a line or a note to see what each field does.
type: leakycapacity: 5leakspeed: 30sname: crowdsecurity/aws-cloudtrail-bf-console-logindescription: "Detect console login bruteforce"filter: |evt.Meta.log_type == 'aws-cloudtrail' && ((evt.Meta.event_name == 'ConsoleLogin' && evt.Unmarshaled.cloudtrail.responseElements.ConsoleLogin == 'Failure') ||(evt.Meta.event_name == 'GetSessionToken' && evt.Meta.error_code=='AccessDenied') ||(evt.Meta.event_name == 'GetFederationToken' && evt.Meta.error_code=='AccessDenied'))groupby: evt.Meta.source_ipblackhole: 1mreprocess: truescope:type: Iplabels:confidence: 3spoofable: 0classification:- attack.T1110behavior: "cloud:bruteforce"label: "AWS bruteforce"service: awsremediation: false
Sign in to see the Security Engines that run this attack scenario, the version they run and whether it was modified locally.
This scenario needs the crowdsecurity/aws-cloudtrail parser and detects bruteforce of the aws console
Following the https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-aws-console-sign-in-events.html take an extra care of your cloudtrail region configuration when dealing with console signing event capture and please keep in mind that event successful and failed login attempts might not be sent in the same cloudtrail region.
Please keep in mind that only console signing regardind existing users are captured in cloudtrail. This makes this scenario useful for existing users and the root user.