1 Answer
- Newest
- Most votes
- Most comments
0
Hello.
As of August 2025, there is no way to target all S3 buckets in an account at once with GuardDuty Malware Protection for S3.
Therefore, you will need to create a shell script using AWS CLI or similar.
There is an AWS CLI command to enable GuardDuty Malware Protection for S3, so try creating a shell script using it.
https://docs.aws.amazon.com/guardduty/latest/ug/enable-malware-protection-s3-bucket.html
aws guardduty create-malware-protection-plan --role "arn:aws:iam::111122223333:role/role-name" --protected-resource "S3Bucket"={"BucketName"="amzn-s3-demo-bucket1"}
Relevant content
asked a year ago
- AWS OFFICIALUpdated 4 years ago
