All project notes

Engineering

Detecting malware in file uploads

An S3 upload event starts an antivirus scan that can block access to an infected file and alert responders.

An S3 upload triggers a Lambda antivirus scan. The diagram shows an access block on the object and a CloudWatch alarm sending SNS email alerts to the bucket owner, security, and support.
Upload malware detection diagram extracted from slide 16.

In Rosli’s example, Amazon S3 emits an event when a file arrives and invokes an AWS Lambda function to scan it. The diagram shows access blocked to the infected object. It also shows the scanner writing a log event to Amazon CloudWatch, whose alarm triggers email alerts through Amazon SNS for the bucket owner, information security, and support.

The Git archive shows one concrete enforcement path. The archived Lambda scanner used ClamAV to check newly uploaded objects and wrote the verdict back to S3 as an object tag. The shared file service checked that verdict before retrieving media for Twilio Conversations. It fetched the object after a clean result and rejected an infected one. The alert chain in the slide is presentation evidence. Its deployment settings remain unverified.

Sources. SalesCandy’s archived AWS Activate presentation, revised deck dated 22 June 2021, slide 16. Git evidence: Utilities/bucket-antivirus-function-src at 11d8f51 and sc-files at d483f84.