Skip to content

PkgScanArena: Benchmarking LLM-Based Package Scanners against Indirect Prompt Injection

Nov 2026 · ACM Workshop on Artificial Intelligence and Security (AISec) · 26 references
Adversarial Robustness in Machine Learning

Abstract

Open-source package ecosystems such as PyPI and npm remain persistent targets for malicious campaigns. These campaigns have outgrown signature-based triage, so recent work has turned to large language models (LLMs) that scan package content and return a verdict, which lets the analysis consume attacker-controlled text. In 2026, the Hades campaign on PyPI carried a prompt injection written to hijack the scanner’s instructions and coerce a clean verdict. Indirect prompt injection is well studied, but its reach into automated package-security analysis remains unmeasured. We therefore ask a broader question. How reliable are LLM-based package scanners when the package itself is written to manipulate the analysis? We present PkgScanArena, a benchmark that pairs a vetted dataset of 2,000 malicious and 1,000 benign npm and PyPI packages with a taxonomy of 11 techniques and 3 injection channels across three attacker goals, namely evasion, denial, and sabotage. An AST-guided pipeline injects these prompts into real packages, and we evaluate 25 open-weight and proprietary model configurations together with two deployed scanners. Our benchmark inverts the expected threat. Evasion proves largely unattainable, at or below 0.6% for nine of ten cloud models. Exposure instead shifts to the opposite direction: benign accuracy degrades for all but two of the 25 backends, sabotage reaches 31.1%, and denial reaches 19.6% on the most safety-aligned model. The two deployed scanners inherit both weaknesses. The exposure lies not in coercing a scanner to miss malicious code, but in coercing it to condemn benign code.

View source

Similar papers

#computer vision Open access Jun 2016

Software Development in Startup Companies: The Greenfield Startup Model

The results are packaged in the Greenfield Startup Model (GSM), which explains the priority of startups to release the product as quickly as possible, and the need to shorten time-to-market, by speeding up the development through low-precision engineering activities.

Carmine Giardino, Nicolò Paternoster, M. Unterkalmsteiner et al. · 178 citations · ⚡14
#computer vision Open access Oct 2016

Software Startups - A Research Agenda

Software startup companies develop innovative, software-intensive products within limited timeframes and with few resources, searching for sustainable and scalable business models.

M. Unterkalmsteiner, P. Abrahamsson, Xiaofeng Wang et al. · 157 citations · ⚡17
#machine learning Review Open access Oct 2016

“Failures” to be celebrated: an analysis of major pivots of software startups

This study conducts a case survey study based on the secondary data of the major pivots happened in 49 software startups, and demonstrates that customer need pivot is the most common among all pivot types.

Sohaib Shahid Bajwa, Xiaofeng Wang, Anh Nguyen-Duc et al. · 127 citations · ⚡15
#computer vision Review Open access May 2015

A survey study on major technical barriers affecting the decision to adopt cloud services

The comparison of adopter and non-adopter sample reveals three potential adoption inhibitor, security, data privacy, and portability, which underlines the importance of the technical and security perspectives for research investigating the adoption of technology.

Nattakarn Phaphoom, Xiaofeng Wang, S. Samuel et al. · 111 citations · ⚡8
#computer vision Conference Open access Dec 2013

Affordable and Energy-Efficient Cloud Computing Clusters: The Bolzano Raspberry Pi Cloud Cluster Experiment

The ongoing work building a Raspberry Pi cluster consisting of 300 nodes is presented, with potential use cases being an inexpensive and green test bed for cloud computing research and a robust and mobile data center for operating in adverse environments.

P. Abrahamsson, S. Helmer, Nattakarn Phaphoom et al. · 110 citations · ⚡7
#large language models Review Open access Nov 2020

Status of the WHO recommended timing and frequency of antenatal care visits in Northern Bangladesh

Objective There is dearth of information on the timeliness of antenatal care (ANC) uptake. This study aimed to determine the timely ANC uptake by a medically trained provider (MTP) as per the World Health Organization (WHO) recommendations and the country guideline. Methods Cross-sectional survey was done with 2,731 wo...

B. Sarker, Musfikur Rahman, T. Rahman et al. · 89 citations · ⚡7

Related blog posts

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.