I always run freshclam bevor clamscan. See the output below.
22:51 hesk@kenny:~ $ freshclam
ClamAV update process started at Mon Aug 1 22:51:52 2022
daily.cld database is up-to-date (version: 26615, sigs: 1992518, f-level: 90, builder: raynman)
main.cvd database is up-to-date (version: 62, sigs: 6647427, f-level: 90, builder: sigmgr)
bytecode.cvd database is up-to-date (version: 333, sigs: 92, f-level: 63, builder: awillia2)
22:51 hesk@kenny:~ $ clamscan /opt/homebrew/Cellar/node/18.7.0/bin/node
Loading: 7s, ETA: 0s [========================>] 8.62M/8.62M sigs
Compiling: 2s, ETA: 0s [========================>] 41/41 tasks
/opt/homebrew/Cellar/node/18.7.0/bin/node: Osx.Exploit.CVE_2021_4034-9951522-1 FOUND
----------- SCAN SUMMARY -----------
Known viruses: 8624548
Engine version: 0.105.1
Scanned directories: 0
Scanned files: 1
Infected files: 1
Data scanned: 40.39 MB
Data read: 37.92 MB (ratio 1.06:1)
Time: 10.480 sec (0 m 10 s)
Start Date: 2022:08:01 22:52:20
End Date: 2022:08:01 22:52:30
I’m using Homebrew to install nodejs. Below is the curl command that downloads the file (taken from debug output) and the MD5 hash.