ClamAV
$ clamscan Official Med RiskClamAV (clamscan) scans files, archives, and directories against Talos signature databases for trojans, viruses, and malware. Default scans are read-only, while --move and --remove alter or delete infected files; freshclam is required beforehand to fetch virus definitions.
brew install clamav clamscan inspects local files and large archives against multi-hundred-MB signature databases on disk, which cannot run via MCP.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic exit codes (0 clean, 1 infected, 2 error) and -i filtering, but lacks JSON output and takes ~10–20s per cold start to load signatures.
- Clear exit codes (
0/1/2) and-iinfected-only output - No
--jsonflag; slow cold-start signature load unless usingclamdscan
Read-only by default, though --remove permanently deletes files (and false positives can wipe legitimate artifacts).
- Safe read-only default behavior
--remove/--movemutate the local filesystem
Available via brew, distro packages, and Windows installers, but requires configuring freshclam.conf and downloading signatures before first run.
- Cross-platform binary, but requires
freshclamdatabase initialization
Trusted general-purpose AV engine for attachment/upload scanning, though clamscan per-invocation RAM/startup overhead is high.
- Broad archive and file format unpacking for AV scanning
Maintained by Cisco Talos (Cisco-Talos/clamav) under GPL-2.0 with daily signature updates.
- Official Cisco Talos repository and signature feed
Detailed docs at docs.clamav.net and thorough man pages.
- Comprehensive manual at docs.clamav.net
Security, Auth & Guardrails
No user auth required; local signature databases and freshclam.conf / clamd.conf reside in system or Homebrew config dirs.
GPL-2.0 open-source CLI; free including Cisco Talos virus signature updates.
# ClamAV (clamscan) Agent Rules - Default to read-only `clamscan -r -i` and NEVER pass `--remove` automatically. - Verify `freshclam` signatures exist before scanning; exit code `1` means malware found while `2` means scan error.
Agent-Ready Command Recipes
Safe Read-Only Queries
clamscan -r -i --no-summary ./downloads
Recursively scans ./downloads, prints only infected matches (-i), and omits the trailing summary block.
Controlled Writes & Previews
clamscan -r -i --move=/tmp/quarantine --log=/tmp/clamscan.log ./downloads
Moves detected files into /tmp/quarantine instead of deleting them and writes an audit log via --log.
Strengths for Agents
- + Distinguishes clean (
0), infected (1), and error (2) exit codes cleanly. - + Unpacks archives, PDFs, and Office documents natively without external extractors.
Caveats & Pitfalls
- ! Fails with DB errors on fresh installs until
freshclam.confis edited andfreshclamdownloads definitions. - ! No JSON output and heavy cold-start memory/CPU signature loading on every
clamscaninvocation.