Skip to main content

Suggestions for tracking down failed login attemps?

Comments

5 comments

  • cPRex Jurassic Moderator
    It definitely looks like a cron with those timestamps every minute. What about checking /var/log/cron to see what runs every minute? Since it seems to be consistent enough, that may be a good place to check and see if tht gives you more data.
    0
  • MichaelRHMW
    Hi cPRex, Thanks for the suggestion, this looks promising. [root@server ~]# tail /var/lib/mysql/server.err 2020-11-10 7:44:01 192518 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:45:02 192759 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:46:01 193057 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:47:01 193257 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:48:01 193484 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:49:02 193765 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:50:02 193972 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) 2020-11-10 7:51:01 194212 [Warning] Access denied for user 'admin'@'localhost' (using password: NO) [root@server ~]# cat /var/log/cron | grep "Nov 10 07:51" Nov 10 07:51:01 acp1 CROND[65647]: (root) CMD (/usr/lib64/nagios/plugins/bc/bc_mysqladmin_version.sh > /dev/null 2>&1) Nov 10 07:51:01 acp1 CROND[65648]: (root) CMD (/usr/lib64/nagios/plugins/bc/bc_mysqladmin_version_plesk.sh > /dev/null 2>&1) [root@server ~]# cat /usr/lib64/nagios/plugins/bc/bc_mysqladmin_version_plesk.sh | grep "admin" mysqladmin -uadmin -p`cat /etc/psa/.psa.shadow` version > /usr/lib64/nagios/plugins/bc/bc_mysqladmin_version.txt; [root@server ~]# Also, /etc/psa/.psa.shadow doesn't exist. I'll report back further.
    0
  • cPRex Jurassic Moderator
    That does look like progress!
    0
  • MichaelRHMW
    UPDATE: Yes, it was indeed coming from /usr/lib64/nagios/plugins/bc/bc_mysqladmin_version_plesk.sh which being for Plesk doesn't accurately apply to cPanel/WHM. In particular I guess the /etc/psa/.psa.shadow file doesn't exist and so it returns empty/null? and that lines up with no password being attempted for a MySQL user of admin (which also doesn't exist) Thanks cPRex
    0
  • cPRex Jurassic Moderator
    Great - glad you tracked that down! The files not existing in cPanel would definitely be an issue, as Plesk uses a different set of configuration data, with the .psa.shadow file being similar to our /root/.my.cnf.
    0

Please sign in to leave a comment.