16
Adblocking and Counter-Blocking Julia E. Powles Emiliano De Cristofaro Hamed Haddadi Steven Murdoch Rishab Nithyanand Sheharbano Khattak Mobin Javed Narseo Vallina- Rodriguez Marjan Falahrastegar

Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Adblocking andCounter-Blocking

JuliaE.Powles

EmilianoDeCristofaro

HamedHaddadi

StevenMurdoch

RishabNithyanand

SheharbanoKhattak

MobinJaved

Narseo Vallina-Rodriguez

MarjanFalahrastegar

Page 2: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Now…oursponsors

Skippingslidein15seconds

Page 3: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Or…Turnoffyouradblocker toproceed

Page 4: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Inthispaper,we…

• Understandthecurrentstateofthecontentprovidervs. adblocker armsrace

AdobeandPageFair 2015adblocking report

August ‘15 March‘16

IABTechLabPublisherAdblocking Primer

March‘16

Eyeo wins5th straightcaseinGermany

Popularwebsitesdeployanti-adblockers

Securityandprivacyactivistsfightback

April ‘16

Andimmediatelyfacemalvertising scares

Page 5: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Inthispaper,we…• Understandthecurrentstateofthecontentprovidervs. adblocker armsrace

• Howwidespreadareanti-adblockers?• Anti-adblockers:Adblocker blockersanddetectors.

• Whatsitesareemployingthem?

• Whoarethemostpopularvendorsofanti-adblockers?

• Howdothepopularanti-adblockerswork?

• Canadblockers blockanti-adblockers?• Or,canadblockers blockadblocker blockers?

Page 6: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Howwidespreadareanti-adblockers?

• CrawlanddownloadallJSes intheAlexaT-5K.• Over200KJSinAlexaT-5K.• Analyzing(functionalityof)eachoneisnotfeasible.

• Observation:MostsitesusethesameJSes.• Boughtfromvendors,partofalibrary,etc.

• ClustersimilarJSes andanalyzeeachcluster.

Page 7: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

ClusteringsimilarJSes

• FormulateastheCliqueFindingproblem.

• Findallcliqueswithedgeweight>=x (say,.80).

• JS1,JS2,andJS4arelikelytohaveidenticalfunctionalityandsourceforsufficientlyhigh“x”.

• Givesalower-boundofsharedJSes:FailswithdifferentlyobfuscatedcodeandcomposedJSes.

JS1

JS3

JS2

JS4

.9

.6

.9

.9 .7

.8

Similarityofcode(TF-IDF)

White-spaceinsensitivePosition insensitiveResistanttonoise

Page 8: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

AnalyzingclustersofJSes

• Characteristics(scriptvendorandfunctionality)ofeachcliqueareidentifiedbyanalyzing:

• Sourcesofscripts.

• Externalresourcesutilizedbythescripts.

• (TF-IDF)Keywordsassociatedwiththescript.

• Manually.

Page 9: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Howwidespreadareanti-adblockers?

• Totalnumberofcliqueswithsize>=5:1882• 1882JSes sharedby5+websites.

• TotalnumberoftrackerJSes:456of1882• 456JSes usedfortrackingsharedby2741websites.

• Totalnumberofanti-adblocker JSes:22of1882• 22JSes usedfordetectingadblockers sharedby335websites.• Thisisalowerbound.

Page 10: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Whatsitesareemployinganti-adblockers?

• McAfee’sURLcategoriesoverthe335identifiedwebsites.

Page 11: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Whoarethepopularanti-adblocking vendors?

Page 12: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Howdoanti-adblockers work?

• Keyidea:Baitobjects.• Example1:UsingabaitDIVelement

var test = document.createElement('div'); //Create a new DIV elementtest.innerHTML = ' ‘; test.className = 'adsbox‘; //Set bait

document.body.appendChild(test); //Add element to document body

if (test.offsetHeight === 0) //Check element height{

document.body.classList.add('adblock');}

Page 13: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Howdoanti-adblockers work?

• Keyidea:Baitobjects.• Example2:UsingbaitJSes

// ads.jsvar foo = False

// main.jsvar foo = True// main.htmlif (foo is True){

document.body.classList.add('adblock');}

Page 14: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Canadblockers blockanti-adblockers?

Page 15: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

TL;DR

• Anti-adblockers areemployedbyatleast 6.7%oftheAlexaT-5K.

• Anti-adblockers aremostlyemployedby“News”websites.

• Anti-adblockers arebeingsuppliedmostlybyadvendors.• PageFair reportshouldbetakenwithagrainofsalt(conflictofinterest).

• Thearmsracehasenteredthenextphase.• Escalationseemslikelyunlessacompromiseisfound(e.g.,Eyeo AAI).

Page 16: Adblockingand Counter-Blocking - Steven Murdoch · • Anti-adblockers are employed by at least6.7% of the Alexa T-5K. • Anti-adblockers are mostly employed by “News” websites

Upcomingwork

• AutomatedcategorizationofJSes.

• Longitudinalmeasurements.