Amazon S3 Security Flashcards

1
Q

What are the 4 methods to encrypt objects in S3?

A

Server-side, customer managed keys
Server-side, AWS managed keys
Server-side, KMS managed keys
Client-side, customer managed keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which S3 object encryption type can be audited with CloudTrail?

A

SSE-KMS, logs each time the key is used

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does client-side encryption mean?

A

The client encrypts the data themself before sending it to S3, and decrypts once it is out of S3. This means AWS never sees the data unencrypted.
The client must manage the keys themself.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the default option for S3 object encryption at rest?

A

SSE-S3, or server side encryption with Amazon S3 managed keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is used for S3 encryption in-flight?

A

SSL/TLS with HTTPS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Is it possible to force encryption for new objects put into an S3 bucket?

A

Yes - you can refuse any API call to PUT an object that doesn’t have encryption headers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does CORS stand for?

A

Cross Origin Resource Sharing

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a cross origin request?

A

When a web page from one domain (origin) makes a request for resources from a different domain, e.g. example.com requests resources from anothersite.com

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Why are CORS headers important?

A

Cross origin requests are typically denied for security reasons unless explicitly allowed through CORS headers. If a user wants to share resources across domains, they need to change the CORS headers accordingly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is one way to prevent a user from accidentally deleting significant swathes of data without verifying their identity?

A

MFA delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What two actions can be enabled to force MFA with MFA delete?

A

Permanent deletion of an object version
Suspend versioning on the bucket

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What level of account permissions can enable or disable MFA delete?

A

Only the root account

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How would you store the logs of access to your S3 buckets?

A

Store the logs in a separate S3 bucket in the same region. DO NOT store the logs in the same bucket as the one you are logging access to otherwise it will cause an infinite loop (the bucket is accessed in order to put the logs in, which gets logged, etc.)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a pre-signed URL? Which service does this apply to?

A

A URL that you can generate using the S3 console, SLI or SDK that expires after a certain period of time and gives users access permissions equivalent to those of the user that granted the URL.
For S3.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is Glacier Vault Lock?

A

Write the object once, can be read many times but cannot ever be changed or deleted.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the 2 retention modes for S3 object lock?

A

Compliance and governance

17
Q

What S3 object lock retention mode allows admins but not any other user to change/delete things?

A

Governance

18
Q

What S3 object lock retention mode allows not even the root user to change/delete things?

A

Compliance

19
Q

What is S3 legal hold?

A

An object is protected indefinitely, independent from previous retention periods or modes it was on before.

20
Q

What is a retention period for S3?

A

How long the object is protected for, can be extended

21
Q

What is an S3 access point? Why is it useful?

A

Simplifies giving segments of users access to specific parts (prefixes) of an S3 bucket by breaking down the access segments of the bucket.
E.g. make a preset access point which has all finance data within and then make a policy which allows/denies people to that access point

22
Q

What is S3 Object Lambda?

A

Allows the user to modify an object with a lambda function before it is retrieved by a caller.
We need an S3 access point for the lambda function and S3 Object Lambda access point.
Could be used, for example, to redact objects before the are sent out