Analysis of the Alexa Top 1M sites (October 2016)
Last April, I ran a scan of the Alexa Top 1M websites using the Mozilla Observatory. The results were dire, indicating a broad lack of awareness around modern security technologies such as Content Security Policy, Strict Transport Security, Subresource Integrity, and others.
But that was six months ago. With the Mozilla Observatory being publicly released almost two months ago, I was curious as to whether significant improvement had been made around the internet. After all, in those two months, the Observatory has scanned approximately 1.3M sites, totalling over 2.5M scans.
With that in mind, I ran a new scan of the Alexa Top 1M at the end of October, and here is what I found:
|Technology||April 2016||October 2016||% Change|
|Content Security Policy (CSP)||.005%1 / .012%2||.008%1 / .021%2||+60%|
|Cross-origin Resource Sharing (CORS)4||93.78%||96.21%||+3%|
|HTTP → HTTPS Redirection||5.06%5 / 8.91%6||7.94%5 / 13.29%6||+57%|
|Public Key Pinning (HPKP)||0.43%||0.50%||+16%|
|— HPKP Preloaded7||0.41%||0.47%||+15%|
|Strict Transport Security (HSTS)8||1.75%||2.59%||+48%|
|— HSTS Preloaded7||.158%||.231%||+46%|
|Subresource Integrity (SRI)||0.015%9||0.052%10||+247%|
I'll admit, I was a bit taken aback by the overall improvement across the top million sites, especially as some of these security technologies are almost a decade old.
When we did our initial scan of the top million six months ago, a stunning 97.6% of websites were given a failing grade from the Observatory. Have those results changed since then, given the improvements above?
|Grade||April 2016||October 2016||% Change|
While a decrease of 1.5% in failing grades might seem like only a small improvement, the latest Observatory scan contained 962,011 bg-successful scans. With each percentage point representing nearly ten thousand sites, a drop from 97.6% to 96.09% represents approximately fifteen thousand top websites making significant improvements in their security.
I'm excited for the possibility of seeing further improvements as additional surveys are completed. Please share the Mozilla Observatory and help to make the internet a safer and more secure place for everyone!
- Amongst sites that set cookies
- Disallows foreign origins from reading the domain's contents within user's context
- Redirects from HTTP to HTTPS on the same domain, which allows HSTS to be set
- Redirects from HTTP to HTTPS, regardless of the final domain
- As listed in the Chromium preload list
max-ageset to at least six months
- Percentage is of sites that load scripts from a foreign origin
- Percentage is of sites that load scripts
frame-ancestorsdirective is allowed in lieu of an XFO header
- Strong CSP policy forbidding
'unsafe-inline'is allowed in lieu of an XXSSP header