I am running an Ubuntu virtual machine that has few sites installed on it. I think due to my error and wrong permissions a malicious code was uploaded on the server and the "worm" had root access for a while before I delete it. Now all looks fine apart of one thing, there is a process that gets started automatically called named
and that process uses 100% of my CPU. I checked it in TOP and the path of the process is ./named -c named.conf
which is relative to something not sure what. Second thing I tried was to get the PID and I checked /proc/[PID]/exe
and it point to non-existent file in root: /root/named/named
I presume because there is no file at this path it gives constant error and gets in some kind of loop.
Now I can stop the process which is fine but I can't find who or where is the process started. I am afraid there are still some files left behind that I didn't clear.
Can anyone help investigating this issue or give some tips on where to look for the malicious code or is there a way to block the process from starting completely on the server?