Security Flashcards

1
Q

WAF vs NACL

A

WAF

  • common exploits like SQL injection
  • can be attached to CloudFront

NACL

  • IP
  • range of IPs
  • can’t block IPs when behind CloudFront
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

KMS - Key management service

A

Regional

Manages CMKs (customer master keys)
- never leave region or KMS

Ideal for S3, DB passwords, API keys

pay per API call

CloudTrail logs of KMS sent to S3

FIPS level 2
- need to show evidence of tampering

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

CMK types

A

Customer managed

  • can view
  • can manage
  • dedicated to account

AWS managed

  • can view
  • can NOT manage
  • dedicated to account

AWS owned

  • can NOT view
  • can manage
  • NOT dedicated to account
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Symmetric vs Asymmetric CMKs

A

Symmetric

  • AES-256
  • never leaves AWS unencrypted
  • Encrypt, decrypt, re-encrypt

Asymmetric

  • RSA and ECC
  • Private key never leaves AWS unencrypted
  • Used by users who can’t call KMS APIs
  • AWS services integrated w/ KMS do NOT support asymmetric CMKs
  • sign messages, and verify signatures
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Key policies

A

Policies created when creating CMKs

Define access

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

Data encryption key

A

Used to encrypt/decrypt large files

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

CloudHSM (HSM - hardware security module)

A
dedicated hardware security module
FIPS Level 3 - physical security mechanisms that zero out plaintext security providers when tampered with
manage your own keys
no access to AWS-managed component
Runs w/in VPC in your account
single tenant
no AWS APIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

CloudHSM architecture

A

Stored in it own VPC
Connected to other VPCs via ENI
Not HA by default

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

Systems manager Parameter store

A

Component of SSM (Systems manager)

Serverless

allows you to securely store secrets

  • passwords
  • DB connection strings
  • license codes
  • api keys

values can be encrypted (via KMS) or in plaintext

supports versions and TTL

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

Parameter store hierarchies

A

/prod/db/mysql/db-string
/dev/app/apikey

15 levels deep

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

Parameter store + CloudFormation

A

CloudFormation can reference values stored in Parameter store

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

Secrets manager

A

helps you rotate, manage, and retrieve secrets

secure, audit, and manage secrets

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

Secrets manager vs parameter store

A

Parameter store:
-free

Secrets manager:

  • automatically rotate secrets
  • can generate random secrets
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

AWS Shield

A

sits on perimeter to protect against DDoS attacks

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

Shield Standard vs Advanced

A

Standard

  • Automatically enabled
  • no cost
  • Protects against
  • –SYN/UDP floods
  • –reflection attacks

Advanced

  • $3000/month
  • enhanced protection for EC2, ELB, CloudFront, Route53
  • 24/7 access to DDoS response team
  • DDoS cost protection
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

WAF

A

lets you monitor HTTP(S) requests to Cloudfront, ALB, or API gateway

configure filtering rules to allow/deny traffic

  • IP
  • Query string params
  • SQL query injection
17
Q

WAF responses

A

Allow

Block

Count

18
Q

WAF properties

A
Originating IP
Originating country
request size
request header values
strings in reqeusts matching regex

Can block

  • SQL injection
  • XSS
19
Q

AWS firewall manager

A

allows you to configure and manage FW rules across an AWS org

  • WAF rules
  • Shield advanced policies
  • Configure security groups across multiple accounts
  • Audit security groups