Skip to main content

Need advice about malware on server

Comments

8 comments

  • ch3g3v4r4
    Hello, i have noticed the same issue for a couple of our users today, i came across this article by googleing the IP address 77.72.83.84 :D. First i would like to say that i found this very useful as well github.com/bediger4000/php-malware-analysis/tree/master/chat.pl It seems that somebody was trying to add our servers to a botnet!!! I have managed to sort this out on our servers by> 1. Removing the script cron is calling. 2. Removing the cron itself. 3. Killing all of the processes manually using the command kill -9 PID PID PID PID After these steps the issue was resolved for us and the IP 77.72.83.84 did not show up as a blocked outgoing connection on our firewall. Also the crons are not appearing again and the processes as well. I hope this helps you solve your issue mate! Cheers! :D
    0
  • sparek-3
    That user's account probably has either: An outdated or abandoned script or plugin. A compromised password, either for their cPanel account or for any CMS (WordPress, Joomla!) system they might be using. The password may have been extremely weak and easy to guess. The client themselves is a malicious user, only out to abuse your server. You really would need to identify which one the account fits under and then resolve that underlying issue. Otherwise, this is just going to keep happening.
    0
  • cPanelMichael
    Hello, It's difficult to pinpoint the specific vulnerability or exploit used by an attacker to hack your server or websites. One could speculate on common methods (e.g. symlink attack), but it really requires a qualified system administrator to investigate the logs on your server and determine the source of the attack. There is a thread here where a similar question is asked:
    0
  • RoboticPuppies
    Hello, i have noticed the same issue for a couple of our users today, i came across this article by googleing the IP address 77.72.83.84 :D. First i would like to say that i found this very useful as well github.com/bediger4000/php-malware-analysis/tree/master/chat.pl It seems that somebody was trying to add our servers to a botnet!!! I have managed to sort this out on our servers by> 1. Removing the script cron is calling. 2. Removing the cron itself. 3. Killing all of the processes manually using the command kill -9 PID PID PID PID After these steps the issue was resolved for us and the IP 77.72.83.84 did not show up as a blocked outgoing connection on our firewall. Also the crons are not appearing again and the processes as well. I hope this helps you solve your issue mate! Cheers! :D

    Hello there! Thanks for the information. Unfortunately, I've done all of steps that you informed for some days before I created this thread, but the issue is still coming back. For example the cron came back after I deleted it, and the process that I've killed still re-appeared after some hours. But, thank you for the info :D I'm glad you have solved your issue. And I think CSF will block any connection that created by this process. Because I configure CSF to block any unnecessary port, so it only shows SYN_SENT when I check it using lsof.
    Hello, It's difficult to pinpoint the specific vulnerability or exploit used by an attacker to hack your server or websites. One could speculate on common methods (e.g. symlink attack), but it really requires a qualified system administrator to investigate the logs on your server and determine the source of the attack. There is a thread here where a similar question is asked:
    0
  • ch3g3v4r4
    Hello, It's difficult to pinpoint the specific vulnerability or exploit used by an attacker to hack your server or websites. One could speculate on common methods (e.g. symlink attack), but it really requires a qualified system administrator to investigate the logs on your server and determine the source of the attack. There is a thread here where a similar question is asked:
    0
  • ch3g3v4r4
    Hello there! Thanks for the information. Unfortunately, I've done all of steps that you informed for some days before I created this thread, but the issue is still coming back. For example the cron came back after I deleted it, and the process that I've killed still re-appeared after some hours. But, thank you for the info :D I'm glad you have solved your issue. And I think CSF will block any connection that created by this process. Because I configure CSF to block any unnecessary port, so it only shows SYN_SENT when I check it using lsof. Thank you for the info. I'll check the link and will try it out. Maybe I'll update this thread if I found something or the issue is solved :D

    Did you delete the script from /var/tmp also when removing the cron? I trust you did, but did you change the CPanel account user pass and CMS user password? If the process is appearing again its quite possible that your attacker still has access to this account. Also i highly recommend resolving this issue permanently because if you dont and disable CSF for a min to check something or whatever the reason you are risking your server becoming a part of a botnet (github.com/bediger4000/php-malware-analysis/tree/master/chat.pl). Currently the only thing saving your server from this scenario is the firewall, so keep this in mind. Cheers mate!
    0
  • cPanelMichael
    In my case the attacker breached the CPanel account using a brute force attack from many different proxy IP's, he only tried the password 3 times from each IP so i think youd can understand why it could be hard to detect a attack like this.

    Hello @ch3g3v4r4, This is slightly off-topic, but I did want to mention cPHulk Brute Force Detection in-case you were not already aware of this feature:
    0
  • RoboticPuppies
    Did you delete the script from /var/tmp also when removing the cron? I trust you did, but did you change the CPanel account user pass and CMS user password?

    Hi, Unfortunately the file in /var/tmp from the cron is not exist when I want to delete it. And when I delete the cron, it will re-appear again another hour. Oh yes, for the password, I haven't tried to change them. I'll think about it, thank you :D
    If the process is appearing again its quite possible that your attacker still has access to this account.

    I think you're right, the attacker may still have access to this account, or there are some vulnerabilites in the website. Or maybe the attacker has planted a backdoor to control the account. Thanks a lot for the advice!
    0

Please sign in to leave a comment.