From Wikipedia, the free encyclopedia
Jump to navigation Jump to search
'Tor Stinks' NSA presentation

Evercookie is a JavaScript-based application created by Samy Kamkar that produces zombie cookies in a web browser that are intentionally difficult to delete.[1][2] In 2013 a top-secret NSA document was leaked by Edward Snowden,[3] citing Evercookie as a method of tracking Tor users.


A traditional HTTP cookie is a relatively small amount of textual data that is stored by the user's browser. Cookies can be used to save preferences and login session information; however, they can also be employed to track users for marketing purposes. Due to concerns over privacy, all major browsers include mechanisms for deleting and/or refusing to accept cookies from websites.

Adobe Systems claimed that the size restrictions, likelihood of eventual deletion, and simple textual nature of traditional cookies motivated it to add the local shared object (LSO) mechanism to the Adobe Flash Player.[4] While Adobe has published a mechanism for deleting LSO cookies (which can store 100 KB of data per website, by default),[5] it has met with some criticism from security and privacy experts.[6] Since version 4, Firefox has treated LSO cookies the same way as traditional HTTP cookies, so they can be deleted together.[7][8]


Samy Kamkar released v0.4 beta of the Evercookie on September 13, 2010, as open source.[2][9][10] According to the project's website:

Evercookie is designed to make persistent data just that, persistent. By storing the same data in several locations that a client can access, if any of the data is ever lost (for example, by clearing cookies), the data can be recovered and then reset and reused.

Simply think of it as cookies that just won't go away.

Evercookie is a javascript API available that produces extremely persistent cookies in a browser. Its goal is to identify a client even after they've removed standard cookies, Flash cookies (Local Shared Objects or LSOs), and others.

Evercookie accomplishes this by storing the cookie data in several types of storage mechanisms that are available on the local browser. Additionally, if Evercookie has found the user has removed any of the types of cookies in question, it recreates them using each mechanism available.

An Evercookie is not merely difficult to delete. It actively "resists" deletion by copying itself in different forms on the user's machine and resurrecting itself if it notices that some of the copies are missing or expired.[11] Specifically, when creating a new cookie, Evercookie uses the following storage mechanisms when available:

The developer is looking to add the following features, among others[12]:

See also[edit]


  1. ^ Vega, Tanzina (2010-10-10). "New Web Code Draws Concern Over Privacy Risks". The New York Times.
  2. ^ a b "Samy Kamkar - Evercookie".
  3. ^ "'Tor Stinks' presentation". The Guardian.
  4. ^ "What are local shared objects?". Archived from the original on 2010-05-29.
  5. ^ "How to manage and disable Local Shared Objects".
  6. ^ "Local Shared Objects -- 'Flash Cookies'".
  7. ^ Mike Beltzner (2011-01-13). "Bugzilla entry 625495 - Clear Adobe Flash Cookies (LSOs) when Clear Cookies is selected in the Privacy > Custom > Clear History". Retrieved 2011-09-28. Change to the "on close" firefox behavior to use the new NPAPI ClearSiteData API.
  8. ^ Mike Beltzner (2011-01-13). "Bugzilla entry 625496 - Clear Adobe Flash Cookies (LSOs) when Cookies is selected in Clear Recent History". Retrieved 2011-09-28. Change to the "clear recent history" firefox behavior to use the new NPAPI ClearSiteData API.
  9. ^ "Evercookie source code". 2010-10-13. Retrieved 2010-10-28.
  10. ^ "Schneier on Security - Evercookies". 2010-09-23. Retrieved 2010-10-28.
  11. ^ "It is possible to kill the evercookie". 2010-10-27.
  12. ^ "samyk/evercookie". GitHub. Retrieved 2020-02-11.