Clam AntiVirus インストール2023/04/24 |
アンチウィルスソフトウェア 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 24 06:08:40 2023 -> ClamAV update process started at Mon Apr 24 06:08:40 2023 Mon Apr 24 06:08:40 2023 -> daily.cvd database is up-to-date (version: 26885, sigs: 2031479, f-level: 90, builder: raynman) Mon Apr 24 06:08:40 2023 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr) Mon Apr 24 06:08:40 2023 -> bytecode.cvd database is up-to-date (version: 334, sigs: 91, f-level: 90, builder: anvilleg)root@dlp:~# systemctl start clamav-freshclam
|
[2] | 動作確認としてスキャンを実行します。 |
root@dlp:~# clamscan --infected --remove --recursive /home ----------- SCAN SUMMARY ----------- Known viruses: 8663396 Engine version: 0.103.8 Scanned directories: 4 Scanned files: 4 Infected files: 0 Data scanned: 0.00 MB Data read: 0.00 MB (ratio 0.00:1) Time: 13.278 sec (0 m 13 s) Start Date: 2023:04:24 06:09:18 End Date: 2023:04:24 06:09:31 # お試し無害ウィルスをダウンロード
root@dlp:~#
root@dlp:~# wget http://www.eicar.org/download/eicar.com clamscan --infected --remove --recursive ./
/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed. # 削除された
----------- SCAN SUMMARY -----------
Known viruses: 8663396
Engine version: 0.103.8
Scanned directories: 7
Scanned files: 6
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 13.405 sec (0 m 13 s)
Start Date: 2023:04:24 06:09:56
End Date: 2023:04:24 06:10:10
|
|