Manuscript Offprint

arXiv:2611.06257

Analysis of Local Open-Weight LLM Agents on Vulnerability-Reproduction Tasks

Jorge García-Carrasco, Javier Sanchis, Álvaro Navarro, Alejandro Maté, Juan Trujillo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Open-weight language models that fit on a single consumer GPU are becoming capable on a growing range of tasks, and they matter because they can run locally without sending the code to a hosted service. Vulnerability reproduction, turning a vulnerability description into an input that crashes the vulnerable build, is a natural target for them, since it is an automated analysis task closer to test generation than to code comprehension and it runs against a build that must be executed rather than read. In order to assess whether current models can perform it, we evaluate twelve configurations of local models, spanning three generations, two architectures and three quantization levels, on ten CyberGym vulnerability-reproduction tasks, three runs each under one harness, and release the full artefact.

We show that every configuration, down to the 4B model, solves most of the six easier tasks, and configurations separate only on the remaining four. For the harder tasks, the 27B model is required. Quantization did not change what the models solved in any matched pair, but it changed how fast they got there, and the mixture of experts reached the same scores in less wall clock. We also examine the agent trajectories. Almost every run we examined, including those that fail, names the vulnerable function and states the correct hypothesis, and what separates a solved task from an unsolved one is whether that hypothesis becomes a working input.

*Corresponding author. Email addresses: jorge.g@ua.es (Jorge García-Carrasco), javier.sanchis@ua.es (Javier Sanchis), alvaro.nl@ua.es (Álvaro Navarro), amate@dlsi.ua.es (Alejandro Maté), jtrujillo@dlsi.ua.es (Juan Trujillo)

Keywords: large language models, software agents, vulnerability reproduction, software security, quantization, local inference

1. Introduction

Large Language Models (LLMs) are neural networks trained on broad amounts of data in a self-supervised manner, whose performance scales predictably with model size, dataset size and training compute [1]. In software settings, they are able to interpret requirements, summarise the state of a repository, generate candidate implementations and propose repairs [2, 3]. By themselves, however, they act as single-turn text generators. Agentic systems extend them with a persistent workspace and explicit tool use [4, 5], so that the model can read and edit files, execute commands, inspect their output and revise a partial solution over multiple steps. In other words, it can act on the problem, observe the consequences of its actions and continue working until it decides to stop or reaches the solution. This self-verification capability is mainly what makes LLMs useful on many tasks.

In this regard, agents have shown promising capabilities in cybersecurity tasks, including vulnerability detection [6, 7], bug finding and patching [8], exploit generation [9] and vulnerability reproduction [10, 11].

Until recently, frontier closed models were clearly better than their open-weight alternatives, but this gap is narrowing with model families such as GLM [12], Kimi [13] and DeepSeek [14]. However, a particularly interesting but often overlooked group of open-weight models are those small enough to be served on a single consumer-grade graphics processing unit (GPU), either directly or under a plausible post-training quantization scheme. While these models are weaker than the larger ones, we argue that these models deserve more attention than they currently receive. They were previously too weak to sustain multi-step work, which contributed to their being displaced from most agentic evaluations, but they are quickly improving and are now able to complete tasks that would have been out of reach a few months earlier.

Using local open-weight models has concrete advantages which are particularly relevant in cybersecurity, namely: (i) the user is under full control of the deployed agent and is able to decide on relevant parameters such as size, quantization or type of model; (ii) the data stays local, which is important when such data is sensitive and private; and (iii) the user does not depend on a hosted endpoint, which can throttle requests or go down.

Some tasks suit that deployment better than others. Vulnerability reproduction belongs to this group, since it requires executing the vulnerable build rather than only reading it, and the source of an unpatched flaw is among the last things a laboratory would send to a third party.

Local open-weight agents are also beginning to be evaluated on tasks beyond general-purpose coding, with results that show competitive capabilities. For example, a 27B-parameter local model can obtain competitive results when writing code for embedded systems [15]. In cybersecurity, open-weight models have begun to appear either fine-tuned for a specific role or served through hosted endpoints [16, 17]. Earlier work found that all eight open-source LLMs tested at the time failed to exploit any real one-day vulnerability, while GPT-4 succeeded on the majority [18]; the open-weight models available today have since narrowed that gap. However, to the best of our knowledge, no work has systematically evaluated off-the-shelf open-weight models served locally on a single consumer-grade GPU, across a range of sizes, architectures and quantization levels, as general-purpose agents on vulnerability reproduction.

What makes this a software-engineering problem is where the difficulty sits. Reproducing a vulnerability is closer to test generation than to code comprehension: the agent reads a real code base, forms a hypothesis about a defect, and has to construct an input that exercises it against a build it cannot compile itself, revising from whatever feedback the harness returns. The results show that the models almost always form the right hypothesis, and what decides whether a task is solved is whether that hypothesis becomes an input that reaches the vulnerable code. The configuration choice therefore matters mostly through the number of attempts it buys and the quality of the loop around the model.

Motivated by these facts, this work addresses the following research questions:

  • RQ1. Can local open-weight agents reproduce known vulnerabilities?

  • RQ2. How does quantization affect their success?

  • RQ3. How do model size, architecture and generation affect their success?

  • RQ4. How do agents behave across the sequence of attempts during a task, and to what extent does that behaviour differ between configurations that reach the same final outcome?

To address these questions, we evaluate twelve local open-weight model configurations spanning three generations, two architectures, and three quantization levels on ten CyberGym vulnerability-reproduction tasks [11]. In CyberGym, each task requires the agent to produce a PoC (Proof-of-Concept) input that triggers a crash in the vulnerable target. Starting from a description of the vulnerability, the agent iterates by submitting candidate inputs and observing crash feedback, forming a closed self-verification loop across multiple submission attempts.

Hence, the main contributions presented in this paper are:

  1. A controlled evaluation of twelve local open-weight configurations (three generations, two architectures, three quantization levels) on ten CyberGym vulnerability-reproduction tasks, yielding 360 runs and 3,501 submitted candidates.

  2. The full artefact: agent trajectories, every submitted input and the per-submission outcomes on both builds, released as a public dataset [19].

The remainder of the paper is structured as follows. Section 2 reviews related work. Section 3 describes the benchmark, the agent harness, the model configurations and the evaluation protocol. Section 4 reports the results, Section 5 answers the research questions and states the limits of the answers, and Section 6 concludes.

References (42)