skip to main content
10.1145/2381966.2381968acmconferencesArticle/Chapter ViewAbstractPublication PagesccsConference Proceedingsconference-collections
research-article

An approach for identifying JavaScript-loaded advertisements through static program analysis

Published:15 October 2012Publication History

ABSTRACT

Motivated by reasons related to privacy, obtrusiveness, and security, there is great interest in the prospect of blocking advertisements. Current approaches to this goal involve keeping sets of URL-based regular expressions, which are matched against every URL fetched on a web page. While generally effective, this approach is not scalable and requires constant manual maintenance of the filtering lists. To counter these shortcomings, we present a fundamentally different approach with which we demonstrate that static program analysis on JavaScript source code can be used to identify JavaScript that loads and displays ads. Our use of static analysis lets us flag and block ad-related scripts before runtime, offering security in addition to blocking ads. Preliminary results from a classifier trained on the features we develop achieve 98% accuracy in identifying ad-related scripts.

References

  1. EasyBlog - EasyList statistics: August 2011. https://easylist.adblockplus.org/blog/2011/09/01/easylist-statistics:-august-2011, 2011.Google ScholarGoogle Scholar
  2. Adblock Plus - for annoyance-free web surfing. http://adblockplus.org/en/, 2012.Google ScholarGoogle Scholar
  3. EasyList Mercurial changelogs. https://hg.adblockplus.org/easylist/, April 2012.Google ScholarGoogle Scholar
  4. Alexa Internet. The top 500 sites on the Web. http://www.alexa.com/topsites, May 2012.Google ScholarGoogle Scholar
  5. D. Blog. Q1'10 web-based malware data and trends. http://blog.dasient.com/2010/05/q110-web-based-malware-data-and-trends.html, May 2012.Google ScholarGoogle Scholar
  6. D. Canali, M. Cova, G. Vigna, and C. Kruegel. Prophiler: a fast filter for the large-scale detection of malicious web pages. In International World Wide Web Conference (WWW), 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. C.-C. Chang and C.-J. Lin. LIBSVM - A Library for Support Vector Machines. http://www.csie.ntu.edu.tw/~cjlin/libsvm/, 2012. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. M. Cova, C. Kruegel, and G. Vigna. Detection and analysis of drive-by-download attacks and malicious JavaScript code. In International World Wide Web Conference (WWW), 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. C. Curtsinger, B. Livshits, B. Zorn, and C. Seifert. ZOZZLE: fast and precise in-browser JavaScript malware detection. In USENIX Security Symposium, 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  10. X. Dong, M. Tran, Z. Liang, and X. Jiang. AdSentry: comprehensive and exible confinement of JavaScript-based advertisements. In Annual Computer Security Applications Conference (ACSAC), 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  11. S. ECMA-262. ECMAScript language specification, edition 5.1. Technical Report ISO/IEC 16262:2011, ECMA International, June 2011.Google ScholarGoogle Scholar
  12. Evidon, Inc. Ghostery. http://www.ghostery.com/, 2012.Google ScholarGoogle Scholar
  13. B. Feinstein and D. Peck. Caffieine Monkey: Automated collection, detection and analysis of malicious JavaScript. In Black Hat USA, 2007.Google ScholarGoogle Scholar
  14. M. Foundation. SpiderMonkey (JavaScript-C) Engine. http://www.mozilla.org/js/spidermonkey/.Google ScholarGoogle Scholar
  15. D. Jang, R. Jhala, S. Lerner, and H. Shacham. An empirical study of privacy-violating information flows in JavaScript web applications. In ACM Conference on Computer and Communications Security (CCS), 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  16. A. Keep, A. Chauhan, C.-Y. Shei, and P. Ratnalikar. RubyWrite: A Ruby-embedded domain-specific language for high-level transformations. School of Informatics and Computing, Indiana University, Bloomington, 2009.Google ScholarGoogle Scholar
  17. P. G. Leon, B. Ur, R. Balebako, L. F. Cranor, R. Shay, and Y. Wang. Why Johnny can't opt out: A usability evaluation of tools to limit online behavioral advertising. Technical Report CMU-CyLab-11-017, Carnegie Mellon University, Pittsburgh, PA 15213, Oct. 2011.Google ScholarGoogle Scholar
  18. C. D. Manning, P. Raghavan, and H. Schtze. Introduction to Information Retrieval. Cambridge University Press, New York, NY, USA, April 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library
  19. Mozilla. Firebug. http://getfirebug.com/, 2012.Google ScholarGoogle Scholar
  20. G. Richards, C. Hammer, B. Burg, and J. Vitek. The eval that men do: A large-scale study of the use of eval in JavaScript applications. In European conference on Object-Oriented Programming (ECCOP), 2011. Google ScholarGoogle ScholarDigital LibraryDigital Library
  21. G. Richards, S. Lebresne, B. Burg, and J. Vitek. An analysis of the dynamic behavior of JavaScript programs. ACM SIGPLAN Not., 45:1--12, June 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  22. K. Rieck, T. Krueger, and A. Dewald. Cujo: Efficient detection and prevention of drive-by-download attacks. In Annual Computer Security Applications Conference (ACSAC), pages 31--39, 2010. Google ScholarGoogle ScholarDigital LibraryDigital Library
  23. T. Simonite. Ad Men and Browser Geeks Collide Over Web Protocols. http://www.technologyreview.com/news/428050/ad-men-and-browser-geeks-collide-over-web/, June 2012.Google ScholarGoogle Scholar
  24. D. Yu, A. Chander, N. Islam, and I. Serikov. JavaScript instrumentation for browser security. In ACM SIGPLAN-SIGACT Symposium on Principles of Programming Languages (POPL), 2007. Google ScholarGoogle ScholarDigital LibraryDigital Library
  25. C. Yue and H. Wang. Characterizing insecure JavaScript practices on the web. In International World Wide Web Conference (WWW), 2009. Google ScholarGoogle ScholarDigital LibraryDigital Library

Recommendations

Comments

Login options

Check if you have access through your login credentials or your institution to get full access on this article.

Sign in
  • Published in

    cover image ACM Conferences
    WPES '12: Proceedings of the 2012 ACM workshop on Privacy in the electronic society
    October 2012
    150 pages
    ISBN:9781450316637
    DOI:10.1145/2381966
    • General Chair:
    • Ting Yu,
    • Program Chair:
    • Nikita Borisov

    Copyright © 2012 ACM

    Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

    Publisher

    Association for Computing Machinery

    New York, NY, United States

    Publication History

    • Published: 15 October 2012

    Permissions

    Request permissions about this article.

    Request Permissions

    Check for updates

    Qualifiers

    • research-article

    Acceptance Rates

    Overall Acceptance Rate106of355submissions,30%

    Upcoming Conference

    CCS '24
    ACM SIGSAC Conference on Computer and Communications Security
    October 14 - 18, 2024
    Salt Lake City , UT , USA

PDF Format

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader