[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-759800-105":59,"doc-detail-759800-en":129,"doc-similar-759800":161},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":122,"head_meta":124,"extra_data":126,"updated_unix":128},105,"en","compromising-filesystems-with-npm-dependencies-bachelor-thesis","Compromising filesystems with npm dependencies - Bachelor Thesis","","JavaScript dependencies from the npm ecosystem can execute arbitrary code on developers’ machines during installation via install hooks. This bachelor thesis evaluates the risk of that ability and recommends mitigation strategies. A dedicated analysis software was built and used to examine about 250,000 existing packages for evidence of such behavior. The dynamic analysis found no overtly malicious results, while manual inspection revealed packages exfiltrating sensitive information. Recommended defenses include suppressing code execution and restricting system access outside the development directory.",{"@graph":69,"@context":121},[70,84,104],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/compromising-filesystems-with-npm-dependencies-bachelor-thesis/759800/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":98,"encodingFormat":97,"isAccessibleForFree":99,"interactionStatistic":100},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/compromising-filesystems-with-npm-dependencies-bachelor-thesis/759800.png","ImageObject",300,407,{"name":92,"@type":93},"vwvw","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-28",true,{"@type":101,"interactionType":102,"userInteractionCount":8},"InteractionCounter",{"@type":103},"ViewAction",{"@type":105,"mainEntity":106},"FAQPage",[107,113,117],{"name":108,"@type":109,"acceptedAnswer":110},"What security risk does this thesis focus on in the npm ecosystem?","Question",{"text":111,"@type":112},"It focuses on arbitrary code execution during package installation via install hooks (install scripts), which can increase attack surface for developers’ systems.","Answer",{"name":114,"@type":109,"acceptedAnswer":115},"How was the analysis performed to assess the risk?",{"text":116,"@type":112},"The thesis builds an analysis pipeline and applies dynamic analysis across about 250,000 packages, supported by further manual examination of npm metadata.",{"name":118,"@type":109,"acceptedAnswer":119},"What mitigation strategies does the thesis recommend?",{"text":120,"@type":112},"It advocates suppressing install-hook code execution and strongly restricting system access for development projects outside the development directory.","https://schema.org",{"og:url":83,"og:type":123,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":125,"canonical":83},"index,follow",{"doc_id":127,"site_id":62},759800,1795895117,{"code":4,"msg":5,"data":130},{"doc_id":127,"user_id":131,"nickname":92,"user_avatar":132,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":133,"file_id":134,"file_url":135,"file_type":136,"file_size":137,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":138,"language":139,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":140,"faqs":141,"seo_title":142,"seo_description":67,"update_tm":128,"read_time":143,"preview_page_count":19,"preview_urls":144},3985747874149,"https://ap-avatar.wpscdn.com/avatar/3a001161165b4dc3d9e?x-image-process=image/resize,m_fixed,w_180,h_180&k=1790129441039064114","Compromising filesystems with npm dependencies  \nBachelor Thesis  \nJonas Zohren  \nDepartment of Computer Science  \nSecure Software Engineering Group Supervisors:  \nProf. Dr. Ben Hermann (Chair 5)  \nProf. Dr. Falk Howar (Chair 14)  \n2022‑06‑15 (git: 5d13dc7)  \nContents  \nAbstract 1  \n1 Introduction 2  \n1. 1 Motivation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2  \n1.2 Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3  \n1.3 Research Questions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3  \n2 Background 4  \n2.1 npm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4  \n2.1.1 Registry .................................. 4  \n2.1.2 package.json ............................... 5  \n2.1.3 CLI Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  \n2.2 Docker . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  \n2.2. 1 Dockerfiles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  \n2.2.2 Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  \n2.2.3 Containers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  \n2.3 Celery . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  \n2.4 Strace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  \n3 Study Design 11  \n3.1 Design Goals ................................... 11  \n3.2 Infrastructure Setup ............................... 12  \n3.3 Gathering Metadata ................................ 12  \n3.4 Statistical Metadata Analysis ........................... 13  \n3.5 Package Behavior Analysis ............................ 15  \n3.6 Analysis Results Web App ............................. 16  \n3.7 Risk Factor Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  \n4 Research Results 20  \n4. 1 Statistical Metadata . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20  \n4.2 Package Behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21  \n5 Discussion 22  \n5.1 Analysis – Metadata ................................ 22  \n5.2 Malicious packages ................................ 22  \n5.3 Analysis – Package Behavior ........................... 26  \n5.4 Possible Security Improvements ......................... 27  \n5.5 Known Deficits of our Method . . . . . . . . . . . . . . . . . . . . . . . . . . 28  \n6 Related Work 29  \n7 Conclusion 31  \n7.1 Research Questions answered . . . . . . . . . . . . . . . . . . . . . . . . . . 31  \n7.2 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  \n7.3 Future Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  \n8 References 33  \nAbstract  \nJavaScript‐Abhängigkeiten aus dem npm‐Ökosystem können schon bei der Installation mithilfe sogenannter „install hooks“ auf dem eigenen Computer beliebigen Code ausführen. In dieser Bachelorarbeit wird die Benutzung dieses Features einer Risiko‐Analyse unterzogen und Abwehrstrategien empfohlen. Dazu wurde eine Analyse‐Software entwickelt, mit der etwa 250.000 existierende Pakete daraufhin untersucht wurden. Auch wenn mit dieser Analyse kein offensichtlich bösartiges Verhalten nachgewiesen wurde, konnten einige Pakete, die Informationen stahlen, an npm gemeldet werden. Als Abwehrstrategie wird abschließend empfohlen, Code‐Execution zu unterbinden und den System‐Zugrifffür Entwicklungsprojekte stark einzuschränken.  \nJavaScript packages from the npm ecosystem can execute arbitrary code on developers’ma‐ chines upon installation. Our work analyzes the existing usage for its risk and proposes miti‐ gation strategies. To do so, we built an analysis pipeline and used it to check around 250,000 packages for their usage of that ability. While this dynamic analysis did not yield any malicious results, we did find 15 packages exfiltrating sensitive information by manual","cbCaimGq9ZhUtMaP","https://ap.wps.com/l/cbCaimGq9ZhUtMaP","pdf",7803965,38,"English","# Abstract\n# 1 Introduction\n## 1.1 Motivation\n## 1.2 Structure\n## 1.3 Research Questions\n# 2 Background\n## 2.1 npm\n## 2.2 Docker\n## 2.3 Celery\n## 2.4 Strace\n# 3 Study Design\n## 3.1 Design Goals\n## 3.2 Infrastructure Setup\n## 3.3 Gathering Metadata\n## 3.4 Statistical Metadata Analysis\n## 3.5 Package Behavior Analysis\n## 3.6 Analysis Results Web App\n## 3.7 Risk Factor Calculation\n# 4 Research Results\n## 4.1 Statistical Metadata\n## 4.2 Package Behavior\n# 5 Discussion\n## 5.1 Analysis – Metadata\n## 5.2 Malicious packages\n## 5.3 Analysis – Package Behavior\n## 5.4 Possible Security Improvements\n## 5.5 Known Deficits of our Method\n# 6 Related Work\n# 7 Conclusion\n## 7.1 Research Questions answered\n## 7.2 Limitations\n## 7.3 Future Works\n# 8 References","[{\"question\":\"What security risk does this thesis focus on in the npm ecosystem?\",\"answer\":\"It focuses on arbitrary code execution during package installation via install hooks (install scripts), which can increase attack surface for developers’ systems.\"},{\"question\":\"How was the analysis performed to assess the risk?\",\"answer\":\"The thesis builds an analysis pipeline and applies dynamic analysis across about 250,000 packages, supported by further manual examination of npm metadata.\"},{\"question\":\"What mitigation strategies does the thesis recommend?\",\"answer\":\"It advocates suppressing install-hook code execution and strongly restricting system access for development projects outside the development directory.\"}]","Compromising filesystems with npm dependencies - Bachelor Thesis | PDF",96,[145,149,153,157],{"page_no":8,"url":146,"width":147,"height":148},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/16a611fe4399b498858c19862490a84a.webp",983,1390,{"page_no":14,"url":150,"width":151,"height":152},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/ac591ce68b8dc2ed2e08cc65e1c1f91f.webp",982,1388,{"page_no":81,"url":154,"width":155,"height":156},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/da830c1bc2ad9e9d421aca3f1512a6f8.webp",981,1387,{"page_no":19,"url":158,"width":159,"height":160},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-28/01112dc51e7b3e8c98e8818355b5509f.webp",980,1385,{"list":162,"token":66},[163,170,176,183,190,196,203,210,217,224],{"doc_id":164,"doc_title":165,"file_type":136,"home_preview_img_url":166,"slug":167,"view_count":168,"category_name":40,"create_tm":169},83011,"Hidden Amplifiers Cross-Level Risk in Software Supply Chains","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808926638/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=y%2FfshwlyY43GAunRx%2FcgbFFTLok%3D","hidden-amplifiers-cross-level-risk-in-software-supply-chains",23,1784184655,{"doc_id":171,"doc_title":172,"file_type":136,"home_preview_img_url":173,"slug":174,"view_count":24,"category_name":40,"create_tm":175},655707,"HookLens: Visual Analytics for Understanding React Hooks Structures - Abstract","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974776115/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=d%2BBE62O3NAIT9a%2BFQO2YP5WIdpc%3D","hooklens-visual-analytics-for-understanding-react-hooks-structures-abstract",1792963388,{"doc_id":177,"doc_title":178,"file_type":136,"home_preview_img_url":179,"slug":180,"view_count":181,"category_name":40,"create_tm":182},82736,"LLM-Enhanced Hierarchical Heterogeneous Graph Representation Learning for Malicious Python Package Detection","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808783769/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=9Pf1zdSBObY6JvsGHo1Vwt8b7To%3D","llm-enhanced-hierarchical-heterogeneous-graph-representation-learning-for-malicious-python-package-detection",24,1784182586,{"doc_id":184,"doc_title":185,"file_type":136,"home_preview_img_url":186,"slug":187,"view_count":188,"category_name":40,"create_tm":189},86476,"Which Neurons Detect Malicious Code? A Probing Study of LLM Security Knowledge","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229809525749/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=IQVpd%2Fb5xODSvb0QDZkUMGEDSJ0%3D","which-neurons-detect-malicious-code-a-probing-study-of-llm-security-knowledge",29,1784211980,{"doc_id":191,"doc_title":192,"file_type":136,"home_preview_img_url":193,"slug":194,"view_count":8,"category_name":40,"create_tm":195},760815,"Trojan’s Whisper - Stealthy Manipulation of OpenClaw through - Injected Bootstrapped Guidance","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230044530720/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=ueA47Wu6mQGtOSGrUYbasQpsB1g%3D","trojans-whisper-stealthy-manipulation-of-openclaw-through-injected-bootstrapped-guidance",1795910027,{"doc_id":197,"doc_title":198,"file_type":136,"home_preview_img_url":199,"slug":200,"view_count":201,"category_name":40,"create_tm":202},460463,"Private Pädagogische Hochschule der Diözese Linz - FACTSHEET 2026/27","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229925717608/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=5WHrfWabSxy8sfvdjreC8btDaIk%3D","private-padagogische-hochschule-der-diozese-linz-factsheet-202627",12,1790758549,{"doc_id":204,"doc_title":205,"file_type":136,"home_preview_img_url":206,"slug":207,"view_count":208,"category_name":40,"create_tm":209},82127,"The Patchwork Problem in LLM-Generated Code","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229808714335/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=zzj%2FxvAQn4kmRS4P4Fy8Hq1tqSM%3D","the-patchwork-problem-in-llm-generated-code",31,1784178356,{"doc_id":211,"doc_title":212,"file_type":136,"home_preview_img_url":213,"slug":214,"view_count":215,"category_name":40,"create_tm":216},234,"XNX Gas Detector Calibration Guide 2023","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727733/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=5El9wdyAEVweKTA%2BIvrKTOejT6k%3D","xnx-gas-detector-calibration-2023",7896,1776136863,{"doc_id":218,"doc_title":219,"file_type":136,"home_preview_img_url":220,"slug":221,"view_count":222,"category_name":40,"create_tm":223},227,"Sridevi Matka Chart Full Guide to Panel, Jodi & Pana Records","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693727553/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=QS6PkJ2IAvbbh4QFsJj3fSLlGsw%3D","sridevi-matka-chart-full-guide-to-panel-jodi-pana-records",6933,1776136851,{"doc_id":225,"doc_title":226,"file_type":136,"home_preview_img_url":227,"slug":228,"view_count":229,"category_name":40,"create_tm":230},167314,"Linear Algebra and Its Applications 6th edition Textbook by david c. lay","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229876163444/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796110679&Signature=ZaecWPtG%2F0zEmJqbrul5pkOAA%2Bo%3D","linear-algebra-and-its-applications-sixth-edition-david-c-lay-steven-r-lay-judi-j-mcdonald",5866,1788211707]