1. Create Amazon S3 buckets
fss-promote
.fss-quarantine
.Remember that S3 bucket are an unique name globally for all AWS customers. If you try to use the same name from this workshop you will have some issues with an existing S3 bucket name already created.
📌 If you need help on how to create an Amazon S3 bucket here is the step-by-steps: Link
2. Find the ‘ScanResultTopic’ SNS topic ARN
arn:aws:sns:us-east-1:123445678901:FileStorageSecurity-All-In-One-Stack-StorageStack-1IDPU1PZ2W5RN-ScanResultTopic-N8DD2JH1GRKF
In this case, let’s use the Serverless Application Repository
I acknowledge that this app creates custom IAM roles.
checkbox.Deploy
.5. After couple minutes you can click on the tab Deployments and expand the deployment to see if the status shows as complete. Then you can move to the next step to test it.
To test that the application was deployed properly, you’ll need to generate a malware detection using the eicar test file, and then check the Quarantine bucket to make sure the eicar
file was sent there successfully.
Download the Eicar test file
eicar
file and delete it.eicar_com.zip
or any of the other versions of this file.curl -O https://secure.eicar.org/eicar_com.zip
Upload the eicar file to the ScanningBucket
Using the AWS console
eicar_com.zip
. File Storage Security scans the file and detects malware.eicar.zip
file is present.eicar.zip
is no longer there.📌 It can take 15-30 seconds or more for the ‘move’ operation to complete, and during this time, you may see the file in both buckets.
Using the AWS CLI
aws s3 cp eicar_com.zip s3://<YOUR_SCANNING_BUCKET>
<YOUR_SCANNING_BUCKET>
is replaced with the ScanningBucket name.NOTE: It can take about 15-30 seconds or more for the file to move.
Using the AWS CLI or the AWS Console, you should be able to see the eicar file in your QuarantineBucketName
with the correct tags.
Awesome, You did it! 🎉