diff options
author | Gaming4JC <g4jc@openmailbox.org> | 2016-11-24 01:19:18 -0500 |
---|---|---|
committer | Gaming4JC <g4jc@openmailbox.org> | 2016-11-24 01:19:18 -0500 |
commit | 96352a48289236dd6523f6ad55ff471b8bc3b12e (patch) | |
tree | c03130748ba2f3658c917168348a481556d0aa92 /nonprism-testing | |
parent | 54c94a19f33358b42218c0a4c1deb8303c0eb080 (diff) | |
download | abslibre-96352a48289236dd6523f6ad55ff471b8bc3b12e.tar.gz abslibre-96352a48289236dd6523f6ad55ff471b8bc3b12e.tar.bz2 abslibre-96352a48289236dd6523f6ad55ff471b8bc3b12e.zip |
icedove hardening script
Diffstat (limited to 'nonprism-testing')
4 files changed, 267 insertions, 235 deletions
diff --git a/nonprism-testing/icedove-hardened-preferences/PKGBUILD b/nonprism-testing/icedove-hardened-preferences/PKGBUILD index e49e499a5..74d2b5cd9 100644 --- a/nonprism-testing/icedove-hardened-preferences/PKGBUILD +++ b/nonprism-testing/icedove-hardened-preferences/PKGBUILD @@ -10,10 +10,18 @@ license=(MPL) replaces=('icedove-hardened') depends=('icedove') url="https://wiki.parabola.nu/${pkgname%%-*}" -source=('thunderbird-branding.js') -sha512sums=('ad339dc16a7acab325f1a162cda017842c980fcb8ad1b725905947d0afc46959b59160147fd8fa86e2822dc51be4a4e6bf11d404ae19190b89a86459a290fd5e') -whirlpoolsums=('673d8a38650a9f91de8531612d457ba056ce15bf88f147a3dacd6182bd0d4e2697f59f7e13d688b26c944c9799071dabb06a4b1ed9e4ccba264a3ee6c2ef4f6f') +source=('icedove-branding.js' +'icedove-hardened.sh' +'thunderbird-branding.js') +sha512sums=('ad339dc16a7acab325f1a162cda017842c980fcb8ad1b725905947d0afc46959b59160147fd8fa86e2822dc51be4a4e6bf11d404ae19190b89a86459a290fd5e' +'fcbdf286a9f0a363bd5d2f3ed141e8448b7ca4399b8ecb9b7bf07e6e804e4305c937bc2a4b9c391d8c815de1f31fa301672b7fa666ba17feee9528f1c01d9228' +'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e') +whirlpoolsums=('673d8a38650a9f91de8531612d457ba056ce15bf88f147a3dacd6182bd0d4e2697f59f7e13d688b26c944c9799071dabb06a4b1ed9e4ccba264a3ee6c2ef4f6f' +'2a537b66d4885465b1ecd87178027c14699e41b2b7ed1b80f9020254c40d1b69e3e7481175c808a91bd5124974aec8f90b13a392c4e1387c7df86b7675e32783' +'19fa61d75522a4669b44e39c1d2e1726c530232130d407f89afee0964997f7a73e83be698b288febcf88e3e03c4f0757ea8964e59b63d93708b138cc42a66eb3') package() { - install -Dm644 thunderbird-branding.js "$pkgdir"/usr/lib/icedove/defaults/preferences/thunderbird-branding.js + install -Dm644 icedove-branding.js "$pkgdir"/usr/lib/iceweasel/browser/defaults/preferences/icedove-branding.js + install -Dm766 thunderbird-branding.js "$pkgdir"/usr/lib/iceweasel/browser/defaults/preferences/thunderbird-branding.js + install -Dm755 icedove-hardened.sh "$pkgdir"/usr/bin/icedove-hardened } diff --git a/nonprism-testing/icedove-hardened-preferences/icedove-branding.js b/nonprism-testing/icedove-hardened-preferences/icedove-branding.js new file mode 100644 index 000000000..3d652a4e1 --- /dev/null +++ b/nonprism-testing/icedove-hardened-preferences/icedove-branding.js @@ -0,0 +1,231 @@ +pref("app.update.auto", false); +pref("app.update.enabled", false); +pref("app.update.url", "about:blank"); +pref("beacon.enabled", false); +pref("breakpad.reportURL", "about:blank"); +pref("browser.cache.disk.enable", false); +pref("browser.cache.offline.enable", false); +pref("browser.fixup.alternate.enabled", false); +pref("browser.formfill.enable", false); +pref("browser.link.open_newwindow.restriction", 0); // Bug 9881: Open popups in new tabs (to avoid fullscreen popups) +pref("browser.display.use_document_fonts", 0); // Prevent font fingerprinting +pref("browser.download.manager.addToRecentDocs", false); +pref("browser.download.manager.retention", 1); +pref("browser.download.manager.scanWhenDone", false); // prevents AV remote reporting of downloads +pref("browser.download.useDownloadDir", false); +pref("browser.safebrowsing.appRepURL", "about:blank"); +pref("browser.safebrowsing.enabled", false); +pref("browser.safebrowsing.malware.enabled", false); +pref("browser.safebrowsing.provider.mozilla.gethashURL", "about:blank"); +pref("browser.safebrowsing.provider.mozilla.updateURL", "about:blank"); +pref("browser.search.suggest.enabled", false); +pref("browser.search.geoip.url", "about:blank"); +pref("browser.send_pings", false); +pref("browser.formfill.enable", false); +pref("browser.urlbar.autocomplete.enabled", false); +pref("mail.shell.checkDefaultClient", false); +pref("calendar.useragent.extra", ""); // Wipe useragent string. +pref("camera.control.face_detection.enabled", false); +pref("captivedetect.canonicalURL", "about:blank"); +pref("datareporting.healthreport.service.enabled", false); // Yes, all three of these must be set +pref("datareporting.healthreport.uploadEnabled", false); +pref("datareporting.policy.dataSubmissionEnabled", false); +pref("datareporting.healthreport.about.reportUrl", "data:text/plain,"); +pref("device.sensors.enabled", false); +pref("devtools.debugger.remote-enabled", false); // https://developer.mozilla.org/docs/Tools/Remote_Debugging/Debugging_Firefox_Desktop#Enable_remote_debugging +pref("devtools.devices.url", "about:blank"); +pref("devtools.gcli.imgurUploadURL", "about:blank"); +pref("devtools.gcli.jquerySrc", "about:blank"); +pref("devtools.gcli.lodashSrc", "about:blank"); +pref("devtools.gcli.underscoreSrc", "about:blank"); +pref("devtools.remote.wifi.scan", false); // http://forum.top-hat-sec.com/index.php?topic=4951.5;wap2 +pref("devtools.remote.wifi.visible", false); +pref("dom.battery.enabled", false); // fingerprinting due to differing OS implementations +pref("dom.enable_performance", false); +pref("dom.enable_user_timing", false); +pref("dom.event.highrestimestamp.enabled", false); +pref("dom.event.clipboardevents.enabled",false); +pref("dom.gamepad.enabled", false); // bugs.torproject.org/13023 +pref("dom.indexedDB.enabled", false); +pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false); +pref("dom.mozApps.signed_apps_installable_from", "about:blank"); +pref("dom.netinfo.enabled", false); // Network Information API provides general information about the system's connection type (WiFi, cellular, etc.) +pref("dom.network.enabled",false); // fingerprinting due to differing OS implementations +pref("dom.push.enabled", false); +pref("dom.storage.enabled", false); +pref("dom.telephony.enabled", false); // https://wiki.mozilla.org/WebAPI/Security/WebTelephony +pref("dom.vibrator.enabled", false); +pref("dom.vr.enabled", false); +pref("dom.workers.sharedWorkers.enabled", false); // See https://bugs.torproject.org/15562 +pref("dom.idle-observers-api.enabled", false); // disable idle observation +// Don't disable our bundled extensions in the application directory +pref("extensions.autoDisableScopes", 11); +pref("extensions.shownSelectionUI", true); +pref("extensions.blocklist.detailsURL", "about:blank"); +pref("extensions.blocklist.enabled", false); // https://trac.torproject.org/projects/tor/ticket/6734 +pref("extensions.blocklist.itemURL", "about:blank"); +pref("extensions.blocklist.url", "about:blank"); +pref("extensions.bootstrappedAddons", "{}"); +pref("extensions.databaseSchema", 3); +pref("extensions.enabledScopes", 1); +pref("extensions.getAddons.cache.enabled", false); // https://blog.mozilla.org/addons/how-to-opt-out-of-add-on-metadata-updates/ +pref("extensions.getAddons.get.url", "about:blank"); +pref("extensions.getAddons.getWithPerformance.url", "about:blank"); +pref("extensions.getAddons.link.url", "https://directory.fsf.org/wiki/Icedove"); +pref("extensions.getAddons.recommended.url", "about:blank"); +pref("extensions.getAddons.search.browseURL", "https://directory.fsf.org/wiki/Icedove"); +pref("extensions.getAddons.search.url", "https://directory.fsf.org/wiki/Icedove"); +pref("extensions.webservice.discoverURL", "https://directory.fsf.org/wiki/Icedove"); +pref("extensions.pendingOperations", false); +pref("extensions.update.autoUpdateDefault", false); +pref("extensions.update.background.url", "about:blank"); +pref("extensions.update.enabled", false); // Users can run their own updates on addons, fingerprints installed addons. +pref("extensions.enigmail.addHeaders", false); +pref("extensions.engimail.useDefaultComment", true); +pref("extensions.enigmail.agentAdditionalParam", "--no-emit-version --no-comments --display-charset utf-8 --keyserver-options http-proxy=socks5h://127.0.0.1:9050"); +pref("extensions.enigmail.mimeHashAlgorithm", 5); +pref("general.useragent.override", ""); +pref("geo.enabled", false); +pref("gfx.downloadable_fonts.fallback_delay", -1); +pref("javascript.enabled", false); // We don't need to run JS in an e-mail client. Use a browser.. +pref("javascript.options.asmjs", false); // Multiple security advisories, low level js +pref("keyword.enabled", false); +pref("layers.acceleration.disabled", true); +pref("layout.css.visited_links_enabled", false); +pref("lightweightThemes.update.enabled", false); // We can update our themes manually, may fingerprint the user. +pref("mail.instrumentation.askUser", false); +pref("mail.instrumentation.postUrl", "about:blank"); +pref("mail.instrumentation.userOptedIn", false); +pref("mailnews.start_page.enabled", false); // http://anonymous-proxy-servers.net/en/help/thunderbird.html +pref("mailnews.start_page.override_url", "http://wiki.debian.org/Icedove/WhatsNew45"); +pref("mailnews.send_default_charset", "UTF-8"); +pref("mailnews.send_plaintext_flowed", false); +pref("mailnews.display.prefer_plaintext", true); +pref("mailnews.display.disallow_mime_handlers", 3); // http://www.bucksch.org/1/projects/mozilla/108153/ +pref("mailnews.display.html_as", 1); // Convert HTML to text and then back again. +//pref("mailnews.reply_header_type", 1); +pref("mailnews.reply_header_authorwrote", "%s"); // https://lists.torproject.org/pipermail/tor-talk/2012-May/024395.html +//pref("mailnews.reply_header_authorwrotesingle", "#1"); +pref("mailnews.headers.showSender", true); +pref("mailnews.message_display.allow_plugins", false); // Disable plugin support. +pref("mailnews.migration.header_addons_url", ""); +pref("mailnews.messageid_browser.url", ""); +pref("mailnews.display.original_date", false); // Don't convert to our local date. This may matter in a reply, etc. +pref("mail.cloud_files.enabled", false); // Disable "Cloud" advertisements +pref("mail.cloud_files.inserted_urls.footer.link", ""); +pref("mail.smtpserver.default.hello_argument", "[127.0.0.1]"); // Prevent hostname leaks. +//pref("mail.provider.enabled", false); // Disable Thunderbird's 'Get new account' wizard. +pref("mail.inline_attachments", false); // Disable inline attachments. +pref("mail.addr_book.mapit_url.format", ""); +pref("mail.addr_book.mapit_url.1.format", ""); // Pushes addressbook info to GoogleMaps without HTTPS unless changed or disabled http://www-archive.mozilla.org/mailnews/arch/addrbook/hiddenprefs.html +pref("mail.addr_book.mapit_url.2.format", ""); +pref("mail.server.default.use_idle", false); // Do not IDLE (disable push mail). +pref("media.autoplay.enabled", false); +pref("media.cache_size", 0); +pref("media.getusermedia.screensharing.allowed_domains", ""); // We really don't want to be promoting Cisco and Cloudflare in a whitelist here. +pref("media.getusermedia.screensharing.enabled", false); +pref("media.gmp-manager.url", "about:blank"); // Disable Gecko media plugins: https://wiki.mozilla.org/GeckoMediaPlugins +pref("media.gmp-manager.url.override", "data:text/plain,"); +pref("media.navigator.enabled", false); +pref("media.peerconnection.enabled", false); // Disable WebRTC interfaces +pref("media.peerconnection.ice.default_address_only", true); +pref("media.video_stats.enabled", false); +pref("media.webspeech.recognition.enable", false); +pref("media.track.enabled", false); +pref("network.allow-experiments", false); +pref("network.captive-portal-service.enabled", false); +pref("network.cookie.cookieBehavior", 1); +pref("network.cookie.lifetimePolicy", 2); // http://kb.mozillazine.org/Network.cookie.lifetimePolicy +pref("network.dns.disablePrefetch", true); +pref("network.http.altsvc.enabled", false); +pref("network.http.altsvc.oe", false); // https://trac.torproject.org/projects/tor/ticket/16673 +pref("network.http.connection-retry-timeout", 0); +pref("network.http.max-persistent-connections-per-proxy", 256); +pref("network.http.pipelining", true); +pref("network.http.pipelining.aggressive", true); +pref("network.http.pipelining.max-optimistic-requests", 3); +pref("network.http.pipelining.maxrequests", 10); +pref("network.http.pipelining.maxrequests", 12); +pref("network.http.pipelining.read-timeout", 60000); +pref("network.http.pipelining.reschedule-timeout", 15000); +pref("network.http.pipelining.ssl", true); +pref("network.http.proxy.pipelining", true); +pref("network.http.referer.spoofSource", true); +pref("network.http.sendRefererHeader", 2); +pref("network.http.sendSecureXSiteReferrer", false); +pref("network.http.spdy.enabled", false); // Stores state and may have keepalive issues (both fixable) +pref("network.http.spdy.enabled.v2", false); // Seems redundant, but just in case +pref("network.http.spdy.enabled.v3", false); // Seems redundant, but just in case +pref("network.http.speculative-parallel-limit", 0); +pref("network.jar.block-remote-files", true); // https://bugzilla.mozilla.org/show_bug.cgi?id=1173171 +pref("network.jar.open-unsafe-types", false); +pref("network.manage-offline-status", false); // https://trac.torproject.org/projects/tor/ticket/18945 +pref("network.prefetch-next", false); +pref("network.protocol-handler.warn-external.http", true); +pref("network.protocol-handler.warn-external.https", true); +pref("network.protocol-handler.warn-external.ftp", true); +pref("network.protocol-handler.warn-external.file", true); +pref("network.protocol-handler.warn-external-default", true); +pref("network.protocol-handler.external-default", false); +pref("network.protocol-handler.external.mailto", false); +pref("network.protocol-handler.external.news", false); +pref("network.protocol-handler.external.nntp", false); +pref("network.protocol-handler.external.snews", false); +pref("network.protocol-handler.warn-external.mailto", true); +pref("network.protocol-handler.warn-external.news", true); +pref("network.protocol-handler.warn-external.nntp", true); +pref("network.protocol-handler.warn-external.snews", true); +pref("network.proxy.no_proxies_on", ""); // For fingerprinting and local service vulns (#10419) +pref("network.proxy.socks", "127.0.0.1"); +pref("network.proxy.socks_port", 9050); +pref("network.proxy.socks_remote_dns", true); +pref("network.proxy.type", 0); +pref("network.security.ports.banned", "9050,9051,9150,9151"); +pref("network.websocket.max-connections", 0); +pref("network.websocket.enabled", false); +pref("pfs.datasource.url", "about:blank"); +pref("plugins.click_to_play", true); +pref("plugins.crash.supportUrl", "about:blank"); +pref("privacy.trackingprotection.enabled", true); +pref("purple.logging.log_chats", false); // Disable messenger logging and auto-start +pref("purple.logging.log_ims", false); +pref("purple.logging.log_system", false); +pref("purple.conversations.im.send_typing", false); +pref("messenger.startup.action", 0); +pref("messenger.conversations.autoAcceptChatInvitations", 0); // Ignore invitations; do not automatically accept them. +pref("rss.display.prefer_plaintext", true); +pref("rss.display.disallow_mime_handlers", 3); +pref("rss.display.html_as", 1); +pref("security.OCSP.enabled", 0); +pref("security.OCSP.require", false); +//pref("security.ask_for_password", 0); +pref("security.cert_pinning.enforcement_level", 2); // https://trac.torproject.org/projects/tor/ticket/16206 +pref("security.enable_tls_session_tickets", false); +pref("security.mixed_content.block_active_content", true); // Note: Can be disabled for user experience. https://bugzilla.mozilla.org/show_bug.cgi?id=878890 +pref("security.nocertdb", false); +pref("security.ssl.disable_session_identifiers", true); +pref("security.ssl.enable_false_start", true); +pref("security.ssl.require_safe_negotiation", true); +pref("security.ssl.treat_unsafe_negotiation_as_broken", true); +pref("security.ssl3.rsa_seed_sha", true); +pref("security.tls.insecure_fallback_hosts.use_static_list", false); +pref("security.tls.unrestricted_rc4_fallback", false); +pref("security.tls.version.max", 3); +pref("security.tls.version.min", 1); +pref("security.warn_entering_weak", true); +pref("security.warn_submit_insecure", true); +pref("signon.autofillForms", false); // disable cross-site form exposure from password manager - http://kb.mozillazine.org/Signon.autofillForms +pref("social.directories", ""); +pref("social.enabled", false); +pref("social.remote-install.enabled", false); // Disable Social API for content +pref("social.shareDirectory", ""); +pref("social.toast-notifications.enabled", false); +pref("social.whitelist", ""); +pref("toolkit.telemetry.enabled", false); +pref("toolkit.telemetry.server", "about:blank"); +pref("ui.key.menuAccessKeyFocuses", false); +pref("webgl.disable-extensions", true); +pref("webgl.disabled", true); +pref("webgl.min_capability_mode", true); +pref("xpinstall.signatures.required", true); // Requires AMO signing key for addons +pref("xpinstall.whitelist.add", ""); diff --git a/nonprism-testing/icedove-hardened-preferences/icedove-hardened.sh b/nonprism-testing/icedove-hardened-preferences/icedove-hardened.sh new file mode 100755 index 000000000..86c31935a --- /dev/null +++ b/nonprism-testing/icedove-hardened-preferences/icedove-hardened.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +############################################## +# IceDove-Hardened Jail and Cleaner Script # +############################################## +echo "Closing any other instances of IceDove to avoid crashes..." +pkill -x icedove +wait +echo "Copying Hardened Prefs..." +cp /usr/lib/icedove/browser/defaults/preferences/icedove-branding.js /usr/lib/icedove/browser/defaults/preferences/thunderbird-branding.js +wait +echo "Waking the IceDove..." + +# Trap cleaner function for IceDove exit cleaning +function finish { +echo "Removing hardened preferences..." +echo "" > /usr/lib/icedove/browser/defaults/preferences/thunderbird-branding.js + } + +## Firejail IceDove startup +/usr/bin/firejail --profile=/etc/icedove.profile --noroot --nogroups --caps.drop=all --private-etc=/etc --private-bin=bash,sed,ls,cat,icedove --private-tmp /usr/bin/icedove + +## Exiting IceDove triggers the trap +trap finish EXIT
\ No newline at end of file diff --git a/nonprism-testing/icedove-hardened-preferences/thunderbird-branding.js b/nonprism-testing/icedove-hardened-preferences/thunderbird-branding.js index 3d652a4e1..e69de29bb 100644 --- a/nonprism-testing/icedove-hardened-preferences/thunderbird-branding.js +++ b/nonprism-testing/icedove-hardened-preferences/thunderbird-branding.js @@ -1,231 +0,0 @@ -pref("app.update.auto", false); -pref("app.update.enabled", false); -pref("app.update.url", "about:blank"); -pref("beacon.enabled", false); -pref("breakpad.reportURL", "about:blank"); -pref("browser.cache.disk.enable", false); -pref("browser.cache.offline.enable", false); -pref("browser.fixup.alternate.enabled", false); -pref("browser.formfill.enable", false); -pref("browser.link.open_newwindow.restriction", 0); // Bug 9881: Open popups in new tabs (to avoid fullscreen popups) -pref("browser.display.use_document_fonts", 0); // Prevent font fingerprinting -pref("browser.download.manager.addToRecentDocs", false); -pref("browser.download.manager.retention", 1); -pref("browser.download.manager.scanWhenDone", false); // prevents AV remote reporting of downloads -pref("browser.download.useDownloadDir", false); -pref("browser.safebrowsing.appRepURL", "about:blank"); -pref("browser.safebrowsing.enabled", false); -pref("browser.safebrowsing.malware.enabled", false); -pref("browser.safebrowsing.provider.mozilla.gethashURL", "about:blank"); -pref("browser.safebrowsing.provider.mozilla.updateURL", "about:blank"); -pref("browser.search.suggest.enabled", false); -pref("browser.search.geoip.url", "about:blank"); -pref("browser.send_pings", false); -pref("browser.formfill.enable", false); -pref("browser.urlbar.autocomplete.enabled", false); -pref("mail.shell.checkDefaultClient", false); -pref("calendar.useragent.extra", ""); // Wipe useragent string. -pref("camera.control.face_detection.enabled", false); -pref("captivedetect.canonicalURL", "about:blank"); -pref("datareporting.healthreport.service.enabled", false); // Yes, all three of these must be set -pref("datareporting.healthreport.uploadEnabled", false); -pref("datareporting.policy.dataSubmissionEnabled", false); -pref("datareporting.healthreport.about.reportUrl", "data:text/plain,"); -pref("device.sensors.enabled", false); -pref("devtools.debugger.remote-enabled", false); // https://developer.mozilla.org/docs/Tools/Remote_Debugging/Debugging_Firefox_Desktop#Enable_remote_debugging -pref("devtools.devices.url", "about:blank"); -pref("devtools.gcli.imgurUploadURL", "about:blank"); -pref("devtools.gcli.jquerySrc", "about:blank"); -pref("devtools.gcli.lodashSrc", "about:blank"); -pref("devtools.gcli.underscoreSrc", "about:blank"); -pref("devtools.remote.wifi.scan", false); // http://forum.top-hat-sec.com/index.php?topic=4951.5;wap2 -pref("devtools.remote.wifi.visible", false); -pref("dom.battery.enabled", false); // fingerprinting due to differing OS implementations -pref("dom.enable_performance", false); -pref("dom.enable_user_timing", false); -pref("dom.event.highrestimestamp.enabled", false); -pref("dom.event.clipboardevents.enabled",false); -pref("dom.gamepad.enabled", false); // bugs.torproject.org/13023 -pref("dom.indexedDB.enabled", false); -pref("dom.ipc.plugins.flash.subprocess.crashreporter.enabled", false); -pref("dom.mozApps.signed_apps_installable_from", "about:blank"); -pref("dom.netinfo.enabled", false); // Network Information API provides general information about the system's connection type (WiFi, cellular, etc.) -pref("dom.network.enabled",false); // fingerprinting due to differing OS implementations -pref("dom.push.enabled", false); -pref("dom.storage.enabled", false); -pref("dom.telephony.enabled", false); // https://wiki.mozilla.org/WebAPI/Security/WebTelephony -pref("dom.vibrator.enabled", false); -pref("dom.vr.enabled", false); -pref("dom.workers.sharedWorkers.enabled", false); // See https://bugs.torproject.org/15562 -pref("dom.idle-observers-api.enabled", false); // disable idle observation -// Don't disable our bundled extensions in the application directory -pref("extensions.autoDisableScopes", 11); -pref("extensions.shownSelectionUI", true); -pref("extensions.blocklist.detailsURL", "about:blank"); -pref("extensions.blocklist.enabled", false); // https://trac.torproject.org/projects/tor/ticket/6734 -pref("extensions.blocklist.itemURL", "about:blank"); -pref("extensions.blocklist.url", "about:blank"); -pref("extensions.bootstrappedAddons", "{}"); -pref("extensions.databaseSchema", 3); -pref("extensions.enabledScopes", 1); -pref("extensions.getAddons.cache.enabled", false); // https://blog.mozilla.org/addons/how-to-opt-out-of-add-on-metadata-updates/ -pref("extensions.getAddons.get.url", "about:blank"); -pref("extensions.getAddons.getWithPerformance.url", "about:blank"); -pref("extensions.getAddons.link.url", "https://directory.fsf.org/wiki/Icedove"); -pref("extensions.getAddons.recommended.url", "about:blank"); -pref("extensions.getAddons.search.browseURL", "https://directory.fsf.org/wiki/Icedove"); -pref("extensions.getAddons.search.url", "https://directory.fsf.org/wiki/Icedove"); -pref("extensions.webservice.discoverURL", "https://directory.fsf.org/wiki/Icedove"); -pref("extensions.pendingOperations", false); -pref("extensions.update.autoUpdateDefault", false); -pref("extensions.update.background.url", "about:blank"); -pref("extensions.update.enabled", false); // Users can run their own updates on addons, fingerprints installed addons. -pref("extensions.enigmail.addHeaders", false); -pref("extensions.engimail.useDefaultComment", true); -pref("extensions.enigmail.agentAdditionalParam", "--no-emit-version --no-comments --display-charset utf-8 --keyserver-options http-proxy=socks5h://127.0.0.1:9050"); -pref("extensions.enigmail.mimeHashAlgorithm", 5); -pref("general.useragent.override", ""); -pref("geo.enabled", false); -pref("gfx.downloadable_fonts.fallback_delay", -1); -pref("javascript.enabled", false); // We don't need to run JS in an e-mail client. Use a browser.. -pref("javascript.options.asmjs", false); // Multiple security advisories, low level js -pref("keyword.enabled", false); -pref("layers.acceleration.disabled", true); -pref("layout.css.visited_links_enabled", false); -pref("lightweightThemes.update.enabled", false); // We can update our themes manually, may fingerprint the user. -pref("mail.instrumentation.askUser", false); -pref("mail.instrumentation.postUrl", "about:blank"); -pref("mail.instrumentation.userOptedIn", false); -pref("mailnews.start_page.enabled", false); // http://anonymous-proxy-servers.net/en/help/thunderbird.html -pref("mailnews.start_page.override_url", "http://wiki.debian.org/Icedove/WhatsNew45"); -pref("mailnews.send_default_charset", "UTF-8"); -pref("mailnews.send_plaintext_flowed", false); -pref("mailnews.display.prefer_plaintext", true); -pref("mailnews.display.disallow_mime_handlers", 3); // http://www.bucksch.org/1/projects/mozilla/108153/ -pref("mailnews.display.html_as", 1); // Convert HTML to text and then back again. -//pref("mailnews.reply_header_type", 1); -pref("mailnews.reply_header_authorwrote", "%s"); // https://lists.torproject.org/pipermail/tor-talk/2012-May/024395.html -//pref("mailnews.reply_header_authorwrotesingle", "#1"); -pref("mailnews.headers.showSender", true); -pref("mailnews.message_display.allow_plugins", false); // Disable plugin support. -pref("mailnews.migration.header_addons_url", ""); -pref("mailnews.messageid_browser.url", ""); -pref("mailnews.display.original_date", false); // Don't convert to our local date. This may matter in a reply, etc. -pref("mail.cloud_files.enabled", false); // Disable "Cloud" advertisements -pref("mail.cloud_files.inserted_urls.footer.link", ""); -pref("mail.smtpserver.default.hello_argument", "[127.0.0.1]"); // Prevent hostname leaks. -//pref("mail.provider.enabled", false); // Disable Thunderbird's 'Get new account' wizard. -pref("mail.inline_attachments", false); // Disable inline attachments. -pref("mail.addr_book.mapit_url.format", ""); -pref("mail.addr_book.mapit_url.1.format", ""); // Pushes addressbook info to GoogleMaps without HTTPS unless changed or disabled http://www-archive.mozilla.org/mailnews/arch/addrbook/hiddenprefs.html -pref("mail.addr_book.mapit_url.2.format", ""); -pref("mail.server.default.use_idle", false); // Do not IDLE (disable push mail). -pref("media.autoplay.enabled", false); -pref("media.cache_size", 0); -pref("media.getusermedia.screensharing.allowed_domains", ""); // We really don't want to be promoting Cisco and Cloudflare in a whitelist here. -pref("media.getusermedia.screensharing.enabled", false); -pref("media.gmp-manager.url", "about:blank"); // Disable Gecko media plugins: https://wiki.mozilla.org/GeckoMediaPlugins -pref("media.gmp-manager.url.override", "data:text/plain,"); -pref("media.navigator.enabled", false); -pref("media.peerconnection.enabled", false); // Disable WebRTC interfaces -pref("media.peerconnection.ice.default_address_only", true); -pref("media.video_stats.enabled", false); -pref("media.webspeech.recognition.enable", false); -pref("media.track.enabled", false); -pref("network.allow-experiments", false); -pref("network.captive-portal-service.enabled", false); -pref("network.cookie.cookieBehavior", 1); -pref("network.cookie.lifetimePolicy", 2); // http://kb.mozillazine.org/Network.cookie.lifetimePolicy -pref("network.dns.disablePrefetch", true); -pref("network.http.altsvc.enabled", false); -pref("network.http.altsvc.oe", false); // https://trac.torproject.org/projects/tor/ticket/16673 -pref("network.http.connection-retry-timeout", 0); -pref("network.http.max-persistent-connections-per-proxy", 256); -pref("network.http.pipelining", true); -pref("network.http.pipelining.aggressive", true); -pref("network.http.pipelining.max-optimistic-requests", 3); -pref("network.http.pipelining.maxrequests", 10); -pref("network.http.pipelining.maxrequests", 12); -pref("network.http.pipelining.read-timeout", 60000); -pref("network.http.pipelining.reschedule-timeout", 15000); -pref("network.http.pipelining.ssl", true); -pref("network.http.proxy.pipelining", true); -pref("network.http.referer.spoofSource", true); -pref("network.http.sendRefererHeader", 2); -pref("network.http.sendSecureXSiteReferrer", false); -pref("network.http.spdy.enabled", false); // Stores state and may have keepalive issues (both fixable) -pref("network.http.spdy.enabled.v2", false); // Seems redundant, but just in case -pref("network.http.spdy.enabled.v3", false); // Seems redundant, but just in case -pref("network.http.speculative-parallel-limit", 0); -pref("network.jar.block-remote-files", true); // https://bugzilla.mozilla.org/show_bug.cgi?id=1173171 -pref("network.jar.open-unsafe-types", false); -pref("network.manage-offline-status", false); // https://trac.torproject.org/projects/tor/ticket/18945 -pref("network.prefetch-next", false); -pref("network.protocol-handler.warn-external.http", true); -pref("network.protocol-handler.warn-external.https", true); -pref("network.protocol-handler.warn-external.ftp", true); -pref("network.protocol-handler.warn-external.file", true); -pref("network.protocol-handler.warn-external-default", true); -pref("network.protocol-handler.external-default", false); -pref("network.protocol-handler.external.mailto", false); -pref("network.protocol-handler.external.news", false); -pref("network.protocol-handler.external.nntp", false); -pref("network.protocol-handler.external.snews", false); -pref("network.protocol-handler.warn-external.mailto", true); -pref("network.protocol-handler.warn-external.news", true); -pref("network.protocol-handler.warn-external.nntp", true); -pref("network.protocol-handler.warn-external.snews", true); -pref("network.proxy.no_proxies_on", ""); // For fingerprinting and local service vulns (#10419) -pref("network.proxy.socks", "127.0.0.1"); -pref("network.proxy.socks_port", 9050); -pref("network.proxy.socks_remote_dns", true); -pref("network.proxy.type", 0); -pref("network.security.ports.banned", "9050,9051,9150,9151"); -pref("network.websocket.max-connections", 0); -pref("network.websocket.enabled", false); -pref("pfs.datasource.url", "about:blank"); -pref("plugins.click_to_play", true); -pref("plugins.crash.supportUrl", "about:blank"); -pref("privacy.trackingprotection.enabled", true); -pref("purple.logging.log_chats", false); // Disable messenger logging and auto-start -pref("purple.logging.log_ims", false); -pref("purple.logging.log_system", false); -pref("purple.conversations.im.send_typing", false); -pref("messenger.startup.action", 0); -pref("messenger.conversations.autoAcceptChatInvitations", 0); // Ignore invitations; do not automatically accept them. -pref("rss.display.prefer_plaintext", true); -pref("rss.display.disallow_mime_handlers", 3); -pref("rss.display.html_as", 1); -pref("security.OCSP.enabled", 0); -pref("security.OCSP.require", false); -//pref("security.ask_for_password", 0); -pref("security.cert_pinning.enforcement_level", 2); // https://trac.torproject.org/projects/tor/ticket/16206 -pref("security.enable_tls_session_tickets", false); -pref("security.mixed_content.block_active_content", true); // Note: Can be disabled for user experience. https://bugzilla.mozilla.org/show_bug.cgi?id=878890 -pref("security.nocertdb", false); -pref("security.ssl.disable_session_identifiers", true); -pref("security.ssl.enable_false_start", true); -pref("security.ssl.require_safe_negotiation", true); -pref("security.ssl.treat_unsafe_negotiation_as_broken", true); -pref("security.ssl3.rsa_seed_sha", true); -pref("security.tls.insecure_fallback_hosts.use_static_list", false); -pref("security.tls.unrestricted_rc4_fallback", false); -pref("security.tls.version.max", 3); -pref("security.tls.version.min", 1); -pref("security.warn_entering_weak", true); -pref("security.warn_submit_insecure", true); -pref("signon.autofillForms", false); // disable cross-site form exposure from password manager - http://kb.mozillazine.org/Signon.autofillForms -pref("social.directories", ""); -pref("social.enabled", false); -pref("social.remote-install.enabled", false); // Disable Social API for content -pref("social.shareDirectory", ""); -pref("social.toast-notifications.enabled", false); -pref("social.whitelist", ""); -pref("toolkit.telemetry.enabled", false); -pref("toolkit.telemetry.server", "about:blank"); -pref("ui.key.menuAccessKeyFocuses", false); -pref("webgl.disable-extensions", true); -pref("webgl.disabled", true); -pref("webgl.min_capability_mode", true); -pref("xpinstall.signatures.required", true); // Requires AMO signing key for addons -pref("xpinstall.whitelist.add", ""); |