Ubuntu 19.04
Sponsored Link

Clam AntiVirus インストール2019/04/23

 
アンチウィルスソフトウェア 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

Tue Apr 22 19:01:45 2019 -> ClamAV update process started at Tue Apr 23 11:01:45 2019
Tue Apr 22 19:01:45 2019 -> main.cvd is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Tue Apr 22 19:01:45 2019 -> daily.cvd is up to date (version: 25427, sigs: 1556107, f-level: 63, builder: raynman)
Tue Apr 22 19:01:45 2019 -> bytecode.cvd is up to date (version: 328, sigs: 94, f-level: 63, builder: neo)

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


----------- SCAN SUMMARY -----------
Known viruses: 6113856
Engine version: 0.100.3
Scanned directories: 3
Scanned files: 3
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 24.058 sec (0 m 24 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: 6113856
Engine version: 0.100.3
Scanned directories: 2
Scanned files: 5
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 24.177 sec (0 m 24 s)
関連コンテンツ