Logical signatures that have conditions on a Container type or Intermediates types may not match if the target file is processed (normalized, extracted additional data) and scanned outside of the container first, and cached as clean.
How to reproduce the problem
$ sudo clamdscan -V
ClamAV 1.0.5
With the following proof-of-concept signatures matching string <input inside container:
Describe the bug
Logical signatures that have conditions on a
Container
type orIntermediates
types may not match if the target file is processed (normalized, extracted additional data) and scanned outside of the container first, and cached as clean.How to reproduce the problem
With the following proof-of-concept signatures matching string
<input
inside container:ZIP archive can't be detected anymore after the HTML file was scanned and cached as clean.
Attachments
Attaching samples and logical signatures demonstrated above for convenience. files.zip