One of the accounts on the server had a file changed by a hacker. I was able to find the hackers IP in the access log. The entry in the log indicated the change was made via cpanels file manager so I searched the logs to see if I could find how that IP logged in. The only thing I could find for that IP are shown below. It shows connections by user1 and user2, neither of which is the user of the account that was hacked. Does that mean the hacker got in via one of these accounts or is it just coincidence?
Also, I grepped the .lastlogin for all accounts on the server and the hackers IP shows up in many of them. Does that file show successful logins or just attempts at logging in?
So, in summary, I know the account that was hacked and the IP used to do the hacking. I am just trying to find out how he got in. Can anyone offer suggestions on how to do this?
using: Apache/2.4.48 and CloudLinux
Also, I grepped the .lastlogin for all accounts on the server and the hackers IP shows up in many of them. Does that file show successful logins or just attempts at logging in?
So, in summary, I know the account that was hacked and the IP used to do the hacking. I am just trying to find out how he got in. Can anyone offer suggestions on how to do this?
[2021-05-31 13:45:54 -0400] info [cpaneld] 174.192.149.43 - user1 "GET /cpsess5167093317/json-api/cpanel?cpanel_jsonapi_module=Fileman&cpanel_jsonapi_func=listfiles&cpanel_jsonapi_apiversion=2&needmime=1&dir=%2fhome%2fuser1%2fpublic_html&showdotfiles=1&cache_fix=1622483121965 HTTP/1.1" DEFERRED LOGIN cpaneld: cookie ip check: IP address has changed: IP Address [174.192.165.81] != Current IP Address [174.192.149.43]
[2021-05-31 13:45:54 -0400] info [cpaneld] 174.192.149.43 - user2 "GET /cpsess1523471696/frontend/paper_lantern/email_accounts/index.html HTTP/1.1" DEFERRED LOGIN cpaneld: cookie ip check: IP address has changed: IP Address [174.192.165.81] != Current IP Address [174.192.149.43]
[2021-05-31 13:45:58 -0400] info [cpaneld] 174.192.149.43 - user1 "GET /cpsess5167093317/frontend/paper_lantern/filemanager/index.html HTTP/1.1" DEFERRED LOGIN cpaneld: cookie ip check: IP address has changed: IP Address [174.192.165.81] != Current IP Address [174.192.149.43]
[2021-05-31 13:46:18 -0400] info [whostmgrd] 174.192.149.43 - root "GET /cpsess2958226313/json-api/loadavg HTTP/1.1" DEFERRED LOGIN whostmgrd: cookie ip check: IP address has changed: IP Address [174.192.165.81] != Current IP Address [174.192.149.43]
[2021-05-31 13:46:39 -0400] info [whostmgrd] 174.192.149.43 - root "POST /xfercpanel HTTP/1.1" DEFERRED LOGIN whostmgrd: cookie ip check: IP address has changed: IP Address [174.192.165.81] != Current IP Address [174.192.149.43]
using: Apache/2.4.48 and CloudLinux
Last edited by a moderator: