fix(malware): an unreachable or silent clamd is logged as an error #539

Merged
sharang merged 1 commits from fix/clamav-unreachable-error into main 2026-10-09 13:00:13 +00:00
Owner

When the malware stage cannot reach clamd (or clamd does not answer in time), the agent now logs ClamAV did not complete: clamd at ... cannot be reached at ERROR, so the SigNoz rule "Prod: ERROR/FATAL logs" fires. On stage clamd was dead from 2026-10-08 08:53 to 2026-10-09 09:06 UTC with only WARN lines as a trace.

  • ClamavError::service_down(): Unreachable and Timeout are true; Refused (one file) and Io (the tree) stay WARN.
  • The scan run still records the malware stage as skipped (ToolFailed), unchanged.
  • Test: only_an_unreachable_or_silent_clamd_is_down.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p

When the malware stage cannot reach clamd (or clamd does not answer in time), the agent now logs `ClamAV did not complete: clamd at ... cannot be reached` at **ERROR**, so the SigNoz rule "Prod: ERROR/FATAL logs" fires. On stage clamd was dead from 2026-10-08 08:53 to 2026-10-09 09:06 UTC with only WARN lines as a trace. - `ClamavError::service_down()`: Unreachable and Timeout are true; Refused (one file) and Io (the tree) stay WARN. - The scan run still records the malware stage as skipped (ToolFailed), unchanged. - Test: `only_an_unreachable_or_silent_clamd_is_down`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang added 1 commit 2026-10-09 12:48:41 +00:00
fix(malware): an unreachable or silent clamd is logged as an error
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 8m31s
89ad1b0d4b
On stage clamd was down for a day and the only trace was WARN lines, so the
"ERROR/FATAL logs" alert never fired. Unreachable and timed-out clamd now log
at ERROR; a refused file or an unreadable tree stays a warning. The scan run
still records the malware stage as skipped, as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
sharang merged commit 2c5b2eb003 into main 2026-10-09 13:00:13 +00:00
Sign in to join this conversation.