I followed the advice. I enabled debugging but found no errors related to the database insertion problem.
By attempting access from some IPs that I have available, using the login pages, the system works correctly and blocks the IP if the number of attempts is exceeded or if a username from the blacklist is used.
Looking at the log files I noticed that the problem occurs with access attempts via XMLRPC.
I simulated logins with XMLRPC with username in the backlist and logins with repeated password errors and the security system does not work. Attempts are reported in the audit log but are not recorded in the database and are therefore not blocked.
Here are some examples of audit log and debug log records:
audit log:
2024-01-11 10:11:31 warning admin 104.129.46.83 Failed login Failed login attempt with an unknown username: admin Show trace
debug log: 2024-01-11 10:11:31 FAILURE Error inserting record into wp_aiowps_login_lockdown debug
audit log: 2024-01-16 15:09:10 warning admin 103.166.153.0 Failed login Failed login attempt with an unknown username: admin Show trace
debug log: 2024
-01-16 15:09:10 FAILURE Error inserting record into wp_aiowps_login_lockdown debug
audit log: 2024-01-16 03:56:29 warning andresviva 89.187.163.216 Failed login Failed login attempt with an unknown username: andresviva Show trace
debug log: 2024
-01-16 03:56:29 FAILURE Error inserting record into wp_aiowps_login_lockdown debug
This last example, from IP 89.187.163.216, over 830 consecutive access attempts were made via XMLRCP, without the IP being blocked.
I disabled XMLRPC access and so far the problem seems to be resolved.
AIOS not working with XMLRPC logins?
Thanks to the availability