Slide 1

Slide 1 text

Hardening Firefox for Privacy & Security François Marier

Slide 2

Slide 2 text

No content

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

No content

Slide 5

Slide 5 text

enable disable restrict

Slide 6

Slide 6 text

enable disable restrict

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

eliminating all fingerprinting

Slide 9

Slide 9 text

eliminating all fingerprinting

Slide 10

Slide 10 text

eliminating all traffic to Mozilla

Slide 11

Slide 11 text

eliminating all traffic to Mozilla support.mozilla.org/kb/how-stop-firefox-making-automatic-connections

Slide 12

Slide 12 text

eliminating all traffic to Mozilla ● auto-updates

Slide 13

Slide 13 text

eliminating all traffic to Mozilla ● auto-updates ● add-on blocklist

Slide 14

Slide 14 text

eliminating all traffic to Mozilla ● telemetry

Slide 15

Slide 15 text

eliminating all traffic to Mozilla ● telemetry wiki.mozilla.org/Firefox/Data_Collection

Slide 16

Slide 16 text

disabling features with big perf impact ● prefetching ● speculative connections

Slide 17

Slide 17 text

disabling useful features ● WebGL ● WebRTC ● DOM Storage

Slide 18

Slide 18 text

disabling features that: ● disabled by default ● prompt you first

Slide 19

Slide 19 text

features to enable

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

privacy.trackingprotection.enabled

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

feeding.cloud.geek.nz/posts/how-tracking-protection-works-in-firefox

Slide 24

Slide 24 text

Do Not Track

Slide 25

Slide 25 text

privacy.donottrackheader.enabled

Slide 26

Slide 26 text

privacy.donottrackheader.enabled

Slide 27

Slide 27 text

features to disable

Slide 28

Slide 28 text

No content

Slide 29

Slide 29 text

media.eme.enabled

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

device.sensors.enabled

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

BatteryManagery { charging: false, chargingTime: Infinity, dischargingTime: 8940, level: 0.59, onchargingchange: null, onchargingtimechange: null, ondischargingtimechange: null, onlevelchange: null }

Slide 37

Slide 37 text

BatteryManagery { charging: false, chargingTime: Infinity, dischargingTime: 8940, level: 0.59, onchargingchange: null, onchargingtimechange: null, ondischargingtimechange: null, onlevelchange: null }

Slide 38

Slide 38 text

BatteryManagery { charging: false, chargingTime: Infinity, dischargingTime: 8940, level: 0.59, onchargingchange: null, onchargingtimechange: null, ondischargingtimechange: null, onlevelchange: null }

Slide 39

Slide 39 text

dom.battery.enabled

Slide 40

Slide 40 text

removed in 52 dom.battery.enabled

Slide 41

Slide 41 text

www.fsf.org www.eff.org

Slide 42

Slide 42 text

www.fsf.org www.eff.org www.netflix.com store.steampowered.com

Slide 43

Slide 43 text

layout.css.visited_links_enabled

Slide 44

Slide 44 text

No content

Slide 45

Slide 45 text

Simple Service Discovery Protocol

Slide 46

Slide 46 text

browser.casting.enabled

Slide 47

Slide 47 text

No content

Slide 48

Slide 48 text

pdfjs.disabled

Slide 49

Slide 49 text

network information

Slide 50

Slide 50 text

navigator.connection.type;

Slide 51

Slide 51 text

navigator.connection.type; bluetooth, cellular, ethernet, none, wifi, wimax, other, mixed, unknown

Slide 52

Slide 52 text

navigator.connection.type; bluetooth, cellular, ethernet, none, wifi, wimax, other, mixed, unknown navigator.connection.downlinkMax;

Slide 53

Slide 53 text

dom.netinfo.enabled

Slide 54

Slide 54 text

media.video_stats.enabled

Slide 55

Slide 55 text

webgl.enable-debug-renderer-info

Slide 56

Slide 56 text

dom.enable_performance

Slide 57

Slide 57 text

features to restrict

Slide 58

Slide 58 text

No content

Slide 59

Slide 59 text

network.cookie.cookieBehavior = 0 network.cookie.thirdparty.sessionOnly = true privacy.clearOnShutdown.cookies = false network.cookie.lifetimePolicy = 3 network.cookie.lifetime.days = 5 feeding.cloud.geek.nz/posts/tweaking-cookies-for-privacy-in-firefox

Slide 60

Slide 60 text

No content

Slide 61

Slide 61 text

network.http.referer.XoriginPolicy = 1

Slide 62

Slide 62 text

network.http.referer.XoriginPolicy = 1 network.http.referer.XOriginTrimmingPolicy = 2 feeding.cloud.geek.nz/posts/tweaking-referrer-for-privacy-in-firefox new in 52

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

No content

Slide 67

Slide 67 text

pre-downloaded lists of URL hash prefixes

Slide 68

Slide 68 text

feeding.cloud.geek.nz/

Slide 69

Slide 69 text

5b31c2702efc7c81e4d197cd80113396 54da10d3315636cccbb536e868ff82a6

Slide 70

Slide 70 text

5b31c2702efc7c81e4d197cd80113396 54da10d3315636cccbb536e868ff82a6

Slide 71

Slide 71 text

5b31c2702efc7c81e4d197cd80113396 54da10d3315636cccbb536e868ff82a6 feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox

Slide 72

Slide 72 text

No content

Slide 73

Slide 73 text

.exe .com .bat .apk .dmg .pl .py .sh .deb .rpm

Slide 74

Slide 74 text

.exe .com .bat .apk .dmg .pl .py .sh .deb .rpm toolkit/components/downloads/ApplicationReputation.cpp

Slide 75

Slide 75 text

filename and size URLs hash of contents locale toolkit/components/downloads/ApplicationReputation.cpp

Slide 76

Slide 76 text

No content

Slide 77

Slide 77 text

browser.safebrowsing.downloads.remote.enabled feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox

Slide 78

Slide 78 text

No content

Slide 79

Slide 79 text

No content

Slide 80

Slide 80 text

No content

Slide 81

Slide 81 text

revealing non-VPN IP address leaking internal IP address

Slide 82

Slide 82 text

revealing non-VPN IP address leaking internal IP address fixed in 51

Slide 83

Slide 83 text

media.peerconnection.ice.default_address_only = true 50 or earlier:

Slide 84

Slide 84 text

media.peerconnection.ice.no_host = true 51 or later: media.peerconnection.ice.default_address_only = true 50 or earlier:

Slide 85

Slide 85 text

other things to keep in mind

Slide 86

Slide 86 text

p@ssW0rd5

Slide 87

Slide 87 text

No content

Slide 88

Slide 88 text

No content

Slide 89

Slide 89 text

No content

Slide 90

Slide 90 text

No content

Slide 91

Slide 91 text

No content

Slide 92

Slide 92 text

No content

Slide 93

Slide 93 text

No content

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

No content

Slide 96

Slide 96 text

user_pref("privacy.trackingprotection.enabled",true); user_pref("privacy.donottrackheader.enabled", true); user_pref("device.sensors.enabled", false); user_pref("media.eme.enabled", false); user_pref("pdfjs.disabled", true); user_pref("browser.casting.enabled", false); user_pref("layout.css.visited_links_enabled", false); user_pref("dom.battery.enabled", false); // Fx < 52 user_pref("dom.netinfo.enabled", false); user_pref("media.video_stats.enabled", false); user_pref("dom.enable_performance", false); user_pref("webgl.enable-debug-renderer-info", false); user_pref("media.peerconnection.ice.default_address_only", true); // Fx < 51 user_pref("media.peerconnection.ice.no_host", true); // Fx >= 51 user_pref("security.pki.sha1_enforcement_level", 2); // Fx < 52 user_pref("network.http.referer.XOriginPolicy", 1); user_pref("privacy.clearOnShutdown.cookies", false); user_pref("network.cookie.cookieBehavior", 0); user_pref("network.cookie.lifetimePolicy", 3); user_pref("network.cookie.lifetime.days", 5); user_pref("network.cookie.thirdparty.sessionOnly", true); user_pref("browser.urlbar.trimURLs", false); ? @fmarier

Slide 97

Slide 97 text

Photo Credits: shooting star: https://www.flickr.com/photos/funcrush/9496927983/ yellow triangle: https://www.flickr.com/photos/tillwe/2974932670/ jail cell: https://www.flickr.com/photos/mikecogh/5997920696 speedbump: https://www.flickr.com/photos/jputnam/9078451876/ cookie: https://www.flickr.com/photos/amagill/34754258/ chromecast: https://www.flickr.com/photos/medithit/10165535814/