{"id":{"repo_id":"buffalo","oai_identifier":"oai:ubir.buffalo.edu:10477/90555"},"canonical_url":"https://search.ndltd.org/etd/buffalo/oai:ubir.buffalo.edu:10477/90555","repository":{"repo_id":"buffalo","name":"Buffalo","base_url":"https://ubir.buffalo.edu/oai/request"},"display":{"title":"Web Library Detection and its Security Implications in the Wild","abstract":"Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","abstract_html":"Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","abstract_has_math":false,"creators":["Liu, Xinyue; 0000-0001-6604-6229"],"institution":"State University of New York at Buffalo","degree_name":null,"degree_level":null,"degree_discipline":null,"degree_department":null,"school":null,"contributors":["Ziarek, Lukasz","Computer Science and Engineering"],"advisors":[],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-19T07:11:07Z","subjects":["computer science"],"languages":["eng"],"rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10477/90555","outbound_label":"Handle","outbound_source":"dc:identifier","record_url":"https://hdl.handle.net/10477/90555","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Abuffalo%3Aoai%3Aubir.buffalo.edu%3A10477%2F90555","prefix":"oai_dc"},"source_record":{"url":"https://ubir.buffalo.edu/oai/request?verb=GetRecord&metadataPrefix=qdc&identifier=oai%3Aubir.buffalo.edu%3A10477%2F90555","prefix":"qdc"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor","label":"Contributor","values":["Ziarek, Lukasz","Computer Science and Engineering"]},{"key":"dc:creator","label":"Author","values":["Liu, Xinyue; 0000-0001-6604-6229"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date","label":"Dc Date","values":["2026-03-20T15:30:09Z","2025","2025-08-04 22:27:14"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2026-03-20T15:30:09Z"]},{"key":"dc:date.created","label":"Dc Date Created","values":["2026-03-20T15:30:09Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:publisher","label":"Institution","values":["State University of New York at Buffalo"]},{"key":"dc:type","label":"Dc Type","values":["Text","Dissertation"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["computer science"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language","label":"Dc Language","values":["eng"]},{"key":"dc:rights","label":"Dc Rights","values":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier","label":"Identifier","values":["http://hdl.handle.net/10477/90555"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description","label":"Description","values":["Ph.D.","Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"]},{"key":"dc:description.abstract","label":"Abstract","values":["Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"]},{"key":"dc:format","label":"Dc Format","values":["application/pdf"]},{"key":"dc:title","label":"Title","values":["Web Library Detection and its Security Implications in the Wild"]}]}],"canonical_facts":{"dc:contributor":["Ziarek, Lukasz","Computer Science and Engineering"],"dc:creator":["Liu, Xinyue; 0000-0001-6604-6229"],"dc:date":["2026-03-20T15:30:09Z","2025","2025-08-04 22:27:14"],"dc:date.available":["2026-03-20T15:30:09Z"],"dc:date.created":["2026-03-20T15:30:09Z"],"dc:date.issued":["2025"],"dc:description":["Ph.D.","Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"],"dc:description.abstract":["Identifying the front-end libraries used in modern web applications is a critical task for website profiling, sales intelligence, and web security analysis. However, existing detection tools face limitations: they often rely on manually curated features, struggle to detect libraries bundled by modern packers like Webpack, and lack support for version-level granularity. This thesis presents a comprehensive solution to these challenges through the development of two novel tools: PTdetector for automated library identification and PTV for precise version detection. We first introduce PTdetector, a browser-based tool that leverages a novel runtime data structure called the pTree, which captures the hierarchical relationships of JavaScript objects on a page. Unlike traditional approaches, pTree features can be generated automatically, enabling robust detection even when libraries are obfuscated or bundled. PTdetector demonstrates superior accuracy over existing tools and successfully identifies libraries on 200 high-traffic websites. To extend this capability to version-level detection, we propose the Unique Subtree Mining Algorithm, which extracts minimal yet sufficiently distinctive substructures from a forest of pTrees. This significantly reduces storage overhead — by up to 99% – while preserving discriminative power across 30,810 versions of 556 libraries. We integrate this algorithm into a system called PTV, which not only achieves state-of-the-art version detection accuracy but also uncovers 190 known vulnerabilities brought by libraries in the wild. Using the above two tools, we further conduct a large-scale empirical analysis of the web library ecosystem. Our dataset includes 3,335 web libraries and one million top-traffic websites. We find that while the total usage of libraries continues to increase over the years, the number of actively maintained libraries has dropped sharply since 2014, indicating a widespread reliance on outdated or abandoned libraries. This stagnation leads to significant security concerns: approximately one in ten library usages in the wild is linked to a known vulnerability. Our study offers in-depth insights into the structural weaknesses of the web library ecosystem and discusses practical strategies to mitigate their impact.","**To request an accessible version of the file(s) associated with this item, contact library@buffalo.edu. Please include the item's persistent URL [http://hdl.handle.net/. . .] in your request.**"],"dc:format":["application/pdf"],"dc:identifier":["http://hdl.handle.net/10477/90555"],"dc:language":["eng"],"dc:publisher":["State University of New York at Buffalo"],"dc:rights":["Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions."],"dc:subject":["computer science"],"dc:title":["Web Library Detection and its Security Implications in the Wild"],"dc:type":["Text","Dissertation"]},"updated_at":"2026-11-19T07:11:07Z"}