54
Brave, Privacy, and Standards Peter Snyder, Privacy Researcher, [email protected] Pranjal Jumde, Security Engineer, [email protected]

Brave, Privacy, and Standards - Peter E. [email protected]. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Brave, Privacy, and Standards Peter Snyder, Privacy Researcher, [email protected] Jumde, Security Engineer, [email protected]

Page 2: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!2

Page 3: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!3

Page 4: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Brave Is 100% In on Web

Openness

• Anyone can join / code / view-source

• No choke-point

Compatibility

• Easy to share content

• Best cross-device story

But things have gone off the rails…

!4

Page 5: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

The Ecosystem is Broken:

!5

Creators: Small & declining revenue

Commodification

Advertisers: Fraud: 2017 - $16B in US

est. $50B by 2025

Users: Slow, abusive, creepy ads and

tracking

Data source: Business Insider, Atlantic, Fortune, PageFair

Page 6: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Data source: Bullet 1, New York Times and Medium; Bullet 2: TMZ: Ghostery; Bullet 3: New York Times; Bullet 4: Forbes: Cylance. !6

5 124 $23 3xseconds per

mobile page loadwasted by Adtech

trackers on media

sites like TMZ

Slow Invasive

monthly average users pay to

download ads and trackers

malware and ransomwaregrowth in 2017

Expensive Insecure

USERS: Already Paying a High Price

Page 7: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

PUBLISHERS: Ad-tech Lumascape: High Cost, Low Quality

Data source: www.lumapartners.com for graphic and World Federation of Advertisers for fraud. !7

Page 8: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

119M

2014 2015

181M

ADVERTISERS: Users Respond with Ad-blocking

600M+ devices

!8Data source: Pagefair

145M

2016

275M

Desktop browsers

Mobile browsers

216M

2017

236M

380M

2013

54M

Page 9: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Reformed digital advertising

Our Vision Brave + BAT For a Better Web

Private-by-default browsing

!9

Reward users to browse/autopay

Page 10: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Lack Of Browser Privacy is at the Center

Draws advertisers away from high quality content

Incentivizes performance heck, multi-Mb websites

Insulting and abusive to users

Pushes users off Web, to closed platforms

!10

Page 11: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards processes makes privacy difficult(and how it can be fixed)

!11

Page 12: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!12

Page 13: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Privacy in Brave

Tighter Default Storage Controls

Tor Integration

Resource Blocking

Web API / DOM Modifications

!13

Page 14: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Privacy in Brave

Tighter Default Storage Controls

Tor Integration

Resource Blocking

Web API / DOM Modifications

!14

Web Standards / W3C

Page 15: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 16: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 17: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 18: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Web API Modifications

Page 19: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Web API Modifications

Page 20: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Web Audio Fingerprinting

!20

Standard says websites can query hardware

Hardware is pseudo-identifying

Enough pseudo-identifiers yield a real identifier

So Brave breaks the standard…

Page 21: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Breaking Standards for Privacy

Hardware Detection:

• Web Audio

• WebGL

• WebUSB

• Battery API

Network Information

• WebRTC

!21

Font Enumeration:

• Canvas

• SVG

Display Information:

• Client Hints

Browsing History:

• Referrer Policy

Page 22: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!22

Page 23: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!23

Page 24: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Privacy vs Compatibility

Page 25: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Three StandardsPrivacy Anti-Patterns

Page 26: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Three StandardsPrivacy Anti-Patterns

Page 27: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

1. Defined Functionality,Non-Normative Mitigations

Page 28: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Privacy Risk w/ Non-Normative Mitigations

Privacy-harming / risky functionality

“Privacy considerations" section, but non-standardized mitigation

The Web assumes the dominant implementation, instead of the standard

Result: Harm is “locked in” / out of control of the standards process

!28

Page 29: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 30: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 31: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 32: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Result

Well described functionality

Vaguely / undefined / unclear mitigations

Web assumes the defined functionality, privacy-harm gets locked in

Solution: Make mitigations normative and standardized!

!32

Page 33: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

1. Defined Functionality,Non-Normative Mitigations

2. Uncommon Use Case,Common Availability

Page 34: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Uncommon Use Case, Common Availability

Genuinely useful functionality, for niche scenarios

Functionality is made widely available (first-party, third-party, frames, etc.)

Co-opted by tracking, code-paths assume availability

Result: can't be removed, even from irrelevant sites

!34

Page 35: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 36: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 37: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 38: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 39: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Widely Available

Sites / benign code expects

Removing / blocking breaks benign sites

Page 40: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Lots of rare-use-case functionality

Brightness sensors

WebVR

Machine Learning APIs

High Resolution Timers

Vibration

WebGL operations

Tracing APIs

Many many many more…

!40

Page 41: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Lesson Learned

Assume people will find bad uses for your functionality

General access -> difficult to remove / modify

Solution: Restrict access to the use cases you care about

• User gestures

• Permission prompts

• Not-in-frames !41

Page 42: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

1. Defined Functionality,Non-Normative Mitigations

2. Uncommon Use Case,Common Availability

3. “No worse than thestatus quo”

Page 43: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

“No worse than the status quo”

Privacy-harming / risky functionality

“Information is available elsewhere, so no additional harm”

Result: Web compat difficulty expands…

!43

Page 44: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 45: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Client Server

Page 46: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Client ServerGET /index.html

Page 47: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Client Server

GET /index.html

Accept-CH: DPR Accept-CH: Viewport-Width

Page 48: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Client Server

Accept-CH: DPR Accept-CH: Viewport-Width

GET /index.html

DPR: 2 Viewport-Width: 1434

Page 49: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Values in Client Hints are Identifying

!49

Eckersley, Peter. "How unique is your web browser?." PETS 2010Viewport height and width

Laperdrix et al. ”Beauty and the beast: Diverting modern web browsers to build unique browser fingerprints." S&P 2016.Device color depth

Englehardt et al. "Online Tracking: A 1-million-site Measurement and Analysis.” CCS 2016The above are being used often!

Page 50: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Client Hints Authors’ Current Position

!50

This information is already available

No further exposure / no marginal harm

Brave’s Concerns with the Client-Hints Proposalhttps://brave.com/brave-and-client-hints/

Page 51: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM
Page 52: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Lesson Learned

“Horizontal” privacy risk is technological debt

Same data in more places entrenches the risk

Solution: Treat all additional privacy risk as equally problematic

!52

Page 53: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Overview

Brave's goals on the Web

How Brave protects privacy today

How the standards process makes privacy difficult(and how it can be fixed)

!53

Page 54: Brave, Privacy, and Standards - Peter E. Snyder...pranjal@brave.com. Title: Brave and Web Standards Created Date: 5/15/2019 9:58:52 PM

Conclusion

Brave is working to improve theWeb for users, content creators and advertisers.

Privacy preserving standards are important to improving the Web.

The standards process can be improved to help privacy.

Pete SnyderPrivacy [email protected]

Pranjal JumdeSecurity [email protected]