Ubuntu 26.04

Clam AntiVirus インストール2026/06/08

 

アンチウィルスソフトウェア 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 Jun  8 02:21:09 2026 -> ClamAV update process started at Mon Jun  8 02:21:09 2026
Mon Jun  8 02:21:09 2026 -> daily.cvd database is up-to-date (version: 28024, sigs: 355457, f-level: 90, builder: svc.clamav-publisher)
Mon Jun  8 02:21:09 2026 -> main database available for download (remote version: 63)
Time:    8.6s, ETA:    0.0s [========================>]   84.95MiB/84.95MiB
Mon Jun  8 02:21:18 2026 -> Testing database: '/var/lib/clamav/tmp.1876df58ae/clamav-bf75d63f6edb52644a4b9e3a613a6b04.tmp-main.cvd' ...
Mon Jun  8 02:21:21 2026 -> Database test passed.
Mon Jun  8 02:21:21 2026 -> main.cvd updated (version: 63, sigs: 3287027, f-level: 90, builder: tomjudge)
Mon Jun  8 02:21:21 2026 -> bytecode database available for download (remote version: 339)
Time:    0.1s, ETA:    0.0s [========================>]  275.10KiB/275.10KiB
Mon Jun  8 02:21:21 2026 -> Testing database: '/var/lib/clamav/tmp.1876df58ae/clamav-60b7638f13f1fc529fe41fd5bbc2381d.tmp-bytecode.cvd' ...
Mon Jun  8 02:21:21 2026 -> Database test passed.
Mon Jun  8 02:21:21 2026 -> bytecode.cvd updated (version: 339, sigs: 80, f-level: 90, builder: nrandolp)

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


----------- SCAN SUMMARY -----------
Known viruses: 3627865
Engine version: 1.4.4
Scanned directories: 29
Scanned files: 49
Infected files: 0
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 2.00:1)
Time: 8.010 sec (0 m 8 s)
Start Date: 2026:06:08 02:22:03
End Date:   2026:06:08 02:22:11

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

root@dlp:~#
wget https://files.trendmicro.com/products/eicar-file/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: 3627865
Engine version: 1.4.4
Scanned directories: 3
Scanned files: 8
Infected files: 1
Data scanned: 0.02 MB
Data read: 0.01 MB (ratio 1.67:1)
Time: 7.745 sec (0 m 7 s)
Start Date: 2026:06:08 02:22:43
End Date:   2026:06:08 02:22:51
関連コンテンツ