SlideShare a Scribd company logo
Hardening Firefox
for Privacy & Security
François Marier <francois@mozilla.com>
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
enable
disable
restrict
enable
disable
restrict
Hardening Firefox for Security and Privacy
eliminating all fingerprinting
eliminating all fingerprinting
eliminating all traffic to Mozilla
eliminating all traffic to Mozilla
support.mozilla.org/kb/how-stop-firefox-making-automatic-connections
eliminating all traffic to Mozilla
●
auto-updates
eliminating all traffic to Mozilla
●
auto-updates
●
add-on blocklist
eliminating all traffic to Mozilla
●
telemetry
eliminating all traffic to Mozilla
●
telemetry
wiki.mozilla.org/Firefox/Data_Collection
disabling features with big perf impact
●
prefetching
●
speculative connections
disabling useful features
●
WebGL
●
WebRTC
●
DOM Storage
disabling features that:
●
disabled by default
●
prompt you first
features to enable
Hardening Firefox for Security and Privacy
privacy.trackingprotection.enabled
Hardening Firefox for Security and Privacy
feeding.cloud.geek.nz/posts/how-tracking-protection-works-in-firefox
Do Not Track
privacy.donottrackheader.enabled
privacy.donottrackheader.enabled
features to disable
Hardening Firefox for Security and Privacy
media.eme.enabled
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
device.sensors.enabled
Hardening Firefox for Security and Privacy
BatteryManagery {
charging: false,
chargingTime: Infinity,
dischargingTime: 8940,
level: 0.59,
onchargingchange: null,
onchargingtimechange: null,
ondischargingtimechange: null,
onlevelchange: null
}
BatteryManagery {
charging: false,
chargingTime: Infinity,
dischargingTime: 8940,
level: 0.59,
onchargingchange: null,
onchargingtimechange: null,
ondischargingtimechange: null,
onlevelchange: null
}
BatteryManagery {
charging: false,
chargingTime: Infinity,
dischargingTime: 8940,
level: 0.59,
onchargingchange: null,
onchargingtimechange: null,
ondischargingtimechange: null,
onlevelchange: null
}
dom.battery.enabled
removed
in 52
dom.battery.enabled
www.fsf.org
www.eff.org
www.fsf.org
www.eff.org
www.netflix.com
store.steampowered.com
layout.css.visited_links_enabled
Hardening Firefox for Security and Privacy
Simple Service
Discovery Protocol
browser.casting.enabled
Hardening Firefox for Security and Privacy
pdfjs.disabled
network information
navigator.connection.type;
navigator.connection.type;
bluetooth, cellular, ethernet, none,
wifi, wimax, other, mixed, unknown
navigator.connection.type;
bluetooth, cellular, ethernet, none,
wifi, wimax, other, mixed, unknown
navigator.connection.downlinkMax;
dom.netinfo.enabled
media.video_stats.enabled
webgl.enable-debug-renderer-info
dom.enable_performance
features to restrict
Hardening Firefox for Security and Privacy
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
Hardening Firefox for Security and Privacy
network.http.referer.XoriginPolicy = 1
network.http.referer.XoriginPolicy = 1
network.http.referer.XOriginTrimmingPolicy = 2
feeding.cloud.geek.nz/posts/tweaking-referrer-for-privacy-in-firefox
new
in 52
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
pre-downloaded lists
of URL hash prefixes
feeding.cloud.geek.nz/
5b31c2702efc7c81e4d197cd80113396
54da10d3315636cccbb536e868ff82a6
5b31c2702efc7c81e4d197cd80113396
54da10d3315636cccbb536e868ff82a6
5b31c2702efc7c81e4d197cd80113396
54da10d3315636cccbb536e868ff82a6
feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox
Hardening Firefox for Security and Privacy
.exe
.com
.bat
.apk
.dmg
.pl
.py
.sh
.deb
.rpm
.exe
.com
.bat
.apk
.dmg
.pl
.py
.sh
.deb
.rpm
toolkit/components/downloads/ApplicationReputation.cpp
filename and size
URLs
hash of contents
locale
toolkit/components/downloads/ApplicationReputation.cpp
Hardening Firefox for Security and Privacy
browser.safebrowsing.downloads.remote.enabled
feeding.cloud.geek.nz/posts/how-safe-browsing-works-in-firefox
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
revealing non-VPN IP address
leaking internal IP address
revealing non-VPN IP address
leaking internal IP address
fixed
in 51
media.peerconnection.ice.default_address_only = true
50 or earlier:
media.peerconnection.ice.no_host = true
51 or later:
media.peerconnection.ice.default_address_only = true
50 or earlier:
other things to
keep in mind
p@ssW0rd5
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
Hardening Firefox for Security and Privacy
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
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/

More Related Content

Hardening Firefox for Security and Privacy