There is a warning in my country that this trojan infected computers over a news site (The Trojans name is GOZI).
I used clamav
but it says it is not the latest version.
How to install the latest version of clamav
?
There is a warning in my country that this trojan infected computers over a news site (The Trojans name is GOZI).
I used clamav
but it says it is not the latest version.
How to install the latest version of clamav
?
Uninstall clamav
and clamtk
repository version:
sudo apt-get purge clamav clamtk
First you will need some dependencies and build tools:
sudo apt-get install openssl build-essential libssl-dev checkinstall
Download this file, it will go to your /home
:
wget https://www.clamav.net/downloads/production/clamav-0.99.1.tar.gz
Extract that file and change to the folder it created:
tar -xvzf ~/clamav-0.99.1.tar.gz
cd ~/clamav-0.99.1
Now run the following commands to build clamav 0.99.1
:
./configure
make
Now build a package with
sudo checkinstall
checkinstall
will guide you through the building of a .deb
package and when it is done run
sudo dpkg -i ~/clamav-0.99.1/clamav_0.99.1-1_amd64.deb
Now it is installed but you may face errors about a config file, if you do run these commands (Thanks to user Terrance on this question for this, if you use it give him a vote)
sudo dpkg-reconfigure clamav-freshclam
Just keep pressing Enter to use default settings, then run
sudo rm -f /usr/local/etc/freshclam.conf
sudo ln -s /etc/clamav/freshclam.conf /usr/local/etc/freshclam.conf
Now you can run a
sudo clamscan -r /
To do a scan.
Tested on 15.10.
clamscan: error while loading shared libraries: libclamav.so.7: cannot open shared object file: No such file or directory
when trying to run nuc@nuc:~/clamav-0.99.1$ sudo clamscan -r /
– empedokles
Apr 08 '16 at 14:51
ldconfig
in a terminal and reboot, I think that was the fix.
– Mark Kirby
Apr 08 '16 at 14:59
Excerpt from http://www.govcert.admin.ch/blog/21/20min.ch-malvertising-incident
The infection chain is as follows:
clamav
, it will be installed already runsudo freshclam
to update the database, thensudo clamscan -r /
to run a scan, when it is done it will listthrets
it finds on your computer. – Mark Kirby Apr 08 '16 at 08:21sudo apt-get update
, but the same error shows up. – empedokles Apr 08 '16 at 08:46how to install the latest clamav
to the question, I will write you an answer on how to build it from source but it needs to be in the question or it will just get flagged and removed. – Mark Kirby Apr 08 '16 at 08:49