Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How secure are presigned URLs in AWS S3?

I am planning to redirect users to presigned URLs of sensitive resources stored in S3. These get generated after checking the user's rights and have aggressive timeouts (30 secs). My worry however is whether it would be possible by some malware that is present on my client's machine to capture the url and still download the file within the expire time of the URL. Or Am I just being too paranoid?

If this has been answered before, please point me in that direction. Appreciate your help.

like image 444
Srinivas Yermal Avatar asked Jun 19 '13 07:06

Srinivas Yermal


Video Answer


1 Answers

Anyone who obtains the URL before expiry can use it to access the data. S3 supports bucket policies that limit the IP addresses that are allowed access to data:

http://docs.aws.amazon.com/AmazonS3/latest/dev/AccessPolicyLanguage_UseCases_s3_a.html

However in this case you are worried about malware on the client machine. So that wouldn't help. Have you considered encrypting the data such that only the client process can decrypt it?

You're still vulnerable to an insecure/careless client leaking the data somehow.

like image 57
sethwm Avatar answered Oct 11 '22 13:10

sethwm