side channels and physical security. prosecutor’s fallacy joe’s fingerprints found at the site...

32
Side Channels and Physical Security

Upload: ginger-stokes

Post on 29-Dec-2015

215 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Side Channels and Physical Security

Page 2: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Prosecutor’s Fallacy

• Joe’s fingerprints found at the site of a crime• Prosecutor claims fingerprint test is 99.99%

accurate 0.01% false positive and 0.01% false negative

rates

• Was Joe guilty?

Page 3: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Bayesian Inference

Joe Guilty Joe Not Guilty

Prior probability

p (1-p)

Test Positive 0.9999p 0.0001(1-p)

Test Negative 0.0001p 0.9999(1-p)

Page 4: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Joe was innocent!

• E.g., Joe was selected from 1M fingerprint database subjects

Joe Guilty Joe Not Guilty

Prior probability

0.000001 0.999999

Test Positive 0.0000009999

0.0000999999

Page 5: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Outline

• Side channels Audio, RF, ...

• Secure deletion• Steganography

Page 6: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Reading

• Security Engineering, Ch. 15 http://www.cl.cam.ac.uk/~rja14/Papers/SE-15.pdf

• Soft TEMPEST research at Cambridge http://www.cl.cam.ac.uk/~mgk25/

• Secure deletion http://www.cs.auckland.ac.nz/~pgut001/

Page 7: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

What are side channels?===============/

========================================================Advisory ID: CAU-2007-0001Release Date: 04/01/2007Title: Window Transparency Information DisclosureApplication/OS: Windows made from silica or plasticsTopic: Panes used in windows are usually transparent,

allowing sensitive information to be observed from the

outside.Vendor Status: Not NotifiedAttributes: Remote, Information DisclosureAdvisory URL: http://www.caughq.org/advisories/CAU-2007-0001.txtAuthor/Email: I)ruid <druid (at) caughq.org> ===============/

========================================================

Page 8: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Side channels

• Information disclosure through physical properties of the implementation

• Side channel examples? Timing Power RF emanations Acoustic leaks

• Get around a perfect policy and a bug-free implementation

Page 9: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Timing Attacks

• Execution time of operations varies depending on data Some code may not be executed Some instructions may take longer

• Attacker can measure timing, recover secret information

Page 10: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Example: Password checker

get user_passlook up real_passfor i=1 to 8 if user_pass[i] != real_pass[i] break

a aaaaaaaaaaaaaaaabcs aaaaaaaaaaaaaaaasa

“secret”

Page 11: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Example: RSA

• Decrypt: compute Cd (mod n)

decrypt(C,d,n) M := C; for i = 0 to log2 d

if bit i of d = 1 M := M * C mod n M := M*M mod n

Page 12: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Keystroke timings

User types p a s s w o r d

p a s s w o r dSSH sends

Page 13: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Keyboard acoustics

User types p a s s w o r d

Microphone

Page 14: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Acoustic noise

Page 15: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

RF noise

• Computers emit RF noise, too Lots of it!

• With high-gain antenna, can monitor activity from a distance

• TEMPEST project Study RF emanations Certification for equipment shielding

• Red black

Page 16: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Open TEMPEST Research

Page 17: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Demonstration

Page 18: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Hidden Messages

Page 19: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Hidden messages

Page 20: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Power Analysis

• Computers & electronics leak information through power Different instructions take different power

• Power analysis is especially useful for smart cards E.g. satellite decoder cards contain secret keys

that users should not be able to steal Card under user’s precise control

Page 21: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Simple Power Analysis

Page 22: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Differential power analysis

• Make hypothesis of internal state• Look for power traces correlated with

hypothesis state

Page 23: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Defenses?

• Timing• Acoustic• RF• Power

Page 24: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Steganography

• Greek for covered writing• Embed hidden messages in other communication• Example:

PRESIDENT'S EMBARGO RULING SHOULD HAVE IMMEDIATE

NOTICE. GRAVE SITUATION AFFECTING INTERNATIONAL LAW.

STATEMENT FORESHADOWS RUIN OF MANY NEUTRALS.

YELLOW JOURNALS UNIFYING NATIONAL EXCITEMENT

IMMENSELY.

PRESIDENT'S EMBARGO RULING SHOULD HAVE IMMEDIATE

NOTICE. GRAVE SITUATION AFFECTING INTERNATIONAL LAW.

STATEMENT FORESHADOWS RUIN OF MANY NEUTRALS.

YELLOW JOURNALS UNIFYING NATIONAL EXCITEMENT

IMMENSELY.

PERSHING SAILS FROM NY JUNE I

Page 25: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Where to hide messages?

• Spaces• Word lengths

How I want a drink, alcoholic of course, after the heavy chapters involving quantum mechanics. One is, yes, adequate even enough to induce some fun and pleasure for an instant, miserably brief.

• Timings• Low bits of images/audio

Page 26: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Image Steganography

Page 27: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Secure Deletion

• How do you make sure a file is really gone?• Must eradicate all copies• First attempt:

“rm file”

• What about backups?

Page 28: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

OS level issues

• What does the filesystem do when you erase a file?

Directory

file1

file2

file3

File 1 contents

Page 29: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Try #2

• Overwrite file with 0’s, *then* erase• Problems?

Copies of file in memory, cache, swap Study finds data remains on disk weeks after it’s

been erased

Page 30: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Disk level issues

• Magnetic information persists after overwrite “Ghost effects” Overwrite many time with different patterns Similar effects exist for RAM, too!

• CITES disk scrubbing docs: http://www.cites.uiuc.edu/security/diskscrub/dsfaq.html

• Smart disks remap sectors Sectors that have gone bad inacessible, though still

readable with effort

• Drive alignment issues

Page 31: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Better approach

• Never write confidential data to disk Keep crypto keys “pinned” in memory Encrypt confidential files

• Encrypting filesystems Encrypt all data stored on a computer BitLocker for Windows Many products for Linux FileVault under MacOS X

• Keep key in memory, or on smart card

Page 32: Side Channels and Physical Security. Prosecutor’s Fallacy Joe’s fingerprints found at the site of a crime Prosecutor claims fingerprint test is 99.99%

Key Points

• Physical security is difficult Many side channels available

• Software / system design can help physical security E.g. encrypted filesystems

• Joe was innocent!