Software Dependency Discovery: Hidden vulnerabilities within third-party libraries
2024 (English)Independent thesis Advanced level (degree of Master (Two Years)), 20 credits / 30 HE credits
Student thesisAlternative title
Spökberoenden : Gömda sårbarheter i tredje-parts bibliotek (Swedish)
Abstract [en]
The increasing prevalence of software reuse and the popularity of package managers have led to rising concerns regarding dependencies to dead code through third-party libraries. This study aims to identify which third-party libraries can be replaced to minimise dependency to dead code and thereby enhance applications software security. Replacement of third-party libraries is defined as when a library exhibits high vulnerability and low dependency to an application. Vulnerability is assessed using the metric of lines of code, while dependency is measured based on the number of file references to the library. An automated tool was developed to measure the potential for replacement according to the defined metrics. The tool can prioritise and display libraries based on how easily they can be replaced. Finally, an evaluation of the tool was conducted to determine whether themost replaceable library could be successfully replaced without affecting the functionality of the application.The library identified for replacement was successfully substituted without disrupting the application’s functionality. In addition to decreasing dependency to dead code, this replacement reduced the application’s attack surface area, thereby potentially enhancingits overall security.
Place, publisher, year, edition, pages
2024.
Keywords [en]
Software security, third party libraries, dependency, automated tool, dependency discovery
National Category
Computer Sciences
Identifiers
URN: urn:nbn:se:liu:diva-206545ISRN: LIU-IDA/LITH-EX-A--24/077--SEOAI: oai:DiVA.org:liu-206545DiVA, id: diva2:1890489
Subject / course
Computer Engineering
Presentation
2024-06-20, Alan Turing, Linköping, 19:11 (English)
Supervisors
Examiners
2024-08-272024-08-192024-08-27Bibliographically approved