Ubuntu 22.04
Sponsored Link

Clam AntiVirus インストール
2022/04/26
 
アンチウィルスソフトウェア 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 26 01:08:39 2022 -> ClamAV update process started at Tue Apr 26 01:08:39 2022
Tue Apr 26 01:08:39 2022 -> daily.cvd database is up-to-date (version: 26523, sigs: 1981141, f-level: 90, builder: raynman)
Tue Apr 26 01:08:39 2022 -> main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
Tue Apr 26 01:08:39 2022 -> bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)

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


----------- SCAN SUMMARY -----------
Known viruses: 8613205
Engine version: 0.103.5
Scanned directories: 4
Scanned files: 4
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 19.037 sec (0 m 19 s)
Start Date: 2022:04:26 01:09:05
End Date:   2022:04:26 01:09:24

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

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

/root/eicar.com: Win.Test.EICAR_HDB-1 FOUND
/root/eicar.com: Removed.     # 削除された

----------- SCAN SUMMARY -----------
Known viruses: 8613205
Engine version: 0.103.5
Scanned directories: 7
Scanned files: 6
Infected files: 1
Data scanned: 0.01 MB
Data read: 0.00 MB (ratio 2.00:1)
Time: 19.113 sec (0 m 19 s)
Start Date: 2022:04:26 01:09:44
End Date:   2022:04:26 01:10:03
関連コンテンツ