cscli collections install crowdsecurity/sshd-impossible-travelDetect successful login from a country to another country in a short period of time. This is a strong indicator of a compromised account.
The reason why we have set remediation to false by default is we don't want to lock out legitimate users and want you to fully understand how the collection works before you jump in feet first.
You can enable remediation by setting remediation label within crowdsecurity/impossible-travel.yaml to true within the scenarios folder.
You can enable user remediation by setting remediation label within crowdsecurity/impossible-travel-user.yaml to true within the scenarios folder and you must add a profiles to handle this scope example:
1#/etc/crowdsec/profiles.yaml.local2name: username_temp_ban3filters:4 - 'Alert.Remediation == true && Alert.GetScope() == "username"'5decisions:6 - type: tempban7 scope: "username"8 duration: 12h9on_success: break