Ubuntu 18.04
Sponsored Link

Clam AntiVirus インストール2018/04/27

 
アンチウィルスソフトウェア Clam AntiVirus をインストールします。
[1] Clamav をインストールします。
root@dlp:~#
apt -y install clamav
root@dlp:~#
sed -i -e "s/^NotifyClamd/#NotifyClamd/g" /etc/clamav/freshclam.conf

root@dlp:~#
systemctl stop clamav-freshclam
# パターンファイル手動更新

root@dlp:~#
freshclam

ClamAV update process started at Fri Apr 27 16:31:48 2018
main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 24517, sigs: 1923514, f-level: 63, builder: neo)
bytecode.cvd is up to date (version: 319, sigs: 75, f-level: 63, builder: neo)

root@dlp:~#
systemctl start clamav-freshclam
[2] 動作確認としてスキャンを実行します。
root@dlp:~#
clamscan --infected --remove --recursive /home


----------- SCAN SUMMARY -----------
Known viruses: 6483695
Engine version: 0.99.4
Scanned directories: 5
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 12.233 sec (0 m 12 s)

# お試し無害ウィルスをダウンロード

root@dlp:~#
wget http://www.eicar.org/download/eicar.com
root@dlp:~#
clamscan --infected --remove --recursive ./

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.    
# 削除された
----------- SCAN SUMMARY -----------
Known viruses: 6483695
Engine version: 0.99.4
Scanned directories: 4
Scanned files: 5
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 11.747 sec (0 m 11 s)
関連コンテンツ