Menu

S3 malware scanning: check uploads with GuardDuty
📰

S3 malware scanning: check uploads with GuardDuty

DEV Community: cloud·Sascha Mirow-Stanitzok·about 2 hours ago
#F8nPCT7Z
#devtocloud#devto#dev#guardduty#const
Reading 0:00
15s threshold

S3 malware scanning is one of those topics that tends to be missing from architecture diagrams. We build uploads with presigned URLs, we care about file sizes and CORS, and in the end a PDF from a complete stranger lands in our bucket. From there, someone in HR might open it, a thumbnail generator processes it or an AI pipeline extracts its text. At that point the question is fair: how do you actually know there is nothing nasty inside that file?

Earlier today I showed how to build a secure file upload with S3 presigned URLs . This article is the logical next step. You will learn how GuardDuty Malware Protection for S3 checks every new file automatically, how to lock unscanned files with a bucket policy and how a Lambda function passes clean files on. The example is the job application portal of a fictional bakery that no longer wants to receive résumés by email.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.