Security Flashcards
WAF vs NACL
WAF
- common exploits like SQL injection
- can be attached to CloudFront
NACL
- IP
- range of IPs
- can’t block IPs when behind CloudFront
KMS - Key management service
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
CMK types
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
Symmetric vs Asymmetric CMKs
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
Key policies
Policies created when creating CMKs
Define access
Data encryption key
Used to encrypt/decrypt large files
CloudHSM (HSM - hardware security module)
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
CloudHSM architecture
Stored in it own VPC
Connected to other VPCs via ENI
Not HA by default
Systems manager Parameter store
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
Parameter store hierarchies
/prod/db/mysql/db-string
/dev/app/apikey
15 levels deep
Parameter store + CloudFormation
CloudFormation can reference values stored in Parameter store
Secrets manager
helps you rotate, manage, and retrieve secrets
secure, audit, and manage secrets
Secrets manager vs parameter store
Parameter store:
-free
Secrets manager:
- automatically rotate secrets
- can generate random secrets
AWS Shield
sits on perimeter to protect against DDoS attacks
Shield Standard vs Advanced
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