CyberEvolver: Structured Online Self-Evolution for Cybersecurity AgentsCyberEvolver: Structured Self-Evolution for Cybersecurity Agents On the Fly
The authors propose CyberEvolver, which lets cybersecurity agents self-rewrite their scaffolding based on failure trajectories; the authors report that it exceeds the seed agent's pass@16 by 13.6% on average across four open-source models and three benchmarks.
- Existing cybersecurity LLM agents mostly use fixed, manually designed scaffolds and struggle to adapt to different objectives and failure modes; the authors argue that cybersecurity is suitable for on-policy self-evolution, but there are three difficulties: unstructured mutation space, feedback obscured by the environment, and insufficient mutation diversity.
- CyberEvolver splits agent scaffolding into four layers: strategy, environment interface, perception, and domain knowledge; it extracts mutation signals from failure logs via trajectory compression plus structured diagnosis, then uses beam search to retain multiple agent variants at each generation and mutate them layer by layer.
- On the three benchmarks NYU CTF, AutoPenBench, and CVEBench and four open-source models, the authors report that CyberEvolver exceeds the seed agent by an average of 13.6% pass@16 and is higher than six manually designed agents and the two self-improvement baselines ACE and HGM on all 16 model×benchmark configurations.
- The authors state: the evaluation is limited to offensive cyber tasks, with defensive workflows, real-world validation, and disclosure processes left for future work; the evolution budget is at most 16 nodes per target; cross-target transfer is not studied. The models under test are four open-source models, and the benchmarks are three.
- Evaluated models
- Kimi-K2.5MiniMax-M2.5DeepSeek-V3.1Qwen3-235B-A22B-Instruct-2507
- Benchmarks
- NYU CTF BenchAutoPenBenchCVEBench v2.1
- Metrics
- solve ratepass@kprogress score ssibling cosine distance
CyberEvolver is a self-evolving cybersecurity agent framework that can iteratively modify its own scaffold based on experience from failed executions. It consists of a four-layer evolvable agent architecture, a trace-to-diagnosis mechanism that converts execution logs into revision signals, and a population-based beam search that preserves diverse variants. The authors evaluate it on CTF, exploit, and penetration testing tasks with four open-source LLMs; success rate improves by an average of 13.6% over the initial agent, and it surpasses six human-designed cybersecurity agents and two self-improvement methods ported from other domains.
Paper analysis
What problem does this paper attempt to solve?
The authors study whether cybersecurity agents can self-evolve scaffolding on the fly for a single target, to break through the capability ceiling of fixed human-designed scaffolds.
Core question: existing cybersecurity LLM agents rely on fixed human-designed scaffolding (prompts, tools, workflows) and cannot adapt to tasks and failure modes; the authors study whether they can self-evolve "on the fly" for a single target.
- Problem scenario: cybersecurity tasks span CTF, penetration testing, vulnerability exploitation, and vulnerability discovery, which the authors consider highly heterogeneous—even within the same vulnerability category, different targets require different tools, exploitation techniques, and reasoning patterns, making a unified scaffolding hard to transfer.
- Shortcomings of existing methods: the authors note that existing self-evolution methods are mainly validated in the coding domain, and applying them directly to cybersecurity fails along three dimensions: the mutation space is unstructured (arbitrary rewriting or storing only textual summaries), the mutation signal is obscured by an adversarial environment (a failure may return only a connection reset), and single-trajectory evolution lacks diversity, leading to error accumulation.
- Core observation: the authors argue that cybersecurity is particularly suited to on-policy self-evolution for three reasons: task heterogeneity requires per-target adaptation; success has clean programmatic verifiers (flag matching, shell obtained, privilege escalation completed); and each solved instance has independent value.
- What the paper proposes: CyberEvolver, a self-evolving cybersecurity agent framework comprising a four-layer evolvable architecture, a trajectory-to-diagnosis mechanism, and population-based beam search; it also includes a unified evaluation suite that integrates three benchmarks and supports large-scale parallel evaluation.
- Setting note: this is not an attack or defense paper but a study of agent capability methods; the victim systems are controlled benchmark environments (CTF targets, Dockerized vulnerable services), and success is determined by executable checks (flag, shell, privilege escalation).
What related research exists?
Related work falls into three groups: cybersecurity benchmarks, cybersecurity agent frameworks, and self-evolving agents; the authors state that the latter has not yet been applied to cybersecurity.
Cybersecurity Benchmarks
- CTF type: InterCode-CTF, NYU CTF Bench, and Cybench evaluate multi-step exploitation in self-contained challenge environments.
- Penetration testing type: AutoPenBench and MHBench evaluate end-to-end attack flows from single hosts to multi-host networks.
- Vulnerability exploitation type: CVE-Bench requires black-box exploitation of online services; CyberGym and SEC-Bench evaluate white-box PoC generation; BountyBench measures attack and defense by dollar impact. The authors position this paper as focusing on black-box security testing and select three benchmarks: NYU CTF, AutoPenBench, and CVEBench.
Cybersecurity Agent Frameworks
- Single-agent: PentestGPT, the NYU CTF baseline agent, CyAgent, AutoPenBench-Agent, and CTFAgent mostly embed domain tools in a ReAct loop; later work adds an interactive debugging interface (EnIGMA) and retrieval-augmented security knowledge (CRAKEN).
- Multi-agent: HPTSA uses a planning agent plus exploration sub-agents for zero-day exploitation; VulnBot organizes penetration phases with a task graph; DCipher uses planner-executor collaboration to solve CTFs. The authors note that these frameworks all use one-off, human-designed fixed scaffolding, whereas CyberEvolver treats the scaffolding itself as the optimization object.
Self-Evolving Agents
- Output/prompt/memory layer: Reflexion, Self-Refine, Promptbreeder, ACE, ReasoningBank, etc. improve through critique, refinement, prompt search, or trajectory playbooks.
- Programmatic artifact layer: Voyager, AFlow, AgentSquare, etc. optimize skills, workflows, and module structures.
- Scaffolding evolution layer: Darwin Gödel Machine, HGM, etc. directly edit the agent codebase and select variants using benchmark feedback or tree search. The authors state that these methods are mainly validated on coding and general tasks and do not address the mutation space, signal, and diversity challenges of cybersecurity.
Baselines and Benchmarks: the self-improvement baselines are ACE and HGM; the expert agent baselines are NYUCTFAgent and DCipher (NYU-CTF), AutoPenBench-Agent and VulnBot (AutoPenBench), and CyAgent and T-Agent (CVEBench). The authors position this paper as introducing on-policy self-evolution into cybersecurity and addressing the above three challenges with structured layered mutation, trajectory diagnosis, and population search.
How does the paper address this problem?
CyberEvolver uses a four-layer evolvable architecture, two-stage trajectory diagnosis, and beam search population evolution to turn failed executions into layer-by-layer scaffolding mutations.
Overall idea: have the agent loop "execute→diagnose→mutate" on a single target, treating the scaffolding itself as the optimization object. The framework is named CyberEvolver, and the seed agent is deliberately kept minimal, adapted from Mini-SWE-Agent.
Problem Setting and Formalization
- The target is denoted C, and the agent A = (LS, LI, LP, LD) is defined by four evolution layers; executing A yields a trajectory τ, and diagnosis produces a compressed summary z, a diagnosis report d, and a progress score s.
- The mutation operator MUTATE(A, d, z) → A′ edits one or more layers based on the diagnosis; each generation maintains a population Pt, and the process terminates when any variant solves C or T generations are exhausted.
Four-Layer Evolvable Architecture (Section 2.1)
- Strategy (LS, system prompt): the reasoning framework, governing hypothesis formation, verification discipline, and multi-step planning.
- Environment Interface (LI, instance prompt): reliable shell patterns and I/O conventions to prevent common execution failures.
- Perception (LP, observation layer): transforms raw output, filters context, and injects runtime feedback.
- Domain Knowledge (LD, skill library): an on-demand tactical playbook, adapted using Anthropic's SKILL.md structured interface, with black-box executable components removed to keep it model-readable (Appendix A.2).
Trajectory Diagnosis (Section 2.2)
- Trajectory compression: a 10-step sliding-window summary conditioned on the previous summary; actions and exploitation-critical artifacts (memory addresses, version banners, credentials) are preserved verbatim; overly long observations are marked with placeholders and programmatically backfilled, with at most N=3 raw observations per trajectory.
- Failure attribution: extracts grounded facts from z and the task metadata, and ranks weaknesses (including root causes, counterfactual alternatives, competing blocking hypotheses, and falsifying evidence).
- Progress scoring: s ∈ [0, 100], rated on four dimensions: reconnaissance completeness, vulnerability identification, exploitation proximity, and post-exploitation progress; the authors emphasize that s is used only for relative ranking among sibling nodes in the same generation and does not interpret numerical gaps.
Beam Search Population Evolution (Section 2.3)
- Layer-by-layer mutation: each parent samples m children through four sequential LLM calls over LS, LI, LD, LP; the four calls share the mutation context (z, d, the previous generation's patch diff, and the current implementation), and later layers can see earlier layers' edits; a layer is left unchanged if there is no beneficial edit.
- Validation: each layer's edit undergoes syntax checking and dry-run initialization immediately after generation, and the layer is rolled back on failure; the m children are sampled independently and in parallel at temperature 1.0.
- Default configuration: T=3, k=3, m=3, top-K=2, with a total rollout budget of at most 16 per target (Algorithm 1).
Success Determination
- CTF-type tasks are scored by exact flag verification or a flag submission tool; CVEBench is scored by the benchmark's completion service (Appendix B.4).
- Appendix F gives the full prompts for trajectory summarization, diagnosis extraction, and four-stage code refinement; Appendix A.3 describes the patch application process (XML action parsing, fuzzy-match fallback, syntax validation).
What experiments did the paper conduct?
On three benchmarks and four open-source models, the authors report that CyberEvolver exceeds seed pass@16 by 13.6% on average and is higher than all baselines on all 16 configurations.
Experimental Setup
- Models under test: four open-source models, Kimi-K2.5, MiniMax-M2.5, DeepSeek-V3.1, and Qwen3-235B-A22B-Instruct-2507 (Table 8 gives decoding parameters; diagnosis and mutation reuse the same backbone model, and the HGM experiments use Kimi-K2.5 as the shared self-improve/downstream/diagnose model).
- Benchmarks: NYU CTF Bench (200 tasks, 192 after removing 8 tasks that could not be started), AutoPenBench (33 penetration scenarios), CVEBench v2.1 (40 real vulnerability exploitation tasks, in zero-day and one-day settings).
- Baselines: seed agent pass@16 (union solve rate over 16 independent runs); expert agents NYUCTFAgent, DCipher, AutoPenBench-Agent, VulnBot, CyAgent, T-Agent; general self-evolution methods ACE (off-policy and on-policy adaptations) and HGM.
- Metrics and protocol: solve rate (%); the seed agent reports pass@1/4/16, human-designed baselines and ACE report pass@4, CyberEvolver and on-policy ACE report the union solve rate over 16 iterations; single-agent baselines use at most 30 interaction steps, and multi-agent ones use the original papers' default configurations.
- Judging method: exact flag verification for CTF, and the benchmark's completion service for CVEBench; no LLM judging.
- Sample size: 16 independent runs per target for the seed agent; at most 16 nodes per target for CyberEvolver (T=3, k=3, m=3, top-K=2).
Main Results
According to Table 1 (solve rate %, ∆ is the absolute improvement over seed pass@16; Single/Multi are the single-/multi-agent expert baselines for that benchmark):
Swipe horizontally to read the table
Benchmark Model Seed pass@16 ACE (∆) CyberEvolver (∆) Single Multi NYU-CTF DeepSeek-V3.1 20.3 24.5 (+4.2) 35.5 (+15.2) 18.2 26.6 NYU-CTF Kimi-K2.5 39.6 34.4 (-5.2) 54.7 (+15.1) 35.4 42.2 NYU-CTF MiniMax-M2.5 22.4 24.5 (+2.1) 32.9 (+10.5) 22.9 27.6 NYU-CTF Qwen3-235B 20.3 17.2 (-3.1) 29.2 (+8.9) 17.7 20.8 AutoPenBench MiniMax-M2.5 42.4 36.4 (-6.0) 66.7 (+24.3) 27.3 33.3 AutoPenBench Qwen3-235B 24.3 36.4 (+12.1) 63.6 (+39.3) 27.3 12.1 CVEBench Zero-Day Kimi-K2.5 20.0 20.0 (+0.0) 37.5 (+17.5) 22.5 35.0 CVEBench One-Day MiniMax-M2.5 30.0 22.5 (-7.5) 40.0 (+10.0) 25.0 32.5 (The DeepSeek-V3.1/Kimi-K2.5 rows for AutoPenBench and the remaining CVEBench rows are omitted: CyberEvolver scores 60.6 and 72.7 respectively, the CVEBench Zero-Day rows are 25.0/37.5/27.5/32.5, and One-Day is 32.5/45.0/40.0/32.5, all the highest for that configuration.)
- The authors state that CyberEvolver achieves the highest solve rate on all 16 model×benchmark configurations, exceeding the strongest human-designed baseline by 14.0% on average, with peak gains of 12.5%, 36.3%, 10.0%, and 12.5% on the respective benchmarks.
- The authors report that seed pass@k approaches saturation after k=4 (only +1.4% from pass@4 to pass@16), whereas CyberEvolver exceeds pass@16 by 13.6% and uses 17.5% fewer total tokens on average (Table 13).
- Exceptions: ACE exceeds seed pass@16 on individual configurations such as +12.1 on AutoPenBench with Qwen3-235B and +4.2 on NYU-CTF with DeepSeek-V3.1, but is negative on several configurations (e.g., -15.1 on AutoPenBench with Kimi-K2.5).
Comparison with Self-Improvement Baselines (RQ2)
- What was tested: ACE off-policy (shared playbook) and on-policy adaptation (independent playbook per target, 16 iterations), and HGM adapted to CVEBench Zero-Day.
- Results: on-policy ACE improves over off-policy (Kimi-K2.5: NYU-CTF 43.2% vs 34.4%, AutoPenBench 54.5% vs 45.5%), but under the same budget it still trails CyberEvolver (54.7%, 72.7%, 37.5% vs 43.2%, 54.5%, 27.5%). HGM reaches 20.0% at its best node on CVEBench Zero-Day and 25.0% as the union after 640 evaluations, below CyberEvolver's 37.5% with 16 nodes.
- Authors' interpretation: textual playbooks help, but evolving executable scaffolding plus structured diagnosis and population search is more effective; Appendix E attributes HGM's failure to an unstructured mutation space (72% of variants are tool wrappers) and a binary sparse signal (only 10 of 40 targets were solved in the search tree).
Search Tree and Mutation Analysis (mechanism analysis beyond RQ3)
- What was tested: 12 (model×benchmark) cells, 952 challenges, and 12,031 sibling pairs, measuring sibling mutation differences with identifier-level TF-IDF cosine distance (Appendix D).
- Results: Figure 4 shows distances concentrated in the middle range; Figure 7 reports a per-cell worst-case mean ≥0.42 (reference: paraphrase ≈0.2, unrelated documents 0.7–0.9); Figure 8 shows activation rates of 89% for the LD layer and 80% for the LI layer, with LS and LP at 3–91% and 0.1–98% respectively; Figure 9 shows that among LD actions, create accounts for 70% and delete <1%.
- Authors' interpretation: sibling mutations are not near-duplicate paraphrases, and mutations cover all four layers; diversity is determined mainly by the backbone model rather than the benchmark.
Other Ablations and Analyses
- Removing layered mutation: solve rate drops 10 percentage points to 27.5% (Appendix C ablation, set to the whole single-call mutation of Appendix F.4.1).
- Removing beam search (k=m=1, T=16): drops 7.5 percentage points to 30.0%.
- Removing structured diagnosis (the pure timeline summary of Appendix F.4.2): drops 5 percentage points to 32.5%.
- Case study: a 488-point blind SQL injection task (CSAW 2023, solved by 4.1% of 1096 teams); generation 0 fails, and generation 3 solves it within 18 steps using binary-search blind injection (Figure 1); Appendix G gives further success and stagnation cases.
- Leakage audit: the authors check successful runs for a "submit flag before interaction" pattern and report that successful behavior is generally not direct flag memorization, but acknowledge they cannot rule out the model having seen public writeups (Appendix C).
What are some points that can be further explored?
The authors list three limitations: task scope, evolution budget, and cross-target transfer; the experiments cover four open-source models, three benchmarks, and at most 16 nodes per target.
Limitations and future directions noted by the authors
- Task scope: The study is limited to offensive cyber tasks; defensive workflows, real-world validation, and disclosure processes are left for future work (Discussion and Conclusion, Limitations and future work).
- Evolution budget: Uses a bounded budget of at most 16 nodes per target; the authors state that larger budgets and different schedules may change the trade-offs among improvement, drift, overspecialization, and convergence (same section).
- Cross-target transfer: Cross-target transfer is not studied; the authors state that existing benchmarks group tasks too coarsely to isolate recurring vulnerability mechanisms (same section).
- Vulnerability discovery benchmarks: The evaluation excludes vulnerability discovery benchmarks, left for future work (Section 3.1; Appendix B.1 likewise leaves CyberGym and vulnerability discovery suites for future work).
- Dual use: The authors state that self-improving exploitation scaffolds are inherently dual-use, and that future work should maintain controlled benchmarks, responsible release practices, and clear authorization boundaries (Discussion, Dual-use considerations).
Scope of experiments
- The models tested are Kimi-K2.5, MiniMax-M2.5, DeepSeek-V3.1, and Qwen3-235B-A22B-Instruct-2507, 4 open-source models in total (Table 8).
- The benchmarks are NYU CTF Bench (192 tasks), AutoPenBench (33 tasks), and CVEBench v2.1 (40 tasks, in both zero-day and one-day settings), 3 in total (Section 3.1, Appendix B.1).
- The seed agent runs 16 independent runs per target; CyberEvolver defaults to T=3, k=3, m=3, top-K=2, with at most 16 rollouts per target (Section 2.3, 3.1).
- The ablation covers three components (hierarchical mutation, beam search, structured diagnosis), each reporting the solve rate for one setting (Appendix C); the paper does not report a per-model breakdown or multiple repetitions for the ablation.
- The paper does not report statistical significance tests; the progress score s is scored by the backbone model itself, and the paper does not report the agreement between the scoring and human judgment (Section 2.2).
Summarize the main content of the paper
CyberEvolver lets cybersecurity agents self-evolve their scaffolding based on failure trajectories; the authors report that it exceeds seed pass@16 by 13.6% on average across four open-source models.
An agent capability methods paper: it brings self-evolution from the coding domain into cybersecurity, letting an agent rewrite its own scaffold on the fly for a single target.
- Problem: Existing cybersecurity agents use fixed, manually designed scaffolds and struggle to adapt to heterogeneous targets and failure feedback obscured by the environment; the authors point out that directly applying existing self-evolution methods fails along three dimensions: mutation space, mutation signal, and mutation diversity.
- Method: CyberEvolver splits the agent into four evolvable layers: policy, environment interface, perception, and domain knowledge; it uses sliding-window compression plus structured diagnosis to turn noisy traces into mutation signals attributable to layers and relative progress scores; then uses beam search to sample multiple offspring from multiple parents each generation, with at most 16 rollouts per target by default.
- Main results: On NYU CTF, AutoPenBench, CVEBench (zero-day/one-day), and four open-source models, the authors report that CyberEvolver exceeds the seed agent by an average of 13.6% pass@16, is higher than six human-designed agents and ACE and HGM on all 16 configurations; it also uses an average of 17.5% fewer total tokens (Table 1, Table 13).
- Mechanistic evidence: The ablation shows that removing hierarchical mutation, beam search, and structured diagnosis lowers performance by 10, 7.5, and 5 percentage points respectively; the TF-IDF cosine distance of sibling mutations is in the middle range, which the authors take to indicate that mutations are not near-duplicates; the HGM failure analysis shows that 72% of variants degenerate into tool wrappers.
- Authors' conclusion: Scaffold self-evolution raises the capability ceiling rather than the luck of repeated sampling; cybersecurity, with its executable verifiers, is a suitable testbed for on-policy self-evolution.
- Boundaries: The authors state that the evaluation is limited to offensive tasks, the budget is bounded, cross-target transfer is not studied, and they note that such self-improving exploitation scaffolds are dual-use.