LLM Vulnerability Exploitation Evaluation: Designing a Five-Level Capability Framework

    A realistic evaluation of large language models should measure more than vulnerability knowledge or a binary exploit success rate. This article outlines a five-level framework for assessing exploitation capabilities in authorized, isolated environments, covering reproducible test sets, deterministic verification, operating modes, cost metrics, and governance controls. It also explains how to interpret intermediate progress and build an auditable evaluation pipeline without overstating what benchmark results demonstrate.

    1. Why Evaluate Exploitation of Real Vulnerabilities?

    Traditional evaluations of large language model security capabilities often rely on two types of scenarios. The first consists of challenge-style toy problems with highly simplified conditions and a single success criterion. The second uses manually constructed sandboxes that are controllable but differ substantially from production environments in software versions, mitigations, process models, and privilege boundaries.

    These evaluations can establish whether a model understands a concept. They are less effective at determining whether it can progressively turn a known vulnerability into a verifiable exploitation outcome in a controlled environment.

    Evaluating real vulnerabilities shifts the focus from knowledge recall to a complete action-and-verification loop. An end-to-end exploitation attempt typically involves several stages: triggering the vulnerability, leaking information, establishing memory read and write capabilities, controlling execution flow, and executing code. Environmental differences can cause failure at any stage. The model therefore needs planning, tool use, error recovery, and evidence assessment capabilities.

    An evaluation should record not only whether an attempt succeeds, but also where progress stops and whether the failure can be reproduced.

    This work is inherently dual-use. Evaluations must run in isolated sandboxes, use authorized samples, and remain subject to strict auditing. They must not target real-world systems. Access controls, rate limits, evidence retention, and sanitized reporting are necessary to balance security research with risk management.

    2. Building the Test Set and Reproducible Environments

    Reproducibility is the first requirement for evaluating real vulnerabilities. Test samples should use actual flaws associated with publicly documented vulnerability identifiers and cover multiple host environments, such as browser renderer processes, server-side scripting runtimes, and edge-function runtimes.

    A test set limited to one vulnerability class may reward overfitting to a particular exploitation pattern. Each sample should pin the host version, dependencies, launch arguments, permission settings, and mitigations, with the resulting environment preserved as a snapshot.

    At a minimum, sample metadata should include:

    • Vulnerability trigger conditions
    • Affected components
    • Expected observable signals
    • Permitted actions and operational boundaries
    • Required success-evidence format
    • Timeout policy
    • Scoring weights

    Environments should approximate production configurations while remaining isolated from external networks and real data.

    To reduce training-data contamination, the test set can be divided into three groups:

    • Public set: Supports comparisons across models.
    • Held-out set: Supports qualification assessments.
    • Rotating set: Is refreshed periodically to reduce inflated scores from memorized vulnerability details.

    Evaluation reports should also document the model’s training cutoff, tool permissions, prompting mode, and number of attempts. Without this context, a single success rate is easy to misinterpret.

    Internal evaluation data should be versioned and supported by tamper-resistant logs so that results remain comparable and cannot be silently altered as they are shared.

    3. A Five-Level Capability Ladder

    A binary success-or-failure outcome is insufficient for end-to-end exploitation evaluation. A capability ladder provides a more useful breakdown into observable stages.

    • L1 — Trigger and confirmation: The model causes the target to enter an abnormal state or reaches the intended vulnerability condition, then confirms it through a stable signal.
    • L2 — Information disclosure: The model obtains address, pointer, or layout information that can support subsequent exploitation.
    • L3 — Arbitrary read and write: The model reads and writes designated sentinel memory within controlled boundaries, demonstrating a usable primitive.
    • L4 — Control-flow control: The model influences the program counter or an equivalent control target, demonstrating control-flow hijacking capability.
    • L5 — End-to-end code execution: The model executes a predefined harmless payload and returns a marker, completing a stable, verifiable loop.

    These levels have prerequisite relationships rather than representing independent opportunities to earn points. Reaching L2 indicates information-disclosure capability, but not a working read/write primitive. Reaching L3 without L4 suggests that the bottleneck may involve control-flow construction or adaptation to the environment.

    Scoring can combine the highest continuously verified level with partial-progress signals. This rewards meaningful intermediate progress while preventing incidental signals from producing unjustifiably high scores.

    Harmless payloads and sentinel data should be used throughout the evaluation.

    4. Deterministic Verifiers as the Scoring Core

    A central component of the framework is a deterministic automated verifier. Rather than relying on an LLM or human reviewer for routine scoring, the verifier collects observable sandbox signals and applies explicit rules.

    These signals may include crash signatures, memory-access ranges, register states, system-call sequences, output markers, and process behavior. Rule-based verification reduces subjective variation and improves repeatability.

    The following pseudocode illustrates the evaluation structure:

    1. function evaluate(model, sample, mode):
    2. env = sandbox.restore(sample.snapshot)
    3. trace = []
    4. for step in range(sample.max_steps):
    5. action = model.act(env.observation(), mode)
    6. result = env.apply(action)
    7. trace.append(record(action, result, env.signals()))
    8. if verifier.reached(sample, trace, "L2"):
    9. continue
    10. if verifier.reached(sample, trace, "L5"):
    11. break
    12. level = verifier.max_continuous_level(sample, trace)
    13. score = weighted_score(level, sample.weights, trace)
    14. return score, trace, verifier.evidence(trace)

    Verifier design requires three safeguards:

    1. Versioned rules and traceable evidence. Every score should be attributable to a specific rule version and its supporting evidence.
    2. Cross-validation across signals. A single output should not be sufficient if it can be fabricated.
    3. Retention of failed trajectories. Failure traces help identify where a model lost context or misinterpreted the environment.

    Deterministic verification does not eliminate expert involvement. Specialists still need to design rules, review samples, and investigate anomalies. It does, however, allow routine scoring to be automated.

    5. Operating Modes, Costs, and Result Interpretation

    Evaluations typically distinguish between human-guided and fully autonomous operation.

    Human-guided mode measures execution capability after the model receives directional hints. Fully autonomous mode measures planning, tool use, and recovery without that guidance.

    A commonly reported pattern in public comparisons is that leading models achieve broader coverage of higher capability levels and higher average scores with human guidance. Average scores decline in fully autonomous settings, suggesting that long-horizon tasks remain constrained by context management and strategy stability.

    Cost is equally important. End-to-end exploitation success rates are often low, and models may require many attempts. Model invocation costs, sandbox resources, and evaluation time can differ by an order of magnitude.

    Reports should therefore include more than an average score:

    • Cost per successful exploitation
    • Marginal cost of advancing one capability level
    • Timeout rate
    • Manual setup cost

    Changes to internal evaluation data should be handled through version audits and result review. Vendor-reported figures should not be treated as independent findings without verification.

    6. Enterprise Implementation and Limitations

    An internal evaluation pipeline can separate the sample repository, environment snapshots, isolated sandboxes, deterministic verifiers, scoring service, and audit logs into distinct components.

    In a general-purpose cloud environment, including Baidu AI Cloud where applicable, container platforms can host isolated sandboxes, object storage can retain snapshots and evidence, and logging and monitoring services can support auditing and anomaly detection. Model access should follow the principle of least privilege, with evaluation tasks restricted to authorized samples.

    The framework also has clear limitations. Fixed test sets can be overfit. Verifiers can assess only the signals they can observe. Real-world privilege models, network conditions, and user interactions are more complex than those represented in controlled environments.

    Future improvements may include dynamic sample generation, private held-out sets, adaptation across multiple host environments, and assessments of evidence-chain explainability.

    A useful evaluation framework must bring capability levels, deterministic scoring, cost accounting, and governance constraints together. Only then can real-vulnerability evaluation reveal meaningful boundaries of model capability without allowing a single score to obscure the evidence.