TL;DR
ScenarioForge is a new framework that bridges the gap between AI-generated "cyber exercise" narratives and actual, executable training environments. By grounding LLM proposals in real-world resource catalogs and validating them in a live emulator, it achieves a 100% build success rate for complex, multi-step cybersecurity scenarios.
What Problem Does This Paper Address?
Creating a "cyber range"—a virtual environment for training security professionals or testing tools—is a logistical nightmare. Authors must manually coordinate network topologies, vulnerable services, specific attack paths, and "flags" (success conditions).
While Large Language Models (LLMs) are excellent at brainstorming creative attack narratives, they often fail at the technical "last mile." An LLM might suggest a vulnerability that doesn't exist in your library, a network configuration that won't boot, or a "flag" that is unreachable. This paper addresses the boundary between description and execution: how do we turn a plausible-sounding AI proposal into a verified, deployable, and solvable exercise?
Methods
The authors introduce ScenarioForge, a framework that treats LLM output as a proposal rather than a finished product. The core innovation is a "trust boundary" that separates generative authorship from deterministic grounding.

The workflow consists of four main stages:
- Author & Synthesize: An LLM generates a "Canonical Scenario" in XML based on high-level requirements.
- Ground & Resolve: The system matches the LLM's intent against Qualified Catalogs (real Docker images from Vulhub or custom-built generators). If the LLM asks for something that doesn't exist, the system rejects it or forces a resolution to a known asset.
- Compile & Execute: The resolved specification is instantiated in the Common Open Research Emulator (CORE). This creates the actual virtual routers, hosts, and services.
- Validate & Package: This is the "secret sauce." The system doesn't just check if the VMs started; it runs a "Solutions Script" that traverses the challenge graph to ensure every flag is actually capture-able and every network policy is enforced.
Datasets
The paper introduces two significant resources:
- ScenarioForge Execution Dataset: A collection of 226 materialized, fixed scenarios. It covers 294 Vulhub images and 85 custom challenge generators, totaling 867 individually verifiable challenge steps.
- Matched AI-Authoring Benchmark: A set of 50 prompts across five complexity tiers (from simple routed networks to complex segmented environments with vulnerabilities). This was used to compare ScenarioForge against "frontier" models (like GPT-5.6) generating code directly.
Key Insights and Ideas
- The Framework > The Model: One of the most striking findings is that a relatively small, open-weight model (Qwen 3.8) inside the ScenarioForge framework matched the performance of a much larger frontier model. The framework's constraints and catalogs do the heavy lifting, not just the "intelligence" of the LLM.
- Resource Grounding is Essential: By forcing the LLM to output a typed XML that must resolve to a catalog, the authors eliminated "hallucinations." If a resource isn't in the catalog, it doesn't make it into the execution phase.
- Execution as the Ultimate Truth: The authors argue that a scenario isn't "valid" just because it looks right. It is only valid if a script can successfully "solve" it in a live environment. This "proposal-to-evidence" design localizes failures to specific phases (e.g., was it a bad prompt or a container that failed to boot?).
Key Results
The authors conducted a rigorous comparison between ScenarioForge and direct LLM generation (using various levels of "scaffolding" or guidance).
- 100% Success: Both ScenarioForge+Qwen3.8 and ScenarioForge+GPT5.6 achieved 50/50 (100%) topology build success and satisfied all 160/160 requested intent fields.
- Direct Generation Lags: Even with the best "scaffolding" (providing the LLM with structure, vocabulary, and image guidance), direct frontier generation only reached 82% (41/50) build success.
- Verified Dataset: All 226 scenarios in their released dataset passed construction, deployment, and live artifact checks, providing a massive library of reproducible exercises for the community.
Limitations and Future Work
- Hardware Incompatibilities: The authors noted some failures during testing due to architecture mismatches (e.g., trying to run an x86 Docker image on an ARM-based VM). While they remediated these with substitutions, it remains a challenge for automated deployment.
- Transient Infrastructure Issues: Even with a perfect design, "flaky" tests can occur due to network timing or slow daemon startups.
- Human-in-the-Loop: While highly automated, the system still provides a WebUI for humans to refine the XML. Future work could look at making the "repair loop" even more autonomous.
- Scaling: While the dataset covers 226 scenarios, scaling to thousands of unique, high-fidelity exercises will require even larger catalogs of diverse, vulnerable components.
Summary updated