Yves Banga
← All work
In progress

Fail-Closed ClamAV Intake Gate

Do ClamAV upload gates fail open, and what does a deny-by-default gate cost?

Updated

The question

Many websites scan uploaded files with ClamAV and release a file only when it is clean. In practice, a file can slip through when the scanner is down, times out, hits a size or nesting limit, or when the code checks the wrong field.

The approach

Before changing any code, I write down which test files and failure cases I will try and how I will judge them. Then I build a gate that releases a file only after a positive clean verdict, measure how often it refuses harmless files, and run the same cases against other open-source ClamAV integrations.

Current state

In progress. Results will be published here when the measurement is complete.