SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2309.07388 · 2023

On Autonomous Agents in a Cyber Defence Environment

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 0 failures of our instrument; 1 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2309.07388.json · badge: /api/ran/2309.07388.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
ilyaorson/cyberdreamcatcher community (classifier label)
classifier basis not recorded on the link
4 ran · 1 no recorded run
FunctionStatusWhere it lives
plot_feasible_connections Ran
ran on a synthesized input
ilyaorson/cyberdreamcatcher/cyberdreamcatcher/plots.py
code served (permissive licence) · get_code("1d540ab85220630f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import networkx as nx
import numpy as np
import matplotlib.pyplot as plt
from pathlib import Path


class MockEnv:
    def __init__(self):
        self.scenario_name = "test_scenario"
        self.subnet_names = ["subnet_a", "subnet_b", "subnet_c"]
        self.subnet_hostnames_map = {
            "subnet_a": ["host_a1", "host_a2"],
            "subnet_b": ["host_b1", "host_b2", "host_b3"],
            "subnet_c": ["host_c1"]
        }
        self.feasible_connections = [
            ("host_a1", "host_b1"),
            ("host_a2", "host_b2"),
            ("host_b1", "host_c1"),
            ("host_b3", "host_a1")
        ]


env = MockEnv()

fig, ax = plt.subplots()

ARGS = {
    "env": env,
    "axis": ax,
    "multipartite": False,
    "show": False,
    "block": False,
    "filepath": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, networkx, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_joyplot Ran
ran on a synthesized input
ilyaorson/cyberdreamcatcher/cyberdreamcatcher/plots.py
code served (permissive licence) · get_code("cc1a6ab05a6d62c6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned FacetGrid. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import pandas as pd
import numpy as np

# Set random seed for reproducibility
np.random.seed(0)

# Create a small DataFrame in long format suitable for the joyplot function
n_samples = 50
timesteps = [0, 5, 10, 15]
policies = ['Random', 'Trained']

data = []
for timestep in timesteps:
    for policy in policies:
        for _ in range(n_samples // len(policies)):
            reward_to_go = np.random.normal(loc=-20 if policy == 'Random' else -5, scale=10)
            data.append({
                'timestep': f'Step {timestep}',
                'Policy': policy,
                'reward_to_go': reward_to_go
            })

df_long = pd.DataFrame(data)

ARGS = {
    'df_long': df_long,
    'smoothness': 0.4,
    'trim': (-50, 10),
    'xlabel': 'Reward to go',
    'ylabel': 'Timesteps'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
matplotlib, numpy, pandas, seaborn — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type FacetGrid — a FacetGrid output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FacetGrid output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ravel_multi_index Ran
ran on a synthesized input
ilyaorson/cyberdreamcatcher/cyberdreamcatcher/utils.py
code served (permissive licence) · get_code("eb03193fa78becb1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family int, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# coords: A tensor of coordinate vectors, (*, D)
# shape: The source shape
# The function expects coords to be indices into a multi-dimensional array
# Let's create coordinates for a 3D array with shape (5, 4, 6)
# coords should have shape (*, D) where D=3 (matching the number of dimensions in shape)

coords = torch.tensor([
    [0, 1, 2],
    [3, 2, 4]
], dtype=torch.long)

shape = torch.Size([5, 4, 6])

ARGS = {
    "coords": coords,
    "shape": shape,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family int, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
run_episode Ran
ran on a synthesized input
ilyaorson/cyberdreamcatcher/cyberdreamcatcher/sampler.py
code served (permissive licence) · get_code("0b1a16f5749dcc3a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned ndarray, ndim 1, dtype family float, shape (2,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
import numpy as np

torch.manual_seed(0)

# Create a minimal environment that satisfies the interface
class MockEnv:
    def __init__(self):
        self.obs_size = 4
        self.action_size = 2
    
    def reset(self, seed=None):
        obs = np.random.randn(self.obs_size).astype(np.float32)
        info = {}
        return obs, info
    
    def step(self, action):
        obs = np.random.randn(self.obs_size).astype(np.float32)
        reward = float(np.random.randn())
        terminated = False
        truncated = np.random.rand() < 0.3  # End episode probabilistically
        info = {}
        return obs, reward, terminated, truncated, info

# Create a minimal policy model that returns the required outputs
class MockPolicy(nn.Module):
    def __init__(self, obs_size, action_size):
        super().__init__()
        self.net = nn.Linear(obs_size, 64)
        self.action_head = nn.Linear(64, action_size)
        self.value_head = nn.Linear(64, 1)
    
    def forward(self, obs):
        # obs is a numpy array, convert to tensor
        if isinstance(obs, np.ndarray):
            obs_tensor = torch.from_numpy(obs).float()
        else:
            obs_tensor = obs
        
        hidden = torch.relu(self.net(obs_tensor))
        
        # action: integer action
        action_logits = self.action_head(hidden)
        action = torch.argmax(action_logits).item()
        
        # log_prob: scalar log probability
        log_probs = torch.log_softmax(action_logits, dim=0)
        log_prob = log_probs[action].item()
        
        # entropy: scalar entropy
        probs = torch.softmax(action_logits, dim=0)
        entropy = (-probs * log_probs).sum().item()
        
        # value: scalar value estimate
        value = self.value_head(hidden).item()
        
        return action, log_prob, entropy, value

env = MockEnv()
policy = MockPolicy(obs_size=4, action_size=2)
seed = 42

ARGS = {
    "env": env,
    "policy": policy,
    "seed": seed
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ndarray, ndim 1, dtype family float, shape (2,) — shape (2,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
plot_split_distributions Not yet run
unverified (harvested, no recorded run)
ilyaorson/cyberdreamcatcher/cyberdreamcatcher/plots.py
code served (permissive licence) · get_code("5674ea33ec80f3b9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Autonomous Cyber Defence is required to respond to high-tempo cyber-attacks. To facilitate the research in this challenging area, we explore the utility of the autonomous cyber operation environments presented as part of the Cyber Autonomy Gym for Experimentation (CAGE) Challenges, with a specific focus on CAGE Challenge 2. CAGE Challenge 2 required a defensive Blue agent to defend a network from an attacking Red agent. We provide a detailed description of the this challenge and describe the approaches taken by challenge participants. From the submitted agents, we identify four classes of algorithms, namely, Single- Agent Deep Reinforcement Learning (DRL), Hierarchical DRL, Ensembles, and Non-DRL approaches. Of these classes, we found that the hierarchical DRL approach was the most capable of learning an effective cyber defensive strategy. Our analysis of the agent policies identified that different algorithms within the same class produced diverse strategies and that the strategy used by the defensive Blue agent varied depending on the strategy used by the offensive Red agent. We conclude that DRL algorithms are a suitable candidate for autonomous cyber defence applications.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2309.07388")
get_code_for_paper("2309.07388")
have("2309.07388")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2309.07388.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2309.07388.svg)](https://syntology.ai/paper/2309.07388)

Connect an agent — have() is free.