Security Flashcards

1
Q

CloudTrail

A

Console shows past 90 days
Default UI only shows Create, Modify and Delete events

Can create a CloudTrail

Get detailed list of all events you choose, can include events happening at the object level in S3
Can store trail events in S3 for further analysis
Can be region specific or global (IAM etc)

If something is deleted look in CloudTrail

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

CloudTrail Delivery to S3

A
  • Can enable versioning
  • Can use encryption SSE-S3, SSE-KMS
  • MFA Delete Protection
  • S3 Lifecycle policy (Glacier, IA)
  • Object locks to protect from delete or modify
  • Can do sha-256 for hashing and signing verifying the content is as expected
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

CloudTrail delivery notifications

A

Could be setup through:

  • CloudTrail directly sns -> sqs, lambda
  • S3 events sns, sqs, lambda
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

CloudTrail - MultiAccount, Multi Region

A

For Write need Bucket Policy

For Reads and Gets need either Cross Account role + AssumeRole OR bucket policy

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

CloudTrail Alerts for API calls

A

CloudTrail -> CW Logs -> Metric Filter -> CW Alerts -> SNS
Ex:
- Count number of API calls of type or per user
- Detect high number of denied API calls

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

CloudTrail Speed

A

Can take 15 minutes to deliver events

  • CW events - fastest most reactive, single API call
  • Delivery to CW Logs - streamed, aggregated, multiple API calls
  • Delivery to S3 - can check integrity, cross account, glacier, more comprehensive (athena)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

AWS KMS

A

AWS manages key for you, integration with IAM for authorization.

Only able to encrypt up to 4KB per call
if > 4KB, use Envelope Encryption using DTK

All API calls recorded to CloudTrail

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

AWS KMS Acess

A
  • Need Key policy

- IAM policy to allows KMS API calls

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

AWS KMS CMK

A

CMK is used to encrypt/decrypt put can never be seen. Can be rotated

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

KMS keys

A

Customer Managed

  • Create, manage, user, enable/disable
  • Rotate, old is kept new added every year
  • Key policy
  • Leverage for envelope encryption

AWS Managed
- Used by AWS services

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

AWS Parameter Store

A
  • Securely store configuration and secrets
  • Mostly free, seamless KMS integration, serverless
  • Version tracing of configurations/secrets
  • Can notify of changes via CW events
  • Dynamic parameter interpolation for CloudFormation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

AWS Parameter Store Paths

A
  • Can retrieve secrets from Secrets manager using parameter store API, using pre-defined special path
  • Special paths include retrieving latest ami id
  • IAM integration on configuration path level
  • GetParameters/GetParametersByPath
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

AWS Secrets Manager

A
  • Can automatically rotate secrets every X days
  • Integration with RDS (admin passwords etc)
  • Encrypted with KMS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

RDS Security at rest

A

KMS Encryption at rest for underlying EBS volume/snapshots

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

RDS Security TDE

A

TDE for Oracle and Sql Server only

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

RDS Security in transit

A

In transit ssl encryption for all databases

17
Q

RDS Security Authorization

A

Using database authorization

18
Q

RDS Security Authentication

A

IAM autheNTICATION only for mysql and psql

19
Q

RDS Security CloudTrail

A

Cannot track queries using CloudTrail

20
Q

RDS Secuirty Snapshots

A

Can copy un-encrypted RDS snapshot into an encrypted one

21
Q

SNI (Server Name Indication) SSL handshake

A

Only supported in NLB, ALB and CloudFront, NOT in CLB

22
Q

AWS and MINM Attacks

A
  • Don’t use HTTP

- Use DNS with DNSSEC, so protect your domain using DNSSEC

23
Q

Route53 DNSSEC

A
  • Does not support for DNS service only for domain registration.
  • Must use another DNS Service Provider, e.g. custom DNS server on EC2 (Bind, dnsmasq, KnotDNS, PowerDNS)
24
Q

AWS ACM

A
  • Buy own SSL certs and store using cli
  • Provision new or renew SSL certs using ACM (free)
  • Integrates seamlessly with by provisioning and maintaining certs on:
    • Load Balancers
    • CloudFront
    • APIs on API Gateway
  • Renewal automatic or manual depends on external or internal
25
Q

ACM and regions

A

ACM is regional, cannot use certs cross region
Must issue ssl certificates for each region needed for a global application with Load Balancers (also regional)
Not needed for CloudFront cause it is a global distribution