Skip to main content

Backend-agnostic cyber range scenario description language and runtime.

Project description

Reproducible Agentic Environments System

Reproducible Agentic Environments System (RAES) is a backend-agnostic scenario description language, Python reference implementation, and contract surface for cyber range scenarios and experiments.

The repository separates authored scenario meaning from processors, backends, participant implementations, runtime state, and archived evidence. In the current implementation, an SDL document can be parsed, validated, instantiated, compiled into runtime models, and checked against published backend contracts without binding the authored scenario to one cloud, range implementation, or execution harness.

This is an academic and engineering project. The repository is intended to be read, tested, and used as reference implementation code, not treated as a product surface.

The repository is not a managed cyber range and does not include a production backend. Backend contracts, stubs, conformance checks, and examples are present; real deployment backends remain separate implementations.

A worked example of RAES SDL driving a concrete range is APTL (Advanced Purple Team Lab), a separate project that specifies its scenarios as RAES SDL documents and realizes the selected topology on a Docker Compose backend.

Contents

What RAES Describes

An SDL file is a declarative scenario document. It can describe topology, hosts, services, identities, content, relationships, agents, objectives, workflows, variables, and evaluation material without directly describing a specific backend's infrastructure primitives.

name: hospital-ransomware-surgery-day
description: Surgery-day ransomware exercise for a regional hospital.

variables:
  surgery_day_speed:
    type: number
    default: 1.0

nodes:
  internet-edge:
    type: Switch
    description: Public ingress for email, VPN, and external access

  mail-gateway:
    type: VM
    os: linux
    source: secure-mail-gateway
    resources: {ram: 2 gib, cpu: 1}
    services:
      - {port: 25, name: smtp-inbound}
    roles: {mail-admin: postfix}

Complete examples live in examples/scenarios/. Reusable non-normative templates and patterns are indexed by examples/library/catalog.yaml.

Getting Started

Prerequisites:

  • Python 3.11 or newer
  • uv
  • nox for the repository verification graph, or uvx nox without a separate install

Set up the Python reference implementation:

git clone https://github.com/RAESystem/rae.git
cd rae/implementations/python
uv sync --all-extras
uv run raes --help

Using the Python Reference Implementation

Parse and validate a scenario from Python:

from pathlib import Path

from aces_sdl import parse_sdl_file

scenario = parse_sdl_file(
    Path("../../examples/scenarios/hospital-ransomware-surgery-day.sdl.yaml")
)

for advisory in scenario.advisories:
    print(advisory)

Run the CLI from implementations/python:

uv run raes sdl resolve ../../examples/scenarios/hospital-ransomware-surgery-day.sdl.yaml
uv run raes sdl verify-imports ../../examples/scenarios/hospital-ransomware-surgery-day.sdl.yaml
uv run raes sdl publish ../../examples/scenarios/hospital-ransomware-surgery-day.sdl.yaml
uv run raes processor --help
uv run raes conformance --help
uv run raes-mcp

Repository Layout

  • specs/ - normative prose and formal specification material
  • contracts/ - published schemas, fixtures, manifests, and profiles
  • implementations/ - reference implementations and their local tooling
  • examples/ - worked SDL scenario examples plus reusable authoring templates and patterns
  • docs/ - explanatory documentation, API docs, and architecture decisions
  • research/ - supporting literature and reference ecosystem material
  • tools/ - repository maintenance, policy, and publication tooling

Lineage

For a dimension-by-dimension comparison against these systems — what RAES expresses that they do not, and where they still lead RAES — see Related-Work Comparison.

Documentation

The documentation source is under docs/. Important entry points:

Verification

nox is the canonical verification graph. From the repository root:

uvx nox -s verify
uvx nox -s verify-changed
uvx nox -s tests
uvx nox -l

The full verify session is unconditional and runs the project checks expected for pull requests, including repository policy, governed evidence and generated artifacts, parallel worker-safe test coverage, serial integration tests, and docs. Use verify-changed while iterating: it compares the branch and working tree with the upstream ref, skips evidence and regression stages only for allowlisted prose or research-only changes, and fails closed to the full local gate for unknown, deleted, renamed, executable, contract, or configuration changes. The pre-push hook uses the same change-aware plan.

Whole-scenario finite-domain satisfiability can be inspected without applying or provisioning a scenario:

uv run --project implementations/python raes processor satisfiability \
  path/to/scenario.sdl.yaml \
  --profile aces-finite-domain-satisfiability-v1

The command emits the published replayable evidence envelope. Exit 0 is a completed satisfiable or unsatisfiable analysis, 2 is an explicit unsupported fragment result, and 1 is an input or operational failure. See ADR-086 for the bounded target coverage and nonclaims.

Contributing

Contributions are welcome where they improve the language, reference implementation, contracts, tests, examples, or documentation. Start with CONTRIBUTING.md.

Language and contract changes should be discussed before implementation because small SDL changes can affect validation, generated schemas, backend conformance, and existing scenario examples.

Versioning

The Python package version lives in implementations/python/pyproject.toml and is bumped by release-please from the Conventional Commit history on main, which also generates CHANGELOG.md. Do not hand-edit the version or CHANGELOG.md. See docs/explain/releasing.md.

Published JSON Schemas use versioned contract identifiers such as sdl-authoring-input-v1, but the suffix is not the same as a stability promise. The authoritative schema publication index assembles independent per-contract records, each carrying its schema's draft or stable stability class and canonical content hash. Current checked-in schemas are draft until a maintainer explicitly promotes them; stable breaking changes must mint a new schema version as described in ADR-061.

Maintainers

Citation

If you use RAES SDL in academic work, cite the repository:

@software{raes,
  author       = {Edwards, Brad},
  title        = {RAES SDL: Backend-Agnostic Scenario Description Language for Cyber Range Experiments},
  year         = {2026},
  license      = {MIT},
  url          = {https://github.com/RAESystem/rae}
}

License

Released under the MIT License. See LICENSE. Third-party attribution and license notices are recorded in THIRD_PARTY_NOTICES.md.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

raes-0.25.0.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

raes-0.25.0-py3-none-any.whl (2.0 MB view details)

Uploaded Python 3

File details

Details for the file raes-0.25.0.tar.gz.

File metadata

  • Download URL: raes-0.25.0.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for raes-0.25.0.tar.gz
Algorithm Hash digest
SHA256 cd0abae2ec1ec5c035e372358b768ae7ca567e842c4caed8242a79d0ce7d2244
MD5 b32b00718ce2fcccc545ae5a5158abc1
BLAKE2b-256 7f485020d119e389f42feb89f67cc0900ad3b602ac50faee51932b2994010c7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for raes-0.25.0.tar.gz:

Publisher: release-please.yml on RAESystem/rae

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file raes-0.25.0-py3-none-any.whl.

File metadata

  • Download URL: raes-0.25.0-py3-none-any.whl
  • Upload date:
  • Size: 2.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for raes-0.25.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e49d98df7d198616534b62bea9dd09c19cad289bdf0814b9ca7eb5d7b14ac72
MD5 0fa0584f7e1d4eb2fba8f42163c38d17
BLAKE2b-256 e769225e6d6ee4689cedd26c7fa52f4ad543cb40bee4df51c20a062a56d1b4c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for raes-0.25.0-py3-none-any.whl:

Publisher: release-please.yml on RAESystem/rae

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page