netflix’s layered approach to reducing risk of credential ... · netflix’s layered approach to...

59
Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS MCPEAK SENIOR SECURITY ENGINEER

Upload: others

Post on 21-Feb-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Netflix’s Layered Approach to Reducing Risk of Credential CompromiseWILL BENGTSONSENIOR SECURITY ENGINEER

TRAVIS MCPEAKSENIOR SECURITY ENGINEER

Page 2: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 3: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 4: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Segment environment into accounts

Page 5: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

If the account gets compromised, damage is contained.

Page 6: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Useful when broad permissions are required.

Page 7: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Useful forseparation of duties.

Page 8: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Useful for sensitive applications and data.

Page 9: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Reduce friction by investing in tooling to C.R.U.D. AWS accounts.

Page 10: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Remove static keys

Page 11: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Static keys never expire and have led to many compromises.

Page 12: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 13: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Short-lived keys,delivered securely,rotated automatically.

Page 14: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Permission Right Sizing

Page 15: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We continuously and automatically remove unused permissions.

Page 16: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Applications converge to least privilege.

Page 17: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Unused applications

converge to zero.

Page 18: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

https://github.com/Netflix/repokid

Page 19: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Paved Road for Credentials

Page 20: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 21: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 22: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Auditing / logging

Page 23: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Anomaly detection

Page 24: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Prevent instance credentials from being used off-instance

Page 25: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

If attacker tries to steal creds, they don’t work.

Page 26: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

IRL

Page 27: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Delivery Lockdown

Page 28: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We use Spinnaker

Page 29: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We applied tags that restrict roles to specific applications.

Page 30: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We applied application specific AuthZ controls (Fiat).

Page 31: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Together: these two controls prevent privilege escalation.

Page 32: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We rolled this out environment wide.

Page 33: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Automated detection and alerting FTW.

Page 34: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Detect instance credentials used off-instance

Page 35: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We already block it.

An attempted use is a signal.

Page 36: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Example

Page 37: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Detect anomalous behavior in environment

Page 38: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

We track baseline behavior for an account.

Page 39: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Some

shouldn’t be used.

regions , services, resources

Page 40: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

A perk of continuously watching CloudTrail.

Page 41: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Example

Page 42: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Detect anomalous behavior by roles

Page 43: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Same idea, but at the application/role level.

Page 44: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Applications have relatively consistent behavior.

Page 45: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Look for common first attacker steps.

Page 46: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Example

Page 47: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Future:One role per user

Page 48: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

User roles become unique as a fingerprint.

Page 49: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

This can be used to detect unusual behavior.

Page 50: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Future:Remove users from accounts they don’t use

Page 51: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Reduces the risk of user workstation compromise.

Page 52: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Future:Metadata work

Page 53: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Prevent compromise at the credential source

Page 54: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 55: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 56: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 57: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS
Page 58: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS

Hot & Ready

Page 59: Netflix’s Layered Approach to Reducing Risk of Credential ... · Netflix’s Layered Approach to Reducing Risk of Credential Compromise WILL BENGTSON SENIOR SECURITY ENGINEER TRAVIS