VISULOX 5 Documentation

How to pass multiple login failures to external

Overview

If a user tries to login with a wrong password, this is documented as loginFailure and loginRejected.
If this happens several times, it will be also documented as multipleLoginFailures.

Configuration

The login detection interval and the script can be configured:

visulox config -name login.failed
    -----------------------------------------------------
    | changed | key                 | value             |
    -----------------------------------------------------
    |         | login.failed.rate   | 5:20:50           |
    |         | login.failed.script | failedLoginScript |
    -----------------------------------------------------

In this example failedLoginScript is triggered, if login fails five times in a minute, 20 times in an hour or 50 times a day. This is the default setting.
If login fails because of the configured settings, the login will no longer be passed to the authenication server until the rate falls below the configured rate.

Example action script, that triggers on "multipleLoginFailuers" and sends the event:

failedLoginScript
Bash
#!/bin/bash
VLXRECIPIENT=${VLXRECIPIENT:- root}
$VLXUTIL/mailclient.tcl -file stdin -subject "[TOKEN] FailedLogin $VLXLOGINUSER" -to $VLXRECIPIENT << EOF
Failures by $VLXLOGINUSER: $VLXEVENTINFO
EOF
# If the script should be treated as successful in VISULOX, the exit code must be 0
true
exit $?

Overview of VISULOX events

How to send VISULOX Events to external services