[clamav-users] Stream scanning

Istvan Szabo IstvanS at sfwltd.co.uk
Tue Jan 12 07:14:17 EST 2016


Is it possible to  handle somehow this request with clamav?

User uploads file to web site
File is loaded into memory (byte stream)
File byte stream is sent to ClamAV for scanning
ClamAV returns OK or VIRUS
If OK, store file in the database, if VIRUS, return error to user

I'd imagine to scan the file ClamAV will need to write the byte stream into a temporary file which then gets deleted after the scan.

I've got a POC working on a Windows server. You can connect via TCP to the ClamAV daemon and invoke commands. We'd use the INSTREAM command which sends the file over in a byte stream for scanning.

Is it possible?

Thank you.

This communication and any attachments transmitted with it is intended only for the stated addressee(s) and may be confidential. Any unauthorised disclosure, use or dissemination, either whole or in part is prohibited. If you have received this email in error, please notify the SFW IT Support team immediately at support at sfwltd.co.uk and delete, erase or otherwise destroy this email. Opinions expressed in this email are those of the author and do not necessarily reflect the opinions of SFW Ltd or SFW India Pvt Ltd.

SFW Ltd. Registered Office: Southern House, Station Approach, Woking, Surrey, GU22 7UY Registered in England No: 2740301 VAT No. 591 7842 02

More information about the clamav-users mailing list