I have noticed a virus on our machine. Symptoms it shows are
- It runs multiple process with the name camplz. If I kill the process it restarts
- The executable is present under /usr/bin directory. If I delete the executable it gets recreated.
- It creates files under /tmp with name config.f and ??af???a???mdkkkk.
If I delete the files, they are recreated It ESTABLISH IP connections to China based IP addresses and starts sending bytes in MB, increasing my bandwidth utilization.
lsof -o shows camplz 26983 root 2u IPv4 2380650457 0t0 TCP <mydomain.com>:18703->100.42.227.29:18888 (ESTABLISHED)
mydomain.com is a placeholder.
Although, I have found the source, I do not have idea on how to remove it and clean my machine. I do not want to change machine as much as possible. At present, I have written a simple script that kills the process and deletes the files created. This helps. However it is not a permanent solution. I used few virus scanning software. But they do not catch. Can someone suggest a solution.
#!/bin/bash
while true; do ps -ef | grep camplz | grep -v grep | awk '{print $2}' | xargs kill; rm /usr/bin/camplz ; rm /tmp/config.f ; rm /tmp/??af???a???mdkkkk ; done
/usr/bin/camplz
, create a new file of your own creation in its place (even for example a zero-byte file), and then make it immutable withchattr +i /usr/bin/camplz
. This will not clean out your system, but may at least stave off one of the symptoms while you seek a complete solution. – DopeGhoti Aug 27 '16 at 17:3226983
there is the proces ID. So try doing this:ps -e -o cmd,pid,ppid | grep 26983
. It will show you 3 things - command, it's PID, and its parent PID. Repeat this for parent PID. That way you know what starts that process and maybe will give you an idea how to stop it from reappearing. Of course, each time the PID number is different, so make sure you check withlsof
fist – Sergiy Kolodyazhnyy Aug 27 '16 at 17:44ps -e -o cmd,pid,ppid | grep 12647 camplz 12647 1 grep --color=auto 12647 13126 2415
– Amol Aug 27 '16 at 17:49sudo grep -iR 'campiz' /etc/init*
. If you get any listing, you can paste it to paste.ubuntu.com and provide link here – Sergiy Kolodyazhnyy Aug 27 '16 at 18:14.zip
, a hidden file, and there's no legitimate reason to have hidden files in /usr/bin/ I think you can safely remove them. – Sergiy Kolodyazhnyy Aug 27 '16 at 18:53/usr/bin/acpid
is somewhat suspicious too. What doesfile /usr/bin/acpid
tell you ? – Sergiy Kolodyazhnyy Aug 27 '16 at 18:54/usr/bin/.zip.swp
and/usr/bin/.zip.swp
... Now camplz does not restart. I am monitoring it. Hoping that this acts as a fix. – Amol Aug 27 '16 at 19:02ps -ef | grep camplz root 7615 2415 1 Aug27 pts/1 00:01:04 grep --color=auto -rnw / -e camplz root 31947 27067 0 00:37 pts/7 00:00:00 grep --color=auto camplz root 31963 1049 0 00:37 ? 00:00:00 cp /usr/share/man/man3/ast.gz /usr/bin/camplz
But it has failed... and 1049 isroot 1049 1 0 Aug27 ? 00:07:02 bash /usr/bin/dbus/dbus-daemon-draw
I killed it too. – Amol Aug 27 '16 at 19:12/usr/share/man/man3/ast.gz /usr/bin/acpid /usr/bin/camplz /usr/bin/.zip.swp /usr/bin/dbus/dbus-daemon-draw
– Amol Aug 27 '16 at 19:32