TL;DR I didn't ask how to take care of my compromised server. I asked how to detect if a file is anomalous/extraneous/non-official. So this is not a duplicate of the question on compromised servers. This is obvious to anyone who take 2 minutes to read both questions before flagging as duplicate.
This morning we had a report of anomalous huge outgoing traffic from one of our debian servers.
I tried to launch netstat -tpe
as root and i found
this. unama
is an unknown process, i searched online and i couldn't find any reference to it.
I launched a whois 173.254.230.36
and i found that the ip belongs to a chinese organization named meiyunla.
Then i tried with which unama
, just to discover that it is an unreadable binary file located at /bin/unama
.
Does anyone knows how to detect if this unama file is an official package to have or if it is something anomalous?
edit
Just for info, in the end it was some kind of a virus, which made our server part of a botnet. Deleting the file was useless, as after some minutes it was there again, using from 60% to 100% of the cpu.
We had to shut down the server and launch a new one, reinstalling all the software from scratch.
Just one thing: never use ssh password authentication on a public ip :)