encryption without magic, risk management without …€¦ · cryptography? aes #qconlondon...

69
ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT W ITHOUT PAIN #qconlondon @vixentael

Upload: others

Post on 07-Apr-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

ENCRYPTION WITHOUT MAGIC,

RISK MANAGEMENT WITHOUT PAIN

#qconlondon @vixentael

Page 2: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish
Page 3: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

@vixentael Product Engineer

Feel free to reach me with security questions.

I do check my inbox :)

Page 4: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

CRYPTOGRAPHY?

Page 5: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

CRYPTOGRAPHY?AES

DES

3DESCBC

CFB

SEAL

Salsa20

RSA

DSA

OFB

Blowfish

SHARKRC4

DSS

ECB CTR

Twofish

Camelia

SEED

Rabbit

ECDSA

#qconlondon @vixentael

Page 6: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

CRYPTOGRAPHY?AES

#qconlondon @vixentael

DES

3DESCBC

CFB

SEAL

Salsa20

RSA

DSA

OFB

Blowfish

SHARKRC4

DSS

ECB CTR

Twofish

Camelia

SEED

Rabbit

ECDSA

MD5SHA1SHA3

Page 7: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

algorithms

elliptic curves

key management

public key validity

storing secrets

CRYPTOGRAPHY

cool, but…

Page 8: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

crypto is not a

but a method to manage the attack surface

Page 9: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

ATTACK SURFACE

– all the possible places where sensitive data may be stolen by adversary

https://www.owasp.org/index.php/Attack_Surface_Analysis_Cheat_Sheet

Page 10: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

it’s easier to monitor the suspicious behavior

in a small place

Page 11: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

HANDLING SECRET DATA WITH CARE

avoid plain text as possible

manage keys properly

decrease time of plaintext secrets in memory

log, monitor and inspect

Page 12: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

– HOW TO MANAGE THE ATTACK SURFACE OF MY DATA?

Page 13: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

one container one key

symmetric encryption with poor key management

Page 14: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

attack surface is arbitrary

one container one key

symmetric encryption with poor key management

key leaked → data leaked

Page 15: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

WHAT IS A CRYPTO-SYSTEM

https://en.wikipedia.org/wiki/Cryptosystem

Page 16: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

KEY AND TRUST MANAGEMENT SHOULD REFLECT YOUR SYSTEM

Page 17: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

MESSAGING

https://core.telegram.org/api/end-to-end

Page 18: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

GOOD MESSAGING

IS E2EE…but your infrastructures are not only for messaging

Page 19: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

NAIVE DATABASE ENCRYPTION

attack surface is almost everywhere

Page 20: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

NARROWING ATTACK SURFACE

middleware-side encryption

client-side encryption

Page 21: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish
Page 22: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

MIDDLEWARE-SIDE ENCRYPTION

Page 23: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

SQL injectionscode injections

execution flow attacks

reflection attacks

XSS

crypto-miners everywhereMitM

REAL-WORLD WEB SERVER

Page 24: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

ATTACK SURFACE IS EVERYWHERE :(

REAL-WORLD WEB SERVER

monitor everything

Page 25: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

TRY SYMMETRIC ENCRYPTION?

encrypt/decrypt data using symm key

Page 26: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

TRY SYMMETRIC ENCRYPTION?

encrypt/decrypt data using symm key

easy to steal a keyhttps://www.alibabacloud.com/help/faq-detail/37505.htm

Page 27: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

ASYMMETRIC ENCRYPTION

wrapped data = Enc(data, random symm key)

container = Enc(wrapped data, PKweb, PubKtds)

Page 28: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

wrapped data = Enc(data, random symm key)

container = Enc(wrapped data, PKweb, PubKtds)

PubKey of ‘trusted decryption service’

ASYMMETRIC ENCRYPTION

Page 29: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

TRUSTED DECRYPTION SERVICE

wrapped_data = Dec(container, PKtds, PubKweb)

data = Dec(wrapped_data, random symm key)

decrypts data

Page 30: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

trusted element in infrastructure

SEPARATION OF DUTIES

no decryption keys

monitor & log

Page 31: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

NARROWED ATTACK SURFACE

TRUSTED DECRYPTION SERVICE

#qconlondon @vixentael

Page 32: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

monitor everything

monitor decryption proxy

Page 33: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

WHERE TO USE THIS TECHNIQUE?

micro-services infrastructure

public-oriented interfaces

non trusted client side (browsers, IoT devices)

hard to store keys securely

Page 34: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

HOW TO IMPLEMENT?

ACRAhttps://github.com/cossacklabs/acra

GREEN SQLhttps://github.com/larskanis/greensql-fw

HEXATIERhttp://www.hexatier.com/

ORACLE DATABASE FIREWALL / TDEhttp://www.oracle.com/

Page 35: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish
Page 36: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

CLIENT-SIDE ENCRYPTION

Page 37: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

MOVE TRUST TO CLIENTS

session hijacking

unattended backupsMitM

replay attacksmisconfigured ACL

trusted element in infrastructure

Page 38: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

P2P TRUST

system doesn’t know anything about data

encrypted containers

user-generated keys

Page 39: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

ZERO KNOWLEDGE ARCHITECTURES

#qconlondon @vixentael

Page 40: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

ZKA is a design principle that enables software to provide services over protected client data without having an unencrypted access to it.

#qconlondon @vixentael

Page 41: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

e2ee clientsZKA INCLUDES:

#qconlondon @vixentael

Page 42: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

e2ee clients

all operations are on encrypted data:

– control access to data from different users

– CRUD

– search (in encrypted data)

ZKA INCLUDES:

#qconlondon @vixentael

Page 43: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

weak key management

algorithm weakness

user pocket

attack surface

RISKS FOR ZKA:

Page 44: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

WHEN TO USE ZKA?

#qconlondon @vixentael

trusted client side (mobile, HSM/TPM)

Page 45: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

ZKA is already solved for specific use-cases or in a naive ways

#qconlondon @vixentael

Page 46: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

MESSAGING END-TO-END ENCRYPTION

#qconlondon @vixentael

Page 47: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

AUTHENTICATION ZERO KNOWLEDGE PROOF

https://www.cossacklabs.com/zero-knowledge-protocols-without-magic.html

#qconlondon @vixentael

Page 48: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

COLLABORATING ON DATA

– store encrypted – share with others – manage access to parties

#qconlondon @vixentael

???

Page 49: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

naive approach

– duplications

– key management problems

#qconlondon @vixentael

SHARING ENCRYPTED DATA

Page 50: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

give access to certain blocks of data to exact users

https://github.com/cossacklabs/hermes-core

#qconlondon @vixentael

OUR TAKE

Page 51: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

– Key wrapping

storage keys user keysblocks

#qconlondon @vixentael

HOW TO BUILD IT?

Page 52: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

HOW TO BUILD IT?– Key wrapping – Manage privileges

Page 53: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

– Key wrapping – Manage privileges – Control requests

#qconlondon @vixentael

HOW TO BUILD IT?

Page 54: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

shared audit logs complex docs,

spreadsheets

config files

file system

document store protection

#qconlondon @vixentael

MORE POSSIBLE USE-CASES

Page 55: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

OTHER IMPLEMENTATIONS

#qconlondon @vixentael

HERMEShttps://github.com/cossacklabs/hermes-core

ZEROKIThttps://tresorit.com/zerokit

LAFShttps://tahoe-lafs.org/trac/tahoe-lafs

Page 56: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentaelmonitor everything

monitor client side

Page 57: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

MORE GOODIES TO THINK ABOUT

Page 58: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

Cryptography is well implemented, if it allows to narrow attack surface, and increase control of data.

#qconlondon @vixentael

Page 59: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

if the system has one perimeter,

it will fail!

ECHELONIZATION

#qconlondon @vixentael

Page 60: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

..add more layers of defense

ECHELONIZATION

Page 61: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

EXCEPT CRYPTO, YOU ALSO NEEDlog and monitor events

intrusion pattern detection

access control

firewall

...

Page 62: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

https://pdos.csail.mit.edu/papers/cryptobugs:apsys14.pdf

269 CVEsfrom 2011-2014

17%

83%

bugs inside crypto libs

misuses of crypto libs by individual apps

#qconlondon @vixentael

Page 63: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

RECAP

2

Page 64: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

#qconlondon @vixentael

THINGS TO REMEMBER1. cryptography aims to narrow the attack surface

2. choose relevant encryption scheme

3. combine crypto and classic techniques

4. there is a lib for that

Page 65: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish
Page 66: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

https://hackernoon.com/eli5-zero-knowledge-proof-78a276db9effExplain Like I’m 5: Zero Knowledge Proof

https://medium.com/@9gunpi/devops-and-security-from-trenches-to-command-centers-466dfb58fe5b

DevOps and security: from trenches to command centers

https://medium.com/@cossacklabs/12-and-1-ideas-how-to-enhance-backend-data-security-4b8ceb5ccb88

12 and 1 ideas how to enhance backend data security

LINKS

https://www.smashingmagazine.com/2018/02/gdpr-for-web-developers/How GDPR Will Change The Way You Develop

Page 68: ENCRYPTION WITHOUT MAGIC, RISK MANAGEMENT WITHOUT …€¦ · CRYPTOGRAPHY? AES #qconlondon @vixentael DES 3DES CBC CFB SEAL Salsa20 RSA DSA OFB Blowfish SHARK RC4 DSS ECB CTR Twofish

@vixentael Product Engineer

Feel free to reach me with security questions.

I do check my inbox :)