Year: 2025
Type: other
Abstract: The growing reliance on open-source dependencies from repositories such as PyPI presents significant security risks, as malicious packages can infiltrate and compromise computing systems and networks. This thesis introduces MA-MPD, a novel multi-agent system leveraging Large Language Models (LLMs) to detect malicious Python packages, identify malicious files within them, and provide valid justifications for classification decisions. MA-MPD adopts a three-agent architecture in which agents specialise in extracting and formatting package files, analysing files for malicious content, and classifying the package as benign or malicious. The MA-MPD workflow enables dynamic analysis of Python files within each package. Evaluated on datasets from Datadog and the Backstabber private index, MA-MPD outperformed fine-tuning and Retrieval-Augmented Generation (RAG) methods, achieving recall rates of 97.76\% with Gemini 2.5 Flash and 99.60\% with GPT-4o-mini. This work advances the scalability and effectiveness of automated malicious package detection, contributing to improved security in software repositories and informing the design of future security automation frameworks.
Source: Doria (University of Helsinki)
Author: Ibiyo, Motunrayo Osatohanmen
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
Funder: China Scholarship Council
OpenAlex ID: W7115388677
