Clam AntiVirus インストール2020/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 Mon Apr 26 19:38:12 2020 -> ClamAV update process started at Mon Apr 27 16:38:12 2020 Mon Apr 26 19:38:12 2020 -> daily.cvd database is up to date (version: 25794, sigs: 2289805, f-level: 63, builder: raynman) Mon Apr 26 19:38:12 2020 -> main.cvd database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr) Mon Apr 26 19:38:12 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)root@dlp:~# systemctl start clamav-freshclam
|
[2] | 動作確認としてスキャンを実行します。 |
root@dlp:~# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 6844166 Engine version: 0.102.2 Scanned directories: 3 Scanned files: 4 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 13.140 sec (0 m 13 s) # お試し無害ウィルスをダウンロード
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed. # 削除された
----------- SCAN SUMMARY ----------- Known viruses: 6844166 Engine version: 0.102.2 Scanned directories: 7 Scanned files: 5 Infected files: 1 Data scanned: 0.02 MB Data read: 0.01 MB (ratio 2.00:1) Time: 12.964 sec (0 m 12 s) |
|