I have a process named "stealth" that has infected my server (slamming my CPU) and I can't figure out where it is to remove it for good. Everytime I kill the process it somehow starts itself again...
ps -ef | grep stealth
gives me this:
But I have no idea where ./stealth would be since it's a relative path?
Also when I try using locate
or find
, I get nothing.
Any ideas how I can find and remove this process?
If I’m not mistaken,
ls -l /proc/11377/exe
will tell you where the file is located. Removing it might be a whole other matter though.Your computer is compromised. If possible replace the server with an clean one or reinstall it. You should not trust it anymore.
locate
, runupdatedb
to make sure the "locate" database is current/proc/[pid]/cwd
this gives you the "current working directory" which will tell you where./stealth
iskill -SIGSTOP [pid]
will stop (suspend) the process without killing it, letting you examine it without worrying about it doing anything further.