Vault - Is it possible to detect a failed login attempt to the Vault when providing a wrong username?
145
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:01 PM
Symptom
When a login failure to the Vault is detected an event message with a Vault Action Code 4 is forwarded to the SYSLOG/SIEM server. However, this does not occur if the login failure is caused by a wrong user name.
Is it possible to detect a failed login attempt to the Vault when providing a wrong username?
Environment
11.7;12.0;12.1;12.2;12.6;13.0;13.2 Privileged Access Manager (PAM, self-hosted) Vault Server PAS (any version) integrated with a SYSLOG/SIEM server.
Cause
The Vault audit code associated to the 'Undefined User Logon' event is different from the one associated to the 'User Authentication Failure' event. The 'Undefined User Logon' event is associated to a login attempt using a wrong username, while the 'User Authentication Failure' event is associated to a login attempt providing a valid username but a wrong password.
Resolution
The following procedure requires to stop the Vault services, so it will need to be done in a maintenance window.
The Vault audit code associated to the 'Undefined User Logon' is 309. So, in order to make the Vault detect it and forward it to the SYSLOG/SIEM server, it has to be added to the 'SyslogMessageCodeFilter' line in the [SYSLOG] section in the dbparm.ini Vault configuration file:
[SYSLOG]
...
SyslogMessageCodeFilter=code01,code02,code03-code04,309,code05,code06-code07, ...
...
Restart the vault services to apply the changes.
The 'Undefined User Logon' message should be forwarded to the SYSLOG/SIEM now.