S3 Bucket has malware scanning enabled
Topics on this page
Risk Level
High (not acceptable risk)
Description
Ensure that all objects stored in your S3 Buckets are scanned against malware and malware variants in order to protect applications and infrastructure using this information.
Rationale
Malware in files that are uploaded to your S3 Buckets can attack applications, computers, servers and networks with the intent of gathering protected information, misusing resources or opening backdoors into more critical systems. An event-driven scan can prevent this kind of attack by ensuring that infected files are quarantined or locked out preventing applications, computers, servers and networks from accessing the infected files stopping spread right at the point of entry.
Pillar / Type
Security
Audit steps
Via Console
- Log into your AWS Console.
- Go to the S3 Console.
- Select the bucket to review
- In the Properties tab under Event Notifications, select and edit the event notification associated with FSS (Event Types:
All Object Create Events
, Destination Type:Lambda Function
, Destination: Look for a name similar toAll-in-one-TM-FileStorageSecu-BucketListenerLambda
. - If no such event notification is found, then the bucket is not protected by Cloud One File Storage Security.
Via Cli / API
- Run the following command using your AWS CLI:
aws s3api get-bucket-notification-configuration --bucket <YourBucketName>
. - Look for a notification with the following properties:
- LambdaFunctionArn: Look for a value similar to
arn:aws:lambda:<awsaz>:<awsaccountid>:function:All-in-one-TM-FileStorageSecu-BucketListenerLambda-<randomvalue>:TM-FSS-MANAGED
- Events:
s3:ObjectCreated
- If no such event notification is found, then the bucket is not protected by Cloud One File Storage Security.
Remediation steps
- Log into your Cloud One Console and select File Storage Security.
- Also log into your AWS Console in a separate tab.
- Click on Stack Management on the left side.
- Click on Deploy and select Scanner Stack and Storage Stack.
- Enter your bucket and other settings.
For additional details see the Cloud One File Storage Security documentation on AWS Deployment steps.