23
The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Embed Size (px)

Citation preview

Page 1: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

The 7 Deadly Sins

Security-Based Design Flaws in IoT Products

1

Drew Redshift PorterMaker & Breaker

Bastille

Page 2: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Agenda

Stor

y Ti

me

It’s A

ll Fu

n an

d Ga

mes

7Dea

dly

Sins

Wha

t Not

to

Do

How

to D

o It

Ques

tions

2

Page 3: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Story Time

3

Page 4: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Story Time

4

Page 5: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

THE 7 DEADLY SINSHOW TO MAKE SURE YOUR PRODUCT IS NOT A TALK AT A CON

5

Page 6: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

This is baby town

Even with non-sensitive data, you should not do this

Super low hanging fruit

Use Of Clear Text Protocols

6Sin #7

Page 7: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Communication Done Correctly

Look to see if there are any secure implementations of the protocol

Make sure implementation is done correctly

Almost every protocol has a secure version

7

Page 8: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Software or Hardware

Even if not “active”

First attack vector

Debugging Enabled or Pins Exposed

8Sin #6

Page 9: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Debugging Done Correctly

Disable all debugging functions before production (Software and Hardware)

Ensure that debugging is disabled

Do not provide the options for debugging on the board

9

Page 10: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Radio protocols are difficult to do correctly

Security through obscurity

Compounding security flaws

Your Own Proprietary Radio Protocol

10Sin #5

Page 11: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Radio Done Correctly

Use tried and true radio hardware

Use tried and true radio protocols

Make sure it is secure, even if it is popular*cough* BLE/BT Smart *cough*

11

Page 12: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Are you authorized???Why, yes I am

Easy to fool, easy to break

Is this the early 2000s?

User-Side App Verification

12Sin #4

Page 13: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

App Verification Done Correctly

Have your app request authentication verification from an external server

Look into multi-step verification

Read the many guides online about app verification

13

Page 14: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

You are not smarter than the NSA’s mathematicians…

Sorry

Static encryption keys

Weakening of good encryption methods

Proprietary Encryption Or Weakening

14Sin #3

Page 15: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Encryption Done Correctly

Use tried and true encryption methods

Do not think you are better than the PhDs who develop crypto

Ensure that encryption is implemented correctly

15

Page 16: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Do we really have to talk about this one???

TL;DR BLE is broken to hell and should not be used by itself*

*When using BLE for authentication or secure communication

Using BLE Only and Calling It Secure

16Sin #2

Page 17: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

BLE Done Correctly

BLE with WiFi or some other communication method

BLE with OOB (No real COTS solution for this right now)

17

Page 18: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Assuming Your Product Is Secure

FOR THE LOVE OF GOD, NEVER DO THIS!

18Sin #1

Page 19: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Making Sure Your Product Is Secure

Having your own security team run tests against your product

Have your product tested by a third party companyMake sure they do both automated and manual

testingMake sure they have a hardware guy/gal

Maybe even have it tested by 2 companies

19

Page 20: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

7 Deadly Sins

7• Use Of Clear Text Protocols

6• Debugging Enabled or Pins Exposed

5• Your Own Proprietary Radio Protocol

4• User-Side App Verification

3• Proprietary Encryption Or Weakening

2• Using BLE Only and Calling It Secure

1• Assuming Your Product Is Secure

20

Page 21: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Look for these in your next product pentest

Design with these 7 in mind

Share this with everyone you know

Summary

21

Page 22: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

REVPLEX.COMFor those who keep on asking about my meshnet project.

Page 23: The 7 Deadly Sins Security-Based Design Flaws in IoT Products 1 Drew Redshift Porter Maker & Breaker Bastille

Thank You

Drew Redshift Porter

@iamredshift

[email protected]

Bastille BASTILLE.IO

23