<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/does-congress-really-care-about-your-privacy/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/"> R – rud.is</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>I apologize up-front for using bad words in this post.</p>
<p>Said bad words include “Facebook”, “Mark Zuckerberg” and many referrals to entities within the U.S. Government. Given the topic, it cannot be helped.</p>
<p>I’ve also left the <code>R</code> tag on this despite only showing some ggplot2 plots and Markdown tables. See the end of the post for how to get access to the code &amp; data. <code>R</code> was used solely and extensively for the work behind the words.</p>
<hr>
<p>This week Congress put on a show as they summoned the current Facebook CEO — Mark Zuckerberg — down to Washington, D.C. to demonstrate how little most of them know about how the modern internet and social networks actually work plus chest-thump to prove to their constituents they really and truly care about <em>you</em>.</p>
<p>These Congress-critters offered such proof in the guise of railing against Facebook for how they’ve handled your data. Note that I should really say <em>our</em> data since they do have an extensive profile database on me and most everyone else even if they’re not Facebook platform users (full disclosure: I do not have a Facebook account).</p>
<p>Ostensibly, this data-mishandling impacted your privacy. Most of the committee members wanted any constituent viewers to come away believing they and their fellow Congress-critters truly care about <em>your</em> privacy.</p>
<p>Fortunately, we have a few ways to measure this “caring” and the remainder of this post will explore how much members of the U.S. House and Senate care about your privacy when you visit their official <code>.gov</code> web sites. Future posts may explore campaign web sites and other metrics, but what better place to show they care about you then right there in their digital houses.</p>
<h3>Privacy Primer</h3>
<p>When you visit a web site with any browser, the main URL pulls in resources to aid in the composition and functionality of the page. These could be:</p>
<ul>
<li>HTML (the main page is very likely HTML unless it’s just a media URL)</li>
<li>images (<code>png</code>, <code>jpg</code>, <code>gif</code>, “svg”, etc), </li>
<li>fonts</li>
<li>CSS (the “style sheet” that tells the browser how to decorate and position elements on the page)</li>
<li>binary objects (such as embedded PDF files or “protocol buffer” content)</li>
<li>XML or JSON </li>
<li>JavaScript</li>
</ul>
<p>(plus some others)</p>
<p>When you go to, say, <code>www.example.com</code> the site does not have to load all the resources from <code>example.com</code> domains. In fact, it’s rare to find a modern site which does not use resources from one or more third party sites.</p>
<p>When each resource is loaded (generally) some information about you goes along for the ride. At a minimum, the request time and source (your) IP address is exposed and — unless you’re <em>really</em> careful/paranoid — the referring site, browser configuration and even cookies are even available to the third party sites. It does not take many of these data points to (pretty much) uniquely identify you. And, this is just for “benign” content like images. We’ll get to JavaScript in a bit.</p>
<p>As you move along the web, these third-party touch-points add up. To demonstrate this, I did my best to de-privatize my browser and OS configuration and visited 12 web sites while keeping a fresh install of <a rel="nofollow" href="https://addons.mozilla.org/en-US/firefox/addon/lightbeam/" target="_blank">Firefox Lightbeam</a> running. Here’s the result:</p>
<p><img data-orig-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/privacy-final.png?fit=1810%2C1576&amp;ssl=1" data-orig-size="1810,1576" data-medium-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/privacy-final.png?fit=300%2C261&amp;ssl=1" data-attachment-id="9588" data-image-meta="{" data-image-description="" src="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/privacy-final.png?resize=402%2C350&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/privacy-final/" data-large-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/privacy-final.png?fit=530%2C461&amp;ssl=1" alt="" data-image-title="privacy-final" width="402" data-comments-opened="1" class="wp-image-9588" data-recalc-dims="1" height="350"></p>
<p>Each main circle is a distinct/main site and the triangles are resources the site tried to load. The red triangles indicate a common third-party resource that was loaded by two or more sites. Each of those red triangles knows where you’ve been (again, unless you’ve been very careful/paranoid) and can use that information to enhance their knowledge about you.</p>
<p>It gets a bit worse with JavaScript content since a much stronger fingerprint can be created for you (you can learn more about fingerprints at this <a rel="nofollow" href="https://panopticlick.eff.org/" target="_blank">spiffy EFF site</a>). Plus, JavaScript code can try to pilfer cookies, “hack” the browser, serve up malicious adverts, measure time-on-site, and even enlist you in a <a rel="nofollow" href="https://www.extremetech.com/computing/257786-browser-cryptocurrency-mining-exploding-across-web" target="_blank">cryptomining army</a>.</p>
<p>There are other issues with trusting loaded browser content, but we’ll cover that a bit further into the investigation.</p>
<h3>Measuring “Caring”</h3>
<p>The word “privacy” was used over 100 times each day by both Zuckerberg and our Congress-critters. Senators and House members made it pretty clear Facebook should care more about your privacy. Implicit in said posit is that they, themselves, <em>must</em> care about your privacy. I’m sure they’ll be glad to point out all along the midterm campaign trails just how much they’re doing to protect <em>your</em> privacy.</p>
<p>We don’t just have to take their word for it. After berating Facebook’s chief college dropout and chastising the largest social network on the planet we can see just how much of “you” these representatives give to Facebook (and other sites) and also how much they protect you when you decide to pay them[<a rel="nofollow" href="https://www.senate.gov/general/contact_information/senators_cfm.cfm" target="_blank">†</a>] [<a rel="nofollow" href="https://www.house.gov/representatives" target="_blank">‡</a>] a digital visit.</p>
<p>For this metrics experiment, I built a crawler using <a rel="nofollow" href="https://r-project.org/" target="_blank">R</a> and my <a rel="nofollow" href="https://github.com/hrbrmstr/splashr/" target="_blank"><code>splashr</code><img alt="🔗" src="https://i2.wp.com/s.w.org/images/core/emoji/2.4/72x72/1f517.png?w=456&ssl=1" class="wp-smiley" data-recalc-dims="1"></a> package which, in turn, uses <a rel="nofollow" href="https://github.com/scrapinghub/splash" target="_blank">ScrapingHub’s open source <code>Splash</code></a>. Splash is an automation framework that lets you programmatically visit a site just like a human would with a real browser.</p>
<p>Normally when one scrapes content from the internet they’re just grabbing the plain, single HTML file that is at the target of a URL. <code>Splash</code> lets us behave like a browser and capture all the resources — images, CSS, fonts, JavaScript — the site loads and will also <em>execute</em> any JavaScript, so it will also capture resources each script may itself load.</p>
<p>By capturing the <em>entire</em> browser experience for the main page of each member of Congress we can get a pretty good idea of just how much each one cares about your digital privacy, and just how much they <em>secretly love Facebook</em>.</p>
<p>Let’s take a look, first, at where you go when you digitally visit a Congress-critter.</p>
<h3>Network/Hosting/DNS</h3>
<p>Each House and Senate member has an <em>official</em> (not campaign) site that is hosted on a <code>.gov</code> domain and served up from a handful of IP addresses across the following (<code>n</code> is the number of Congress-critter web sites):</p>
<table>
<thead>
<tr>
<th align="left">asn</th>
<th align="left">aso</th>
<th align="right">n</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">AS5511</td>
<td align="left">Orange</td>
<td align="right">425</td>
</tr>
<tr>
<td align="left">AS7016</td>
<td align="left">Comcast Cable Communications, LLC</td>
<td align="right">95</td>
</tr>
<tr>
<td align="left">AS20940</td>
<td align="left">Akamai International B.V.</td>
<td align="right">13</td>
</tr>
<tr>
<td align="left">AS1999</td>
<td align="left">U.S. House of Representatives</td>
<td align="right">6</td>
</tr>
<tr>
<td align="left">AS7843</td>
<td align="left">Time Warner Cable Internet LLC</td>
<td align="right">1</td>
</tr>
<tr>
<td align="left">AS16625</td>
<td align="left">Akamai Technologies, Inc.</td>
<td align="right">1</td>
</tr>
</tbody>
</table>
<p>“Orange” is really Akamai and Akamai is a <em>giant</em> content delivery network which helps web sites efficiently provide content to your browser and can offer Denial of Service (DoS) protection. Most sites are behind Akamai, which means you “touch” Akamai every time you visit the site. They know you were there, but I know a sufficient body of folks who work at Akamai and I’m <em>fairly</em> certain they’re not <em>too</em> evil. Virtually no representative solely uses House/Senate infrastructure, but this is almost a necessity given how easy it is to take down a site with a DoS attack and how polarized politics is in America.</p>
<p>To get to those IP addresses, DNS names like <code>www.king.senate.gov</code> (one of the Senators from my state) needs to be translated to IP addresses. DNS queries are also data gold mines and everyone from your ISP to the DNS server that knows the name-to-IP mapping likely sees your IP address. Here are the DNS servers that serve up the directory lookups for all of the House and Senate domains:</p>
<table>
<thead>
<tr>
<th align="left">nameserver</th>
<th align="left">gov_hosted</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">e4776.g.akamaiedge.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">wc.house.gov.edgekey.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">e509.b.akamaiedge.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">evsan2.senate.gov.edgekey.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">e485.b.akamaiedge.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">evsan1.senate.gov.edgekey.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">e483.g.akamaiedge.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">evsan3.senate.gov.edgekey.net.</td>
<td align="left">FALSE</td>
</tr>
<tr>
<td align="left">wwwhdv1.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">firesideweb02cc.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">firesideweb01cc.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">firesideweb03cc.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">dchouse01cc.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">c3pocc.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">ceweb.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">wwwd2-cdn.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">45press.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">gopweb1a.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">eleven11web.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">frontierweb.house.gov.</td>
<td align="left">TRUE</td>
</tr>
<tr>
<td align="left">primitivesocialweb.house.gov.</td>
<td align="left">TRUE</td>
</tr>
</tbody>
</table>
<p>Akamai <em>kinda</em> does need to serve up DNS for the sites they host, so this list also makes sense. But, you’ve now had two touch-points logged and we haven’t even loaded a single web page yet.</p>
<h3>Safe? &amp; Secure? Connections</h3>
<p>When we <em>finally</em> make a connection to a Congress-critter’s site, it is going to be over SSL/TLS. They all support it (which is <img alt="👍" src="https://i0.wp.com/s.w.org/images/core/emoji/2.4/72x72/1f44d.png?w=456&ssl=1" class="wp-smiley" data-recalc-dims="1">, but SSL/TLS confidentiality is not as bullet-proof as many “HTTPS Everywhere” proponents would like to con you into believing). However, I took a look at the SSL certificates for House and Senate sites. Here’s a sampling from, again, my state (one House representative):</p>
<p><img data-orig-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/house-ssl.png?fit=1184%2C1228&amp;ssl=1" data-orig-size="1184,1228" data-medium-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/house-ssl.png?fit=289%2C300&amp;ssl=1" data-attachment-id="9598" data-image-meta="{" data-image-description="" src="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/house-ssl.png?resize=780%2C809&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/house-ssl/" data-large-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/house-ssl.png?fit=530%2C550&amp;ssl=1" alt="" data-image-title="house-ssl" width="450" data-comments-opened="1" class="wp-image-9598" data-recalc-dims="1"></p>
<p>The <code>*.house.gov</code> “Common Name (CN)” is a <a rel="nofollow" href="https://en.wikipedia.org/wiki/Wildcard_certificate" target="_blank">wildcard certificate</a>. Many SSL certificates have just one valid CN, but it’s also possible to list alternate, valid “alt” names that can all use the same, single certificate. Wildcard certificates ease the burden of administration but it also means that if, say, I managed to get my hands on the certificate chain and private key file, I could setup <code>vladimirputin.house.gov</code> somewhere and your browser would think it’s A-OK. Granted, there are far more Representatives than there are Senators and their tenure length is pretty erratic these days, so I can <em>sort of</em> forgive them for taking the easy route, but I also in no way, shape or form believe they protect those chains and private keys well.</p>
<p>In contrast, the Senate can and does embed the alt-names:</p>
<p><a rel="nofollow" href="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/04/senate-ssl.png?ssl=1" target="_blank"><img data-orig-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/04/senate-ssl.png?fit=1184%2C1228&amp;ssl=1" data-orig-size="1184,1228" data-medium-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/04/senate-ssl.png?fit=289%2C300&amp;ssl=1" data-attachment-id="9597" data-image-meta="{" data-image-description="" src="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/04/senate-ssl.png?resize=780%2C809&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/senate-ssl/" data-large-file="https://i0.wp.com/rud.is/b/wp-content/uploads/2018/04/senate-ssl.png?fit=530%2C550&amp;ssl=1" alt="" data-image-title="senate-ssl" width="450" data-comments-opened="1" class="wp-image-9597" data-recalc-dims="1"></a></p>
<h3>Are We There Yet?</h3>
<p>We’ve got the IP address of the site and established a “secure” connection. Now it’s time to grab the index page and all the rest of the resources that come along for the ride. As noted in the <em>Privacy Primer</em> (above), the loading of third-party resources is problematic from a privacy (and security) perspective. Just how many third party resources do House and Senate member sites rely on?</p>
<p>To figure that out, I tallied up all of the <em>non-<code>.gov</code></em> resources loaded by each web site and plotted the distribution of House and Senate (separately) in a “beeswarm” plot with a boxplot shadowing underneath so you can make out the pertinent quantiles:</p>
<p><a rel="nofollow" href="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-distrubiton.png?ssl=1" target="_blank"><img data-orig-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-distrubiton.png?fit=1664%2C1064&amp;ssl=1" data-orig-size="1664,1064" data-medium-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-distrubiton.png?fit=300%2C192&amp;ssl=1" data-attachment-id="9600" data-image-meta="{" data-image-description="" src="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-distrubiton.png?resize=780%2C499&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/third-party-distrubiton/" data-large-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-distrubiton.png?fit=530%2C339&amp;ssl=1" alt="" data-image-title="third-party-distrubiton" width="450" data-comments-opened="1" class="wp-image-9600" data-recalc-dims="1"></a></p>
<p>As noted, the median is around 30 for both House and Senate member sites. In other words, they value your browsing privacy <em>so little</em> that most Congress-critters gladly share your browser session with many other sites.</p>
<p>We also talked about confidentiality above. If an <code>https</code> site loads <code>http</code> resources the contents of what you see on the page cannot but guaranteed. So, how responsible are they when it comes to at least ensuring these third-party resources are loaded over <code>https</code>?</p>
<p><a rel="nofollow" href="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/https-distribution-1.png?ssl=1" target="_blank"><img data-orig-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/https-distribution-1.png?fit=1862%2C970&amp;ssl=1" data-orig-size="1862,970" data-medium-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/https-distribution-1.png?fit=300%2C156&amp;ssl=1" data-attachment-id="9607" data-image-meta="{" data-image-description="" src="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/https-distribution-1.png?resize=780%2C406&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/https-distribution-1/" data-large-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/https-distribution-1.png?fit=530%2C276&amp;ssl=1" alt="" data-image-title="https-distribution-1" width="450" data-comments-opened="1" class="wp-image-9607" data-recalc-dims="1"></a></p>
<p>You’re <em>mostly</em> covered from a pseudo-confidentiality perspective, but what are they serving up to you? Here’s a summary of the <a rel="nofollow" href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types" target="_blank">MIME types</a> being delivered to you:</p>
<table>
<thead>
<tr>
<th align="left">MIME Type</th>
<th align="right">Number of Resources Loaded</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">image/jpeg</td>
<td align="right">6,445</td>
</tr>
<tr>
<td align="left">image/png</td>
<td align="right">3,512</td>
</tr>
<tr>
<td align="left">text/html</td>
<td align="right">2,850</td>
</tr>
<tr>
<td align="left">text/css</td>
<td align="right">1,830</td>
</tr>
<tr>
<td align="left">image/gif</td>
<td align="right">1,518</td>
</tr>
<tr>
<td align="left">text/javascript</td>
<td align="right">1,512</td>
</tr>
<tr>
<td align="left">font/ttf</td>
<td align="right">1,266</td>
</tr>
<tr>
<td align="left">video/mp4</td>
<td align="right">974</td>
</tr>
<tr>
<td align="left">application/json</td>
<td align="right">673</td>
</tr>
<tr>
<td align="left">application/javascript</td>
<td align="right">670</td>
</tr>
<tr>
<td align="left">application/x-javascript</td>
<td align="right">353</td>
</tr>
<tr>
<td align="left">application/octet-stream</td>
<td align="right">187</td>
</tr>
<tr>
<td align="left">application/font-woff2</td>
<td align="right">99</td>
</tr>
<tr>
<td align="left">image/bmp</td>
<td align="right">44</td>
</tr>
<tr>
<td align="left">image/svg+xml</td>
<td align="right">39</td>
</tr>
<tr>
<td align="left">text/plain</td>
<td align="right">33</td>
</tr>
<tr>
<td align="left">application/xml</td>
<td align="right">15</td>
</tr>
<tr>
<td align="left">image/jpeg, video/mp2t</td>
<td align="right">12</td>
</tr>
<tr>
<td align="left">application/x-protobuf</td>
<td align="right">9</td>
</tr>
<tr>
<td align="left">binary/octet-stream</td>
<td align="right">5</td>
</tr>
<tr>
<td align="left">font/woff</td>
<td align="right">4</td>
</tr>
<tr>
<td align="left">image/jpg</td>
<td align="right">4</td>
</tr>
<tr>
<td align="left">application/font-woff</td>
<td align="right">2</td>
</tr>
<tr>
<td align="left">application/vnd.google.gdata.error+xml</td>
<td align="right">1</td>
</tr>
</tbody>
</table>
<p>We’ll cover some of these in more detail a bit further into the post.</p>
<h3>Facebook &amp; “Friends”</h3>
<p>Facebook started all this, so just how cozy are these Congress-critters with Facebook?</p>
<p><a rel="nofollow" href="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/fb-track-1.png?ssl=1" target="_blank"><img data-orig-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/fb-track-1.png?fit=1664%2C1064&amp;ssl=1" data-orig-size="1664,1064" data-medium-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/fb-track-1.png?fit=300%2C192&amp;ssl=1" data-attachment-id="9612" data-image-meta="{" data-image-description="" src="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/fb-track-1.png?resize=780%2C499&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/fb-track-1/" data-large-file="https://i1.wp.com/rud.is/b/wp-content/uploads/2018/04/fb-track-1.png?fit=530%2C339&amp;ssl=1" alt="" data-image-title="fb-track-1" width="450" data-comments-opened="1" class="wp-image-9612" data-recalc-dims="1"></a></p>
<p>Turns out that both Senators and House members are <em>very</em> comfortable letting you give Facebook a love-tap when you come visit their sites since over 60% of House and 40% of Senate sites use 2 or more Facebook resources. Not all Facebook resources are created equal[ly evil] and we’ll look at some of the more invasive ones soon.</p>
<p>Facebook is not the only devil out there. I added in the public filter list from <a rel="nofollow" href="https://disconnect.me/" target="_blank">Disconnect</a> and the numbers go up from 60% to 70% for the House and from 40% to 60% for the Senate when it comes to a larger corpus of known tracking sites/resources.</p>
<p>Here’s a list of some (first 20) of the top domains (with one of Twitter’s media-serving domains taking the individual top-spot):</p>
<table>
<thead>
<tr>
<th align="left">Main third-party domain</th>
<th align="right"># of ‘pings’</th>
<th align="right">%</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">twimg.com</td>
<td align="right">764</td>
<td align="right">13.7%</td>
</tr>
<tr>
<td align="left">fbcdn.net</td>
<td align="right">655</td>
<td align="right">11.8%</td>
</tr>
<tr>
<td align="left">twitter.com</td>
<td align="right">573</td>
<td align="right">10.3%</td>
</tr>
<tr>
<td align="left">google-analytics.com</td>
<td align="right">489</td>
<td align="right">8.8%</td>
</tr>
<tr>
<td align="left">doubleclick.net</td>
<td align="right">462</td>
<td align="right">8.3%</td>
</tr>
<tr>
<td align="left">facebook.com</td>
<td align="right">451</td>
<td align="right">8.1%</td>
</tr>
<tr>
<td align="left">gstatic.com</td>
<td align="right">385</td>
<td align="right">6.9%</td>
</tr>
<tr>
<td align="left">fonts.googleapis.com</td>
<td align="right">270</td>
<td align="right">4.9%</td>
</tr>
<tr>
<td align="left">youtube.com</td>
<td align="right">246</td>
<td align="right">4.4%</td>
</tr>
<tr>
<td align="left">google.com</td>
<td align="right">183</td>
<td align="right">3.3%</td>
</tr>
<tr>
<td align="left">maps.googleapis.com</td>
<td align="right">144</td>
<td align="right">2.6%</td>
</tr>
<tr>
<td align="left">webtrendslive.com</td>
<td align="right">95</td>
<td align="right">1.7%</td>
</tr>
<tr>
<td align="left">instagram.com</td>
<td align="right">75</td>
<td align="right">1.3%</td>
</tr>
<tr>
<td align="left">bootstrapcdn.com</td>
<td align="right">68</td>
<td align="right">1.2%</td>
</tr>
<tr>
<td align="left">cdninstagram.com</td>
<td align="right">63</td>
<td align="right">1.1%</td>
</tr>
<tr>
<td align="left">fonts.net</td>
<td align="right">51</td>
<td align="right">0.9%</td>
</tr>
<tr>
<td align="left">ajax.googleapis.com</td>
<td align="right">50</td>
<td align="right">0.9%</td>
</tr>
<tr>
<td align="left">staticflickr.com</td>
<td align="right">34</td>
<td align="right">0.6%</td>
</tr>
<tr>
<td align="left">translate.googleapis.com</td>
<td align="right">34</td>
<td align="right">0.6%</td>
</tr>
<tr>
<td align="left">sharethis.com</td>
<td align="right">32</td>
<td align="right">0.6%</td>
</tr>
</tbody>
</table>
<p>So, when you go to check out what your representative is ‘officially’ up to, you’re being served…up on a silver platter to a plethora of sites where you are the product.</p>
<p>It’s starting to look like Congress-folk aren’t as sincere about your privacy as they may have led us all to believe this week.</p>
<h3>A [Java]Script for Succes[ful Privacy Destruction]</h3>
<p>As stated earlier, not all third-party content is created equally malicious. JavaScript resources run code in your browser on your device and while there <em>are</em> limits to what it can do, those limits diminish weekly as crafty coders figure out more ways to use JavaScript to collect information and perform shady or malicious deeds.</p>
<p>So, how many House/Senate sites load one or more third-party JavaScript resources?</p>
<p><a rel="nofollow" href="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-js.png?ssl=1" target="_blank"><img data-orig-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-js.png?fit=1706%2C1022&amp;ssl=1" data-orig-size="1706,1022" data-medium-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-js.png?fit=300%2C180&amp;ssl=1" data-attachment-id="9614" data-image-meta="{" data-image-description="" src="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-js.png?resize=780%2C467&ssl=1" data-permalink="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/third-party-js/" data-large-file="https://i2.wp.com/rud.is/b/wp-content/uploads/2018/04/third-party-js.png?fit=530%2C318&amp;ssl=1" alt="" data-image-title="third-party-js" width="450" data-comments-opened="1" class="wp-image-9614" data-recalc-dims="1"></a></p>
<p>Virtually all of them.</p>
<p>To make matters worse, <em>no <code>.gov</code> or third-party resource of any kind was loaded using <a rel="nofollow" href="https://www.w3.org/TR/SRI/" target="_blank">subresource integrity</a> validation</em>. Subresource integrity validation means that the site owner — at some point — ensured that the resource being loaded was not malicious and then created a fingerprint for it and told your browser what that fingerprint is so it can compare it to what got loaded. If the fingerprints don’t match, the content is not loaded/executed. Using subresource integrity is not trivial since it requires a top-notch content management team and failure to synchronize/checkpoint third-party content fingerprints will result in resources failing to load.</p>
<p>Congress was quick to demand that Facebook implement stronger policies and controls, but they, themselves, cannot be bothered.</p>
<h3>Future Work</h3>
<p>There are plenty more avenues to explore in this data set (such as “security headers” — they all 100% use <code>strict-transport-security</code> pretty well, but are deeply deficient in others) and more targets for future works, such as the campaign sites of House and Senate members. I may follow up with a look at a specific slice from this data set (the members of the committees who were berating Zuckerberg this week).</p>
<p>The bottom line is that while the beating Facebook took this week was just, those inflicting the pain have a long way to go themselves before they can truly judge what other social media and general internet sites do when it comes to ensuring the safety and privacy of their visitors.</p>
<p>In other words, “Legislator, regulate thyself” before thy regulatists others.</p>
<h3>FIN</h3>
<p>Apart from some egregiously bad (or benign) examples, I tried not to “name and shame”. I also won’t answer any questions about facets by party since that really doesn’t matter too much as they’re all pretty bad when it comes to understanding and implementing privacy and safey on their sites.</p>
<p>It’s going to take me a bit to figure out hosting for the code &amp; data for this analysis. The data set is at or larger than 3GB of (<em>heavily</em> nested data frame) content and that’s not going to work on GitHub. Since I have no idea how “popular” this data will be, I can’t even shunt it off to S3 or my own site without possibly incurring unplanned costs. My code is also not as “pristine” as it usually is since this was a scant-time side project of a side project. However, I’ll gladly show all the code scars upon inquiry. I will say that repeating this from scratch without code is not <em>too</em> difficult provided you’ve got some patience for the scrape-time.</p>
<p>If you are a legit researcher and would like a copy of the data/code drop a note with a <em>well-described purpose/project</em>. This data holds no secret information so it’s unlikely your project is (or should be) a secret, so providing details publicly should not be an issue (and you may even find a collaborator).</p>
<p>I didn’t do this for any type of “attention”, media-or-otherwise. I was curious about this topic and figured others might be as well. However, I grok that members of the press are less likely to make a public inquiry, so if this post did get your attention, feel free to drop a note to my e-mail (which I’m going to assume any decent journalist can readily find) and I’ll gladly work with you on getting you what you need privately.</p>
	<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://rud.is/b/2018/04/13/does-congress-really-care-about-your-privacy/"> R – rud.is</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img alt="" width="1" src="http://feeds.feedburner.com/~r/RBloggers/~4/JJgdOMRHKwI" height="1"></a></div>