Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

ClamAV

$ clamscan Official Med Risk
Cisco Talos · Security & Secrets · GPL-2.0 · macos / linux / windows

ClamAV (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.

FCRS-1.0 Score
71 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install clamav
CLI vs MCP Decision CLI Only

clamscan inspects local files and large archives against multi-hundred-MB signature databases on disk, which cannot run via MCP.

Agent-Readiness Checklist

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 15 / 25

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 -i infected-only output
  • No --json flag; slow cold-start signature load unless using clamdscan
Trust & Safety 19 / 25

Read-only by default, though --remove permanently deletes files (and false positives can wipe legitimate artifacts).

  • Safe read-only default behavior
  • --remove / --move mutate the local filesystem
Setup & Portability 11 / 15

Available via brew, distro packages, and Windows installers, but requires configuring freshclam.conf and downloading signatures before first run.

  • Cross-platform binary, but requires freshclam database initialization
Utility & Efficiency 11 / 15

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
Maintenance & Lineage 8 / 10

Maintained by Cisco Talos (Cisco-Talos/clamav) under GPL-2.0 with daily signature updates.

  • Official Cisco Talos repository and signature feed
Docs & Verifiability 7 / 10

Detailed docs at docs.clamav.net and thorough man pages.

  • Comprehensive manual at docs.clamav.net

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

No user auth required; local signature databases and freshclam.conf / clamd.conf reside in system or Homebrew config dirs.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

GPL-2.0 open-source CLI; free including Cisco Talos virus signature updates.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Scan a directory reporting infected files only
clamscan -r -i --no-summary ./downloads

Recursively scans ./downloads, prints only infected matches (-i), and omits the trailing summary block.

Controlled Writes & Previews

Quarantine infected files to a staging directory
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.conf is edited and freshclam downloads definitions.
  • ! No JSON output and heavy cold-start memory/CPU signature loading on every clamscan invocation.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI