Changes

Jump to: navigation, search

SecurityEngineering/Public Key Pinning

1,714 bytes added, 22:06, 12 May 2014
no edit summary
Certificate pinning Public Key Pinning is a protocol mechanism for sites to specify which certificate authorities have issued valid certs for that site, and for user-agents to reject TLS connections to those sites if the certificate is not issued by a known-good CA. The benefit of certificate pinning is that users cannot be mitm'ed because of a rogue CA not on the site's list (see the Diginotar attack which Chrome detected and we did not: https://blog.mozilla.org/security/2011/08/29/fraudulent-google-com-certificate/).  The feature binds a set of hashes public keys to a domain name such that when connecting to a site using TLS the browser ensures that there is an intersection between the public keys in the computed trust chain and the set of fingerprints associated with that domain. This check is done during the certificate verification phase of the connection, before any data is sent or processed by the browser. In particular we are pinning the sha256 digest of the der encoded subject public key info. In order to reduce rejections, firefox will compute all potential trust chains before deciding that are no valid pins. Currently feature is expected to be done on three phases: # Built-in Pins# Pinning service for addons (including non-volatile storage)# Allowing sites to set up their own pins. There will be three levels of pinning enforcement in the code (integer preference security.cert_pinning.enforcement_level)* 0. Pinning disabled* 1. Allow User MITM (pinning not enforced if the trust anchor is a user inserted CA, this is Chrome's default)* 2. Strict. Pinning is always enforced. == Built in Pins == This is the first stage that and has landed in central {{bug|704204}}.
We are attempting to:
# Pin all of the sites that Chrome already does (Google, Twitter)by importing chromium's pinset.# Pin our own sites after auditing them and cleaning them up, so that our users know that the updates we serve actually come from us. The list of initial mozilla sites that are pinned is being tracked at: https://mana.mozilla.org/wiki/display/services/Mozilla+sites+SSL+Certificate+Authority+roots+sync+with+Gecko+Built-In+Pins
# Pin other popular sites like Facebook that are in good shape already (with their cooperation, of course)
Tracking bug: {{bug|1004350}}
 
 
==Pinning Service ==
 
This will allow addons to start pinning sites for which there is no built-in list and will allow us to have a cleaner mechanism to test new entries to the pinning list.
 
== HPKP Header ==
 
The final state where we perse headers sent by sites to populate the pinning service.
Confirm
76
edits

Navigation menu