Pages

Friday, September 5, 2014

Running into an old friend...



Tor browser’s canvas fingerprinting warning. 
Image: Tor Browser

Question from the NIST group



I had a question recently from members of a NIST technical working group to which I belong, asking me to help explain “canvas fingerprinting.” This privacy-invading online technique received attention in late July in the press, when researchers revealed the extent to which your browser text formatting and other settings can invisibly reveal your identity and activities online. Evil spawn of “browser fingerprinting,” a set of online privacy attacks first widely reported starting in  2010, “canvas fingerprinting” uses seemingly harmless information from your browser to create a kind of online DNA that identifies individuals with statistical certainly.

I was curious about how canvas fingerprinting related in general to “browser fingerprinting,” cookie respawning, evercookies, cookie synching, and other hidden privacy attacks, and how to defend against them. Rebecca Herold, a privacy expert who leads our NIST working group, invited me to review the topic with the group at an upcoming meeting.

When I got to the attack defenses, I found the answer, an old friend: Tor browser. I was not surprised, yet...surprised. Not surprised, yes, as millions of users all over the world know that, when privacy is the problem, Tor is the answer. Surprised, yes, as I had not been aware of how extensively this research and paper referenced Tor, nor how significantly Tor had stood out in its browser experiments. My own  research sometimes involves Tor,  and I am a member of the “Tor community,” so I expect to be (sort of) on top of “significant” Tor research.

I don’t focus as much on the browser as on Tor’s anonymity-protecting “onion routing.” Tor includes a software browser, as well as other online tools, but is mainly thought of as a network of thousands of relay servers all over the world, as well as using a cryptographic technique that wraps your network communications in layers of encryption. In reading recent press to find how I had missed this one, I realized: I was not alone. Tor’s browser strengths went unreported in virtually all press about canvas fingerprinting, despite the researcher’s startling finding that Tor Browser, alone among dozens of defenses against the widespread attack, is “the only software that we found to successfully protect against canvas fingerprinting.”

Image: NIST
 

Attack and Defense


“Canvas fingerprinting,” “browser fingerprinting,” respawning, evercookies, cookie synching. As quickly as researchers discover them, new ones abound. Advertisers and marketers have created a hidden world, abetted by invisible technology, that spies and reports on you in order to sell you, presumably as a prospective buyer. Another hidden world of government surveillance grabs from the same toolbox, we learned from the Snowden revelations.  Researchers and computer developers at Cambridge, MA-based Tor Project have devoted their talents and time specifically to protect privacy online. Tor is cited in the canvas fingerprinting research reported July 22, 2014, for producing tools forming some of the only lines of defense, among dozens of browser and defense options investigated. Diaz et al concluded, “As for more traditional fingerprinting techniques, the Tor browser again appears to be the only effective tool. With the exception of a recent Mozilla effort to limit plugin enumeration, browser manufacturers have not attempted to build in defenses against fingerprinting.”  

The incidental delivery mechanism of Tor’s onion routing anonymity-protecting network, Tor browser itself is less widely considered. So I dusted off and cracked open the Tor browser specification document to see what I had been missing.

Tor Browser’s spec document  reads not like a list of features, but more like a counter-terrorism manual, enumerating and explaining attacks, and shedding even more light on the them. It contains sections like: “Adversary Model,” “Adversary Goals,:” “Adversary Capabilities - Positioning,” and my favorite chapter, “Adversary Capabilities - Attacks.” Turns out, it contained many of the answers I sought.

I also read all the original research papers. Press reports are nice, but you never know, with them, how far as accuracy and completeness go. Here is what I found out overall about canvas fingerprinting:

The Attack

Who’s doing it? Who figured it out? When did they find it, and when was it reported?
Six researchers from KU Leuven in the Netherlands and Princeton University in the US teamed up to locate the canvas fingerprinting “in the wild,” in actual websites. Researchers included Gunes Acar, Christian Eubank, Steven Englehardt, Marc Juarez, Arvind Narayanan, and Claudia Diaz. They wrote a paper, The Web never forgets: Persistent tracking mechanisms in the wild, that technically has yet to be “published,” ("forthcoming" November, 2014 in the academic journal In Proceedings of CCS 2014, Nov. 2014. Yet, it’s already published on the web, the latest version dated August 10, 2014. Confusing? Yes.)

They built on the work first presented in 2012, as theory, in a research paper by Keaton Mowery and Hovav Shacham. Researchers flushed out adware company AddThis’s computer code, along with others, on 5 percent of the top 100,000 websites, or 5,000 websites.

How does canvas fingerprinting work?
It turns out, our browsers each use a more unique set of fonts and text settings than we realize. When a user visits a website with canvas fingerprinting, their browser is instructed to "draw" a sample hidden line of text or 3D graphic that is then converted to a digital token (hashed). It exploits the HTML5 canvas element, also known as the the Canvas API. This includes the set of fonts and the settings a user uses to format text and images in the browser. The Tor browser specification actually sums it up best:

“The adversary simply renders WebGL, font, and named color data to a Canvas element, extracts the image buffer, and computes a hash of that image data. Subtle differences in the video card, font packs, and even font and graphics library versions allow the adversary to produce a stable, simple, high-entropy fingerprint of a computer. In fact, the hash of the rendered image can be used used almost identically to a tracking cookie by the web server.”

There are so many online privacy attacks, it’s hard to keep them all straight. When did these attacks start? When did we know about them?
Canvas fingerprinting is a kind of privacy attack known as “browser fingerprinting.” The “browser fingerprinting.”attack was made (somewhat) famous in 2010 by in the Panopticlick project by Peter Eckersley, a Senior Staff Technologist at the Electronic Frontier Foundation (EFF). He presented his findings in How Unique is your Browser? at Defcon and published them in How Unique is your Web Browser?   at the Privacy Enhancing Technology Symposium in 2010. Eckersley showed that seemingly harmless browser settings and information more uniquely identify us than we realize. 

Keaton Mowery and Hovav Shacham identified canvas fingerprinting, in theory, in their 2012 paper. Then, early in 2014, Princeton and KU Leuven researchers experimented and found an example “in the wild.” The actual research paper will not even be published until November 2014, in the academic journal of the ACM Conference on Computer and Communications Security (CCS). On July 22, 2014, ProPublica’s blog reported on it, the day after acceptance notifications went out for the ACM CCS publication. Acar also published an article in ieee.org magazine on the same day.

What are these seemingly harmless pieces of information that reveal us?
I compiled this list from Eckersley’s Defcon presentation and the research papers:
  • Plugins
  • Fonts
  • User Agent strings
  • Other browser headers
  • Cookie blocking
  • Timezone
  • Screen size
  • Browser plugins + versions
  • Supercookie blocking
  • System fonts
  • performance metrics
  • the JavaScript engine
  • the rendering engine
  • acoustic characteristics
  • WebGL
  • Quartz crystal clock skew
  • TCP/IP characteristics
  • Screen DPI
  • HTTP header ordering
  • ActiveX / Silverlight
  • JavaScript quirks
  • CSS history
  • CSS font list

    Image: Tor browser

Eckersley provided this helpful guide to show which data is most revealing:

Variable Entropy- a measure of how much of a giveaway each is about your identity:
  • Plugins 15.4 bits
  • Fonts 13.9 bits
  • User Agent: 10.0 bits
  • Other headers: 6.09 bits
  • Screen size 4.83 bits
  • Timezone 3.04 bits
  • Supercookies 2.12 bits
  • Cookies enabled? 0.353 bits

Are there related attacks?
In 2009, a study by Soltani et al. showed the abuse of Flash cookies for regenerating previously removed HTTP cookies, a technique referred to as “respawning.” In 2010: Samy Kamkar demonstrated the “Evercookie," a resilient tracking mechanism that utilizes multiple storage vectors including Flash cookies, localStorage, sessionStorage and ETags. Cookie syncing, a workaround to the Same-Origin Policy, allows different trackers to share user identifiers with each other. Besides being hard to detect, cookie syncing enables back-end server-to-server data merges hidden from public view. The 2014 Persistent paper significantly extends what was known about each in terms of extent and methodology.



The Defense

Eckersley noted in 2010 that Tor topped a very short list of defenses against browser fingerprinting:
“Which browsers did well?
  • Those without JavaScript
  • Those with Torbutton enabled

Paradox: some “privacy enhancing” technologies are fingerprintable
  • Flash blockers
  • Some forged User Agents
  • “Privoxy” or “Browzar”
Noteworthy exceptions:
  • NoScript
  • TorButton [predecessor to Tor browser]”

Researchers Diaz et al likewise offered users a short list of defenses in July 2014, stating, “Tor Browser [was] the only software that we found to successfully protect against canvas fingerprinting. Specifically, the Tor Browser returns an empty image from all the canvas functions that can be used to read image data. The user is then shown a dialog where she may permit trusted sites to access the canvas. We confirmed the validity of this approach when visiting a site we built which performs browser fingerprinting.”  

Image: The Tor Project
With respect to other browser-based attacks, researchers observed, “The Tor Browser Bundle (TBB) prevents cross-site cookie tracking by disabling all third-party cookies, and not storing any persistent data such as cookies, cache or localStorage.”

Finally, with respect to evercookies, “The straightforward way to defend against evercookies is to clear all possible storage locations. The long list of items removed by the Tor Browser when a user switches to a new identity provides a hint of what can be stored in unexpected corners of the browser: “searchbox and findbox text, HTTP auth, SSL state, OCSP state, site-specific content preferences (including HSTS state), content and image cache, offline cache, Cookies, DOM storage, DOM local storage, the safe browsing key, and the Google wifi geolocation token[...]” .


Modesty?

When I  first learned I had missed that the widely-publicized July 21, 2014 canvas fingerprinting attack research included significant positive findings about Tor browser as a defense, I realized I had read the press, but not the underlying full research paper. I read dozens of research papers, but can’t read every one that comes out. I immediately went to FreeHaven, the definitive anonymity bibliography, for clues as to how I missed that this was a “Tor” paper. And I got my answer. The actual research paper was - Not.There. FreeHaven seems only to include papers after they’re “officially” “published.” In this case, that won’t be until sometime in November, 2014.

Further sleuthing uncovered that most of the press coverage likewise failed to even mention the key defense the Persistent paper mentions over and over again: Tor browser. Of the eight press articles on the researcher’s website, only two of them even mention Tor: Pro Publica, and BBC. In none of the other articles does the word “Tor” even appear, even in the article by EFF, a previous funder of Tor.

Articles about Tor appear in the press everyday. I read some accurate, informative and interesting articles. I read all sorts of nonsense about Tor in the press, too. I wish the press had done an article about how, of all the dozens of browsers and tools available in the world today, Tor browser defends against these kinds of attacks. If I as an infosec researcher
don’t hear about it, how can I expect the press to get the story? The good people at Tor are so busy creating really effective software and online services, maybe they don’t always have time to help their press get the full story.


References

G. Acar, C. Eubank, S. Englehardt, M. Juarez, A. Narayanan, C. Diaz. The Web never forgets: Persistent tracking mechanisms in the wild. In Proceedings of CCS 2014, Nov. 2014. (Forthcoming) https://securehomes.esat.kuleuven.be/~gacar/persistent

Acar, Günes and Nikiforakis, Nick, Browser Fingerprinting and the Online-Tracking Arms Race, IEEE Spectrum, 25 Jul 2014 http://spectrum.ieee.org/computing/software/browser-fingerprinting-and-the-onlinetracking-arms-race

Clark, Erinn, Murdoch, Steven, and Perry, Mike, The Design and Implementation of the Tor Browser [DRAFT] March 15, 2013 https://www.torproject.org/projects/torbrowser/design


Eckersley, Peter, How Unique is Your Browser? A report on the Panopticlick Experiment, Defcon 2010, https://www.defcon.org/images/defcon-18/dc-18-presentations/Eckersley/DEFCON-18-Eckersley-Panopticlick.pdf

Eckersley, Peter, How Unique is your Web Browser? In the Proceedings of PETS, 2010, https://panopticlick.eff.org/browser-uniqueness.pdf

Panopticlick, Electronic Frontier Foundation (EFF) https://panopticlick.eff.org


Mowery, Keaton and Shachem, Hovav, Pixel Perfect: Fingerprinting Canvas in HTML5, In Proceedings of W2SP 2012. IEEE Computer Society, May 2012. http://w2spconf.com/2012/papers/w2sp12-final4.pdf

The Tor Project, Tor Project 

Wednesday, May 14, 2014

AG Candidate Maura Healey meets with Cambridge Community Leaders





by @SarahCortes- Massachusetts Attorney General candidate Maura Healey spent the week with leaders across Cambridge, defining herself, discussing issues, demonstrating her public speaking ability and setting herself apart from others in the field. "I am the only candidate who has served in the Attorney General's office," she noted. Tonight a crowd gathered to meet with Healey and hear her speak, including artist and former Skadden Arps lawyer and Amnesty International Legal Support Network founder Lori Lander, and former longtime Executive Director of the Cambridge Women’s Commission and former President of the Board of Directors of the American Civil Liberties Union (ACLU) of Massachusetts Nancy Ryan.



"As a 5'4" pro basketball player, you know I'm scrappy," said the former Miss New Hampshire Basketball and Olympic trial contender, referring to her athletic career. Healey captained Harvard's women's basketball team to an Ivy Championship and played pro basketball in Austria before starting a legal career where she became a top aide to Attorney General Martha Coakley. Healey noted, "I'm a product of Title IX and a beneficiary of Title IX," referring to the federal law that mandated equality for girls and women in educational athletics. As one of the first generation of professional women athletes, former Harvard Briggs Cage top scorer Healey played for UBBC Wustenrot Salzburg, now UNION BSC Salzburg.



In Coakley's office, Healey lead the team that successfully challenged the Defense of Marriage Act (DOMA), which denied federal benefits to same-sex couples by defining marriage exclusively as a union between a man and a woman, in Massachusetts vs. Department of Health and Human Services (HHS). In handing victory to Healy in a withering decision against HHS Secretary Kathleen Sebelius and others, Judge Joseph L. Tauro ruled that Massachusetts's standing to bring suit against DOMA was "not contingent, as the [US] government suggests, on Thomas Hopkins--or another similarly-situated individual--being lowered into his grave at Winchendon" cemetary, but that Healy had amply demonstrated required financial injury to the state. Further, that, "the [US] government has offered little to disprove the persuasive precedential and historical arguments set forth by the Commonwealth to establish that marital status determinations are an attribute of state sovereignty." Sebelius, no stranger to stinging judicial defeats, received another loss for her actions blocking access to the "morning-after" contraceptive pill. Judge Korman's decision in Tummino v. Hamburg summarily dismissed Sebelious's position as a "...silly argument [that] ignores the fact...that appeal is taken solely to vindicate the improper conduct of the Secretary," and, "this argument...is largely an insult to the intelligence of women."



Healey's record reflects consistent, successful efforts on behalf of the disabled, affirmative action programs, housing subsidy recipients, same-sex marriage proponents, and pregnant women in employment discrimination. In Perry v. Schwarzenegger and later Perry v. Brown, Healey filed amicus briefs in support of the successful effort to invalidate California's Proposition 8, which attempted to define marriage in heterosexual terms. In Massachusetts v. ETrade Access, Healey successfully argued that ATMs must accommodate blind customers, and then followed up and won contempt judgements when banks failed to comply with agreements to do so. In Comfort v. Lynn School Committee, Healey supported a school assignment plan that took race into account. In Joulé Technical Staffing v. Simmons, Healey argued on behalf of an employee who filed a complaint of discrimination against an employer, on the basis of pregnancy. In Diliddo v. Oxford St. Realty, she argued on behalf of a housing subsidy recipient against a landlord seeking to exclude her from renting.



Reflecting her years as a litigator, Healey spoke knowledgeably and articulately about civil rights, consumer protection, gun violence, criminal justice reform, reproductive rights, and encouraging and supporting the technology industry in Massachusetts. A Northeastern University Law school graduate and former Wilmer Cutler Pickering Hale and Dorr associate, Healey has extensive legal credentials. In her campaign, Healey is working to demonstrate her ability to raise funds, speak publicly and endure the rigors of a political race.

Healey's relaxed, engaging manner, intelligence and comfort speaking with individuals in a small group or larger setting impressed observers assessing her viability as a candidate. Other leaders at the gathering included Jonathan Sclarsic, Andrew Lewman, and Cambridge School Committee Member Patty Nolan. Author Cheryl Suchors, reproductive rights activist Susan Yanow, and lawyer, public policy analyst and former White House intern Alex Tischenko also numbered among those Healey consulted at the gathering. Broad Instittue founder, MacArthur Fellow and Rhodes Scholar and biologist, geneticist and MIT Professor Eric Lander co-hosted the event with Lori Lander, who also serves as Director to numerous Cambridge and Boston art and social justice nonprofits.

Tuesday, Healey attended a briefing Tuesday on domestic violence and sexual assault issues with Cambridge-based advocates, including Emerge Batterer Intervention Program Co-Executive Director David Adams, Transition House Executive Director Risa Mednick, and a group of leaders and advocates for eliminating domestic violence.

Orignially published at  CCTVcambridge.org/MauraHealy

Thursday, March 6, 2014

Feminist Gloria Steinem Continues to Draw Huge College Crowds at 80



by @SarahCortes-Lining up more than two hours in advance in the freezing cold, college students and community members estimated at more than a thousand strong at this North Adams college queued around the block and down a steep hill for a chance to hear feminist author, journalist, and activist feminist Gloria Steinem speak last night. Squeezing into the main hall of the Church Street Center at the Massachusetts College of Liberal Arts (MCLA) as well as overflow rooms, hallways and even vestibules, the audience packed into every available space for her address.



Steinem, 80, who has worked for women's rights and gender and racial equality for over 50 years, stood at the podium for almost two hours, speaking and taking questions from the audience. Energetically urging the men and women in the audience to continue to engage in "Outrageous Acts and Everyday Rebellions", also the title of one of her books, she drew a standing ovation at the end of her remarks. Afterwards, she remained standing and greeted a mob of well-wishers and petitioners.

Steinem recalled her Cambridge connection when discussing Emerge, the first Abuser Education Program in the country, headquartered on Massachusetts Avenue. One of six organizations Steinem "endorses," and to which she links on her website. Emerge works to end domestic violence by holding abusers accountable for their behaviour. "Emerge was one of the first recipients of our Ms. Foundation grants over 30 years ago," Steinem noted.

Founded in 1977, Cambridge-based Emerge was the first abuser education program in the United States. Since its creation, Emerge has been a national leader in working to end violence in intimate relationships. In working toward this goal, Emerge seeks to educate individual abusers, prevent young people from learning to accept violence in their relationships, improve institutional responses to domestic violence, and increase public awareness about the causes and solutions to partner violence. "They were the only men's organization we funded," explained Steinem. "I'm glad to see Emerge is still going strong."

Steinem graduated Phi Beta Kappa from Smith College in 1956. In her 1963 article, "I Was A Playboy Bunny," she famously exposed the exploitative working conditions endured by Playboy Bunnies, including the sexual demands made of them. She based the article on her own experiences as an undercover reporter, when she worked for Playboy Enterprises as a Bunny. Author of seven books and countless articles, winner of dozens of journalism awards, Steinem also founded Ms. Magazine in 1972 while working for New York Magazine.

Regarding domestic violence, Steinem commented and responded to questions on abuser education organizations like Emerge and other domestic violence service providers like its sister organization, Cambridge's Transition House. Regarding her views on various strategies  and approaches to domestic violence, including holding abusers accountable as well as providing services directly to victims, "both [types of organizations] do both," she remarked.

photo credit: Sarah Cortes





Wednesday, November 13, 2013

House Speaker DeLeo, State Rep Decker visit Transition House, meet with victims of Intimate Partner Violence

by @SarahCortes-Six victims of Intimate partner violence quietly told their stories to key politicians Monday inside the protected walls of Cambridge's Transition House shelter. In an effort to increase understanding in the wake of the Jennifer Martel murder/Jared Remy homicide case, State Representative, 25th Middlesex District (Cambridge) and Cambridge City Councillor @MarjorieDecker brought Massachusetts House Speaker Robert DeLeo and his staff into the heart of the facility. Cambridge Police Commissioner Robert Haas and Detectives Joanne MacEachern and Beth Halloran, among others, also participated, dedicating over three hours to discussing root causes of intimate partner abuse and intimate partner violence. Det. MacEachern explained "the attitude of entitlement and the desire for power and control" over the victim that drives abusers. Representatives from Emerge, the nation's oldest abuser education program, which sprang from Transition House's work, Boston Area Rape Crisis Center (BARCC), the YWCA and Community Legal Services also participated. 

Transition House Executive Director Risa Mednick has met regularly since 2009 with Rep. Decker, Commissioner Haas and others to help improve understanding and combat domestic abuse. The second oldest shelter for victims of domestic abuse and domestic violence, Transition House has offered services to victims since 1975. The agency provides education, work opportunities, training and other resources to victims "to increase skills and foster self-sufficiency," according to Mednick. It also provides youth education, peer mentoring and counseling on healthy relationship development. State and local agencies provide about half its funding, according to its 990 form, while they rely for the balance on donations from individuals.

Rep. and Councilor Decker has served on the Cambridge City council since 1999. According to her website, she is one of only "13 women to be elected to City Council in more than 150 years." She initiated and chaired a city wide summit on Domestic Violence Prevention, and recently spearheaded a public awareness campaign.

House Speaker DeLeo, a Democrat representing Winthrop and Revere, has presided over the legislature as House Speaker since 2009, after serving as Chairman of the Massachusetts House Committee on Ways and Means from 2005-2009. "I spent a number of years as a probation officer," DeLeo said, explaining how he was first exposed to domestic violence cases.