2026-2027 Defence Cyber AI SOC In Progress

Overview

The CD-DAR Testbed is a planned, bench-scale version of the capability National Defence describes in its Cyber Defence - Decision Analysis and Response project: see every device on a network, collect what the defence tools report into one trusted store, show it as a single cyber picture, and help an analyst decide what to do, fast. This page is a build guide; nothing here is built or tested yet.

CD-DAR is one of the largest cyber projects in the Defence Capabilities Blueprint, with a listed funding range of $250 million to $499 million and Assistant Deputy Minister (Digital Services) as the sponsoring group. Its goal is to improve decision support and security across DND/CAF networks so Defensive Cyber Operations (DCO) can detect, analyze and respond to threats in time. That is the same problem every security operations centre faces, at a much larger scale and with much higher stakes.

This build takes the public requirement list and answers each line with open-source tools on my own homelab: Zeek and Suricata on the wire, Wazuh on the hosts, my own Daru SIEM holding a copy of everything, OpenSearch as the data repository, Grafana as the operating picture, Velociraptor for remote forensics, and TheHive for cases and response. On top sits an AI-assisted SOC layer: a Python detection engine, a correlator that turns alerts into incidents, and a local language model on vLLM that explains each incident with evidence. The design rule throughout: the tools rank and explain, a person decides. The model only suggests, code checks what it says, and every response needs human approval and is written to a tamper-evident log.

This is independent research, not part of the CD-DAR project. It uses only public information, synthetic data and my own machines. Where it stands: the whole testbed is now written as code: 120 files of Proxmox scripts, cloud-init, Docker stacks, data pipelines, six Python services, response playbooks and 62 automated tests that pass. What is left is the physical build and the first full run; nothing on this page is measured yet.

The DND Project

The facts below come from the public CD-DAR entry in the Defence Capabilities Blueprint, managed by the Directorate of Capability Integration at National Defence.

ItemPublic detail
ProjectCyber Defence - Decision Analysis and Response (CD-DAR), new project
SponsorAssistant Deputy Minister (Digital Services)
Funding range$250 million to $499 million
Networks in scopeDesignated Command Network (Comd-Net) extensions and interfaces, and deployable Defence Wide Area Network (DWAN) systems
Options AnalysisCompleted
DefinitionIn progress
Start of implementation2026/2027
Initial delivery2029/2030
Final delivery2030/2031
Capability areasC4I; Cyber, Electronic and Irregular Warfare; Emerging Technology; Training and Simulation
Key industrial capabilitiesArtificial Intelligence; Cyber Resilience

The requirement in plain words: DND/CAF need network discovery, integrated software cyber defence tools, an authoritative Cyber Data Repository (CDR), a Cyber Common Operating Picture (CyCOP), attention to the human factors of the analysts using it, and the ability to do cyber forensics remotely, giving full situational awareness and a timely response across strategic and operational cyber domains.

Target Design

Each row maps one stated CD-DAR need to the component that answers it in this testbed. The status table below tracks each one honestly.

CD-DAR needTestbed componentDesign requirement
Network discoveryNmap, Zeek, NetBoxScheduled active scans plus passive discovery from Zeek, reconciled against NetBox as the asset source of truth. Unknown devices raise an alert within one scan cycle.
Integrated cyber defence toolsZeek, Suricata, Wazuh, DaruNetwork sensors on a SPAN port and agents on every host, all feeding one pipeline instead of separate consoles.
Cyber Data RepositoryVector, Kafka, OpenSearchEvery event normalised to one schema (OCSF), tagged with its source and asset, kept with a stated retention, and searchable from one place.
Cyber Common Operating PictureGrafana, OpenSearch DashboardsOne screen showing assets, live alerts, ATT&CK stage, and which mission-critical services each alert touches, refreshed in under a minute.
DetectionPython detection engine, Suricata, Zeek, WazuhRules as code (match, threshold, sequence) on the normalised event stream, next to the sensors' own rules, every hit tagged with its ATT&CK technique.
Decision analysisScoring service, MITRE ATT&CKEach alert ranked by asset criticality, detection confidence and ATT&CK stage, with a plain-language reason shown next to the score.
Contextual analysisIncident correlator, local LLM on vLLMRelated alerts grouped into one incident with a timeline; a local model explains it, citing evidence; code removes anything not grounded in the evidence.
ResponseTheHive, Cortex playbooksPlaybooks (triage, contain, release, block) run only when an analyst starts them, each step logged.
Remote forensicsVelociraptorCollect memory, disk artefacts and logs from any enrolled host without being there, with every artefact hashed for chain of custody.
Human factorsWorkload studyAnalyst workload measured (alerts per hour, time per triage, NASA-TLX survey) so the tooling is judged on whether it helps people, not only on what it detects.
Deployable networksk3s kit, store-and-forwardA small deployable sensor kit that keeps collecting when its link drops and syncs to the central repository when it returns.

Lab Layout

The whole lab runs on one Proxmox node behind its own router VM. Four networks keep the roles apart: management for the security tools, a notional command network of victims, an attacker network that can only reach the victims, and a physical field network behind the deployable kit, which comes home over WireGuard.

Lab network topologyOne Proxmox node with an isolated VLAN-aware bridge. The lab router separates the management VLAN (core, SOC and sensor VMs), the notional command network (dc01, ws01, srv01, srv02) and the attacker network, and connects the physical field kit and the analyst laptop over WireGuard.Home networkinternet, WireGuard endpointlab-router 10.10.10.1nftables default-deny, WireGuard, DNS, lab-internet on/offAnalyst laptopWireGuard 10.10.40.3, webconsolescddar-core .10OpenSearch, Kafka, Grafana,NetBox, scorercddar-soc .11Wazuh, TheHive, Cortex,Velociraptorcddar-sensor .12Zeek, Suricata on a hub-modecopy of VLAN 20 and 66Field kit 10.10.40.2mini PC on k3s, own sensor,10.10.30.0/24 behind itdc01 .10AD domain controller,criticality 5ws01 .21Windows 11 workstation,criticality 2srv01 .30mission web service,criticality 4srv02 .31file share, criticality 3atk01 10.10.66.10Caldera, nmap, DNS sink. Reaches VLAN 20 onlyVLAN 10 MANAGEMENTVLAN 20 NOTIONAL COMMAND NETWORKVLAN 66 ADVERSARYWANSPAN copyattack path
Figure 1. Lab network topology. Dashed lines are WireGuard tunnels and the sensor's copy of victim and attacker traffic.

How the sensor sees traffic without a physical tap: the lab bridge is set to forget MAC addresses instantly (bridge-ageing 0), so it floods every frame to every port like an old hub. The sensor VM's capture card is a member of the victim and attacker VLANs, so Zeek and Suricata see everything between them. That trick is fine for a lab and never for production; the field kit uses a real switch mirror port instead.

NetworkSubnetMachinesCan reach
VLAN 10 management10.10.10.0/24router, cddar-core, cddar-soc, cddar-sensorEverything
VLAN 20 command (notional)10.10.20.0/24dc01, ws01, srv01, srv02Only the security agent ports, and the attacker's C2 ports so emulation agents can call back
VLAN 66 adversary10.10.66.0/24atk01The command network only; never management, never the internet during tests
Field network (physical)10.10.30.0/24kit01 and field devicesThe internet through its own uplink; the lab only through WireGuard to Kafka, Wazuh and Velociraptor
WireGuard10.10.40.0/24kit01, analyst laptopKit: three service ports. Laptop: the web consoles

The router's firewall is default-deny with one switch, lab-internet on|off: on while packages install, off before any attack test runs. Every address and name in the lab is synthetic.

What the Build Will Prove

A homelab cannot stand in for a national defence network, and this one will not claim to. What it can prove, with published methods and data, is narrower and useful:

  • One picture from many tools works. Network, host and forensic data from different tools land in one normalised repository and one operating picture, without analysts switching between consoles.
  • Context speeds up decisions. Ranking alerts by asset criticality and ATT&CK stage, with a stated reason, is measured against a plain severity-sorted queue for time to triage and missed attacks.
  • Discovery finds what the inventory misses. Planted unknown devices are found and flagged, and discovery completeness is measured against the known asset list.
  • Forensics can be done remotely. Evidence is collected from a distant host in a measured time, with hashes that prove it was not changed.
  • AI can help without being trusted. A local model's incident summaries are measured for how often they pass evidence checks, how much of the evidence they cite, and how often the analyst agrees, while the model is never allowed to act.
  • A person stays in charge. No response action runs without approval, and every decision can be replayed from the tamper-evident log.

Architecture

Figure 2: sensors, host agents, discovery and the deployable kit all feed one pipeline into the Cyber Data Repository; the operating picture and decision scoring read from it; an analyst approves every response, and every approval and action is written to the tamper-evident log.

The data path is built around one rule: every tool writes into the same repository in the same schema. Zeek and Suricata watch traffic from a switch SPAN port, Wazuh and Daru watch the hosts, and discovery keeps NetBox current. Vector ships everything through Kafka, normalising it to OCSF on the way, so a login event from a firewall and a login event from a server look the same to the analyst.

On the decision side, a small scoring service reads new alerts, joins them to the asset's criticality in NetBox and to the ATT&CK technique, and writes back a score with a reason the analyst can read. The operating picture shows that ranked list beside the asset map. When the analyst opens a case, TheHive suggests playbook steps, Velociraptor collects evidence remotely, and nothing that changes a system runs until a person approves it.

Software stackSix layers from capture to decision, all open source: sensors, transport, the Cyber Data Repository and SIEM, detection and decision services, the AI layer, and the analyst consoles.SensorsZeek 7network logsSuricata 7ET Open + labrulesWazuh 4.9host alertsSysmon / auditdprocess eventsNmap + NetBoxdiscoveryTransportVector 0.62edge + coreKafka 3.98 topicsSplunk HECinputWireGuardkit and laptopRepository and SIEMOpenSearch 2.18OCSF 1.3 indicesDaru SIEMClickHouseRetention30 / 180 daysDetection and decisionDetection engineYAML rulesScorerranked, with reasonsCorrelatorincidentsApproval logSHA-256 chainAI layervLLMlocal model on my GPUInvestigatorevidence-cited summaryChecks in codeallow-list, citationsAnalyst consolesGrafanaCOP + incidentsTheHive 5casesCortex 3playbooksVelociraptorforensics + quarantine
Figure 3. The software stack, capture at the top to analyst consoles at the bottom. Versions are pinned in the repository.
From detection to an approved responseDetections are scored and correlated into an incident, a local model explains the incident with evidence, code checks the explanation, and only the analyst can run a response. Every step is written to the hash-chained approval log.Sensors +rulesScorerCorrelatorLocal LLMTheHiveAnalystPlaybooks1. finding withATT&CK technique2. score, priority,reasons3. one alert per incident, with timeline4. incident evidenceE1..En5. summary, checked incode, suggestionsonlynothing acts on its own up to here6. ranked incidentqueue7. approve: triage,contain or block8. result, every steplogged
Figure 4. From detection to an approved response. The scorer can open an alert; only the analyst can act.

Every event is stored in one schema, the Open Cybersecurity Schema Framework (OCSF): Zeek and Suricata flows become Network, DNS or HTTP Activity, and every alert from Suricata, Zeek, Wazuh or the discovery service becomes a Detection Finding with its ATT&CK technique. The mapping is written in Vector's language and ships with its own tests, so a broken mapping fails before it reaches the lab.

Decision Scoring

CD-DAR asks for "reliable contextual analysis to support decisions". In this build that is a small scoring service. For every finding it multiplies four factors, each between 0 and 1, and takes the fourth root so the result reads on a 0 to 100 scale:

FactorWhere it comes fromExample
Asset criticalityNetBox custom field, 1 to 5, set per asset in inventory.yamldc01 = 5 (every login depends on it)
Attack stageThe ATT&CK tactic, from Discovery 0.40 to Exfiltration 0.95 and Impact 1.00Credential Access = 0.80
ConfidenceThe sensor's own confidence, 0 to 100%Suricata rule metadata "confidence High" = 90%
SeverityThe sensor's severity, OCSF 1 to 5Wazuh level 12 = critical

Multiplying means one weak factor pulls the score down hard, which is what an analyst would do in their head. If several different techniques hit the same asset within 30 minutes, the score rises by up to 15 points and says so. Scores of 60 or more open a TheHive alert; 80 or more are P1.

Same detection, different asset: scorer outputScores produced by the testbed's scoring code for one LSASS credential-dumping detection (ATT&CK T1003.001, confidence 90%, severity critical) on assets of different criticality.dc01, criticality 592 P1srv01, criticality 487 P1unknown asset (treated as 3)81 P1ws01, criticality 273 P2atk01, criticality 162 P2
Figure 5. Output of the testbed's scoring code for the same detection on different assets. These come from the code's test inputs, not from a lab run.

Every score carries its reasons, in plain words, into the alert the analyst reads:

[P1 92] LSASS access on dc01
- Asset dc01 has criticality 5/5.
- ATT&CK T1003.001 (Credential Access) is at attack stage 0.80.
- Detection confidence is 90%.
- Sensor severity is critical.
No response action has been taken.

The AI-Assisted SOC

Scoring single alerts is not enough: an analyst needs to see an attack as one story, with the evidence, and decide quickly. Four pieces turn the testbed into an AI-assisted security operations centre.

AI-assisted SOC pipelineLogs from Linux, Windows and the network are collected, normalised and stored; a Python detection engine and the sensors' rules produce findings; the scorer ranks them; the correlator groups them into incidents; a local model explains each incident; the analyst approves any response; everything is audited and reported.Linux, Windows,network14 test machines, Zeek,Suricata, field kitLog collectionWazuh, Sysmon, auditd,Vector, Kafka, Splunk HECinputData repositoryOpenSearch (OCSF) and acopy in the Daru SIEMDetection enginePython rules: match,threshold, sequence, plussensor rulesScoringcriticality x stage xconfidence x severityIncident correlationshared IP or user within 30min, merged storiesAI investigationlocal LLM on vLLM,evidence-cited, checked incodeAnalyst dashboardGrafana COP, incidents,TheHive casesHuman approvalanalyst starts a responderResponse playbookstriage, contain, release, blockAudit and reportinghash-chained log, incident reports
Figure 6. From logs to an approved response. The model sits after correlation and before the analyst; it writes text, never commands.

1. Detection engine: rules as code

A small Python engine reads every normalised event from Kafka and applies YAML rules, alongside the rules Suricata, Zeek and Wazuh already ship. Three rule types cover most needs:

TypeFires whenShipped rules
MatchOne event meets every conditionAdmin share opened over SMB (T1021.002); any connection from the attacker network into the command network (T1046)
ThresholdN events, or N distinct values, per source in a windowPort scan, 40 ports in 2 minutes (T1046); host sweep (T1018); SSH password guessing (T1110.001); DNS tunnelling, 10 long names in 10 minutes (T1048.003)
SequenceFinding A, then finding B, on the same host in a windowCredential access then lateral movement (T1021); discovery then exfiltration (T1048)

2. Incident correlation

The correlator groups scored findings into incidents. Two findings join the same incident when they share an IP address, in either role, or a user account, within 30 minutes. A finding that links two open incidents merges them, so a workstation that is attacked and then attacks the domain controller stays one story. The incident score is the highest finding score plus 3 for every extra ATT&CK tactic it reached. TheHive gets one alert per incident, updated as it grows, with the full timeline, instead of one alert per detection.

3. AI investigation with a local model

When an incident scores 60 or more and goes quiet for 90 seconds, the investigator asks a local language model, served by vLLM on my own GPU (Qwen2.5-7B-Instruct by default), to explain it. No incident data leaves the lab. Because attackers control some of the text the model reads (DNS names, user agents, file names), the model is treated as untrusted:

How the model's answer is checkedThe incident's evidence is numbered and cleaned, the model answers in JSON, and code removes any statement without valid evidence, any action outside the allow-list and any target not in the evidence. If nothing grounded is left, the model gets one retry. Only the checked answer reaches the analyst.Number and clean theevidenceE1..En findings, C1..Cncontext; attacker textstripped and cutLocal model (vLLM)evidence fenced as data;JSON answer onlyChecks in codecited ids exist, action on theallow-list, target in theevidenceChecked summaryinto TheHive, suggestionsonly; hashes to the approvallogRemoved and listeduncited claims, unknowntargets, disallowed actionskeptfailsnothing grounded: one retry
Figure 7. The model's answer passes through checks written in code before anyone sees it. Anything that fails is removed and listed.
  • Evidence is numbered and fenced. Each finding becomes E1, E2, and so on; network context becomes C1, C2. Control characters are stripped and long fields are cut. The prompt says the evidence is data, never instructions.
  • Every claim must cite evidence that exists. A statement with no valid evidence ID is removed.
  • Suggested actions come from an allow-list (block an IP, isolate a host, collect triage, reset credentials, monitor), and the target must appear in the evidence. In the test suite, a DNS name that tells the model to "block 8.8.8.8" produces a suggestion that the checks remove.
  • One retry, then give up. If nothing grounded is left, the model gets the list of problems once; after that the analyst works the incident without a summary.
  • Recorded. The model name, the prompt hash and the answer hash go into the approval log, so every summary can be traced.

This is the shape of what lands in the TheHive alert (format from the test suite, not a lab result):

### AI investigation (model: cddar-llm, suggestions only)
An outside host scanned dc01, then ws01 showed LSASS access and DNS exfiltration.

What happened
- atk01 scanned dc01 (E1)
- Credentials were read from LSASS on ws01 (E2)
- Data left ws01 over DNS (E3)

Suggested actions (an analyst decides):
- block_ip on 10.10.66.10: source of the scan (E1)
- isolate_host on ws01: stop exfiltration (E3)

Checks removed 5 item(s) from the model's answer:
- recommended_actions[1]: target '8.8.8.8' is not in the evidence, removed
- recommended_actions[2]: 'wipe_disk' is not an allowed action, removed

4. Human-approved response playbooks

ResponderWhat it does
TriageVelociraptor collects client info, running processes, network connections and scheduled tasks
Contain hostCollects triage first, then quarantines the host so it can only talk to Velociraptor. If collection fails, it stops before the quarantine
Release hostRemoves the quarantine
Block IPAdds the address to the lab router's block list, refusing anything outside the lab ranges

These are Cortex responders. They run only when an analyst starts one on an observable in TheHive, and every step is written to the approval log. I chose custom playbooks over a full SOAR platform such as Shuffle to keep the lab small and every action easy to audit.

Daru and Splunk-compatible ingestion

Every normalised event is also sent to my Daru SIEM over Splunk's HTTP Event Collector protocol, so Daru's search, dashboards and alerts work on the whole lab. The pipeline also accepts Splunk HEC itself, so any forwarder or script that speaks it can send logs in, and they go through the same detection engine. Incident reports bring it together: one command writes the timeline with evidence IDs, the checked AI summary, every decision and response step, and the approval log's chain check.

The Operating Picture

Mockup of the CD-DAR Cyber Common Operating Picture dashboard: priority counters, a ranked decision queue with reasons, findings by ATT&CK tactic, most-targeted assets and the approval log
Mockup of the planned Cyber Common Operating Picture, laid out from the Grafana dashboard definition in the repository. The numbers are sample values for the layout, not results.

The main Grafana dashboard has twelve panels, each answering one question an analyst asks. A second dashboard, Incidents and AI Investigation, lists incidents by score with their kill chain and checked AI summary, and tracks how often the model's answers pass the checks, how much evidence they cite, and how long they take.

  • P1 findings, all findings, unknown devices, decisions logged: is anything on fire right now?
  • Decision queue: every finding ranked by score, with the asset, ATT&CK technique and the reasons. This replaces the plain severity-sorted list most consoles show.
  • Findings by ATT&CK tactic and over time by priority: how far along is an intruder, and is it getting worse?
  • Most-targeted assets and top talkers: where is the activity concentrated?
  • Network activity per sensor: a flat line means a sensor or its link is down, which matters for the deployable kit.
  • Discovered devices and the approval log: what is on the network, and who decided what.

How to Build It

The build splits into a physical part, which I do by hand over about one weekend, and a scripted part, which the repository does. Full step-by-step instructions, with the exact menu path for every setting, are in the docs/ folder of the public repository on GitHub.

Step 1: The physical part

  1. Proxmox node: free about 71 GB of RAM (53 GB with the lite profile) and 1 TB of disk on one node, enable Snippets on the local storage, and install git, rsync and genisoimage.
  2. Windows ISOs: download the free Windows Server 2022 and Windows 11 Enterprise evaluation images and virtio-win.iso, and upload them to Proxmox.
  3. Home router: give the lab router VM a DHCP reservation. Forward UDP 51820 to it only if the kit will sit on a different network.
  4. Field kit: install Ubuntu Server 24.04 on the mini PC with user lab and the Proxmox node's SSH key, then wire it as in Figure 6.
  5. Switch mirror port: on a TP-Link Easy Smart switch, Monitoring > Port Mirror: enable, destination port 2, sources ports 1 and 3 to 5, ingress and egress. Netgear calls it System > Monitoring > Mirroring.
  6. GPU machine for the model: any box with an NVIDIA GPU of 16 GB or more, the NVIDIA driver and the NVIDIA Container Toolkit. An existing vLLM or other OpenAI-compatible server works too.
  7. Windows installs: install Windows Server in dc01 and Windows 11 in ws01 from the Proxmox console, loading the vioscsi driver so the disk appears.
Field kit wiringThe mini PC has three network ports: an uplink to the home network or any long-haul link, a downlink that is the gateway and DHCP server for the field switch, and a USB network card on the switch's mirror port so Zeek and Suricata see every field device's traffic.Home network or long-haul linkWireGuard tunnel back to the lab routerMini PC kit01Ubuntu 24.04, k3s pod: Zeek + Suricata + Vector with a 4 GB disk bufferSwitch port 1kit DOWNLINK, gateway 10.10.30.1,DHCPSwitch port 2mirror DESTINATION, kit USB captureNIC, no IPSwitch ports 3-5field devices, mirror SOURCES,10.10.30.100-200UPLINKDOWNLINKCAPTUREmirrored copy
Figure 8. Field kit wiring. The switch copies field-device traffic to port 2, where the kit's USB network card listens without an address.

Step 2: Build the lab (scripted)

cp lab.env.example lab.env          # set node name, storage, SSH key
./proxmox/setup-lab-bridge.sh        # isolated VLAN-aware bridge in hub mode
./proxmox/create-lab.sh              # router, core, soc, sensor, srv01-srv10, atk01
./proxmox/create-windows-shells.sh   # dc01 and ws01, with a CD of lab scripts

Step 3: Windows domain (three scripts from the CD)

E:\01-dc01-promote.ps1 -SafeModePassword "..."   # dc01: lab.cddar.test forest
E:\02-dc01-populate.ps1                          # dc01: synthetic users, audit policy
E:\01-ws01-join.ps1                              # ws01: join the domain

Step 4: Deploy everything else

./deploy/deploy.sh all          # 30 to 60 minutes
./deploy/deploy.sh passwords    # every web console login
./deploy/deploy.sh status       # every service should say "up"
./deploy/deploy.sh llm [email protected]   # vLLM on my GPU machine for the AI investigator

That one command generates every password and key, then sets up the router (responder key, WireGuard configs), the core (OpenSearch, Kafka, Vector, Grafana, NetBox with the asset list, detection engine, scorer, correlator, AI investigator, discovery, approval log), the SOC (Wazuh, Daru, TheHive, Cortex with the block and playbook responders, Velociraptor, and links them all), the sensor (Zeek, Suricata with ET Open rules), the Linux agents and Caldera. Then E:\install-agents.ps1 on both Windows machines adds Sysmon, the Wazuh agent and the Velociraptor client.

Step 5: The field kit

./deploy/deploy.sh kit 192.168.1.50   # the kit's home-network address
./deploy/deploy.sh internet off       # close the lab before any attack test

The kit becomes the gateway and DHCP server for its field network, opens WireGuard to the lab, installs k3s and runs Zeek, Suricata and Vector as one pod, using the same configuration files as the lab sensor.

Step 6: Test it

./tests/emulation/run-all.sh   # 10 attack steps, then scores coverage, MTTD, MTTR
.\run-atomics.ps1 -RunId ...    # on ws01: Atomic Red Team, 15 techniques, scored the same way
./deploy/deploy.sh ddil        # kit outage test: healthy, degraded, cut, restored
ATT&CKStepFromExpected detector
T1046Service scan of the command networkatk01Suricata (ET Open + lab rule)
T1110.001SSH password guessing against srv01atk01Zeek SSH brute-force policy, Wazuh
T1021.002SMB admin share access on dc01atk01, ws01Suricata lab rules, Wazuh
T1059.001Encoded PowerShellws01Sysmon + Wazuh
T1087.002Domain account discoveryws01Sysmon + Wazuh
T1053.005Scheduled task created and deletedws01Sysmon + Wazuh
T1547.001Run key added and removedws01Sysmon + Wazuh
T1003.001LSASS minidump, deleted at oncews01Sysmon LSASS access + Wazuh
T1048.003Synthetic document out over DNS to a lab-only zonews01Zeek long-query notice, Suricata lab rule
T1200Unknown device plugged into the field switchfield networkDiscovery vs NetBox

Each step is logged to the approval log before it starts, so the scoring script can measure time to detect exactly, and each step cleans up after itself. A missed technique is a result, not a failure: tune the detection, re-run, and publish both runs.

What Is in the Code

All of it is open source under the MIT licence: github.com/TYFSADIK/cd-dar-testbed.

FolderWhat it holds
proxmox/Lab bridge, VM creation, cloud-init for every Linux VM, including the router's default-deny firewall, WireGuard and the restricted lab-block command
deploy/Secret generator and one deploy script with all, per-machine, kit, internet on|off, status, passwords and ddil targets
stacks/Docker Compose stacks for core, SOC and sensor; the Vector OCSF mapping with built-in tests; the OpenSearch index template and retention; the generated Grafana dashboard; Zeek policy and Suricata lab rules
services/Six Python services: detection engine with YAML rules, decision scorer, incident correlator, AI investigator, discovery (Nmap plus passive Zeek sightings against NetBox) and the hash-chained approval log
responders/Cortex responders: block an IP on the router; triage, contain and release playbooks driving Velociraptor
stacks/llm/vLLM for the AI investigator on a GPU machine
endpoints/Windows domain scripts and the Sysmon, Wazuh and Velociraptor installers for Windows and Linux
kit/Field kit setup, the k3s sensor pod, and the outage test
tests/, tools/Emulation runners, Caldera launcher, Atomic Red Team runner, NASA-TLX workload scoring, run scoring, incident reports, NetBox, TheHive, Cortex and Daru setup, chain-of-custody hashing

Checked before any hardware is touched:

  • 62 automated tests pass: 54 Python tests (detection rules, incident correlation and merging, AI answer checks including a prompt-injection case, playbook ordering, scoring, discovery, hash-chain tamper and deletion detection, run scoring, incident reports) and 8 Vector pipeline tests (Zeek, Suricata, Wazuh, Splunk HEC and discovery events mapped to OCSF).
  • All four Docker Compose stacks validate, including the Daru override checked against Daru's own compose file, every shell script passes ShellCheck, every cloud-init template renders with no missing values.
  • A security review of my own code caught one real problem before it shipped: the endpoint download server would have exposed Velociraptor's private server keys. It now serves a separate folder holding only client files.

What tests on a laptop cannot prove is how it behaves on real hardware. Expect first-run fixes; they will be recorded here.

Testing also caught a real problem in a dependency: Vector 0.62 no longer fills in environment variables in its configuration unless a flag is set, so every pipeline would have started with placeholder text instead of its passwords and addresses. The flag is now set explicitly.

Spec-Gap and Status Table

"Code ready" means written and tested offline, not yet running in the lab. Nothing is "Measured" until a lab run produces the number. This table will be updated in place.

CapabilityDesign intentStatus
Network discoveryActive and passive discovery reconciled with NetBox; unknown devices flaggedCode ready
Integrated sensorsZeek, Suricata, Wazuh and Daru feeding one pipelineCode ready
Cyber Data RepositoryOpenSearch with OCSF-normalised events and stated retentionCode ready
Cyber COPSingle picture of assets, alerts, ATT&CK stage and mission impactCode ready
Detection engineMatch, threshold and sequence rules as code, ATT&CK-taggedCode ready
Decision scoringContext-ranked alerts with a readable reasonCode ready
Incident correlationFindings grouped and merged into incidents with timelines; one alert per incidentCode ready
AI investigationLocal model on vLLM; evidence-cited summaries checked in code; suggestions onlyCode ready
AI answer qualityCheck pass rate, evidence coverage, analyst agreement, latencyNot tested
Daru SIEM and HEC ingestionEvery event copied to Daru; Splunk-compatible inputCode ready
Human-approved responseTriage, contain, release and block playbooks; no action without approval; every step loggedCode ready
Remote forensicsVelociraptor collection with hashed chain of custodyCode ready
ATT&CK coverageCaldera and Atomic Red Team scenarios scored per techniqueNot tested
Human factorsWorkload and triage time measured against a plain queueNot tested (form and script ready)
Deployable kitk3s kit with store-and-forward through link lossCode ready

Metrics to Publish

  • ATT&CK technique coverage: share of emulated techniques detected.
  • Mean time to detect and mean time to respond, for the ranked queue and the plain queue.
  • False-positive rate per day of normal lab activity.
  • Asset discovery completeness against NetBox, and time to flag a planted unknown device.
  • Remote forensic collection time per host, and hash verification of every artefact.
  • Operating picture freshness: time from event to screen.
  • Analyst workload: alerts per hour, time per triage, and NASA-TLX score.
  • Deployable kit: events lost during link outages, target zero.
  • Incident correlation: alerts per incident, and how many separate alerts the analyst no longer has to open.
  • AI investigation: share of answers that pass the evidence checks, evidence coverage, analyst agreement with the assessment, items the checks removed, and latency.

Hardware to Buy First

Most of the build runs on the homelab I already have. The shopping list is short:

ItemWhyNotes
Fanless mini PC, 16 GB RAM, 256 GB SSD, two Ethernet portsThe deployable kitAny N100 or N305 class box with dual 2.5 GbE
USB 3 gigabit Ethernet adapterThird port on the kit, for the mirror portRTL8153 or AX88179 chipsets work well on Linux
5 or 8 port managed switch with port mirroringThe field networkTP-Link TL-SG105E / TL-SG108E or Netgear GS305E / GS308E
One or two small devicesSomething on the field network to watchA Raspberry Pi or an old laptop
RAM for the Proxmox node, if shortThe lab needs about 71 GB, 53 GB in lite modeSee Figure 9
NVIDIA GPU, 16 GB or more (if none at home)Runs the local model for AI investigationOptional: any OpenAI-compatible server works, but data must stay local
Planned memory per machine (GB)Memory allocated to each lab VM in the full build, 71 GB in total; the lite profile cuts core and SOC and uses four extra test machines instead of eight. The language model runs on a separate GPU machine.cddar-core20 GB OpenSearch, Kafka, NetBox, AI servicescddar-soc20 GB Wazuh, Daru, TheHive, Cortexcddar-sensor6 GB Zeek, Suricatasrv03-srv108 GB 1 GB each, 8 machinesdc01 / ws014 GB eachatk014 GB Calderasrv01 / srv022 GB eachlab-router1 GB
Figure 9. Planned memory per lab machine. OpenSearch on the core is the largest single user.

Safety and Legal Notes

Independent work: this build is not affiliated with, funded by, or submitted to DND, the CAF or ADM(DS). It uses only the public CD-DAR description and touches no government network, system or data.
Attack your own gear only: Caldera, Atomic Red Team and every scan run inside an isolated lab segment on machines I own. Defensive only: nothing here is aimed at any system I do not own.
Synthetic data only: network names, assets, users and incidents in the testbed are synthetic. Published dashboards and datasets contain no real addresses or credentials.

Frequently Asked Questions

What is CD-DAR?

Cyber Defence - Decision Analysis and Response (CD-DAR) is a National Defence project listed in the Defence Capabilities Blueprint. It will acquire defensive cyber capabilities for DND/CAF networks: network discovery, integrated cyber defence tools, an authoritative Cyber Data Repository, a Cyber Common Operating Picture, attention to human factors, and remote cyber forensics. The listed funding range is $250 million to $499 million, with implementation starting in 2026/2027 and final delivery in 2030/2031.

Is this build part of the CD-DAR project?

No. This is an independent, personal research build. It uses only the public project description to shape a bench-scale testbed on homelab hardware. It is not affiliated with, funded by, or submitted to DND, the CAF or ADM(DS), and it touches no government network or data.

Which open-source tools does the testbed use?

Zeek and Suricata for network sensing, Nmap and NetBox for discovery, Wazuh with Sysmon and auditd on hosts, the Daru SIEM, Vector and Kafka feeding OpenSearch as the OCSF Cyber Data Repository, a Python detection engine and incident correlator, a local language model on vLLM for incident investigation, Grafana for the cyber COP, TheHive and Cortex for cases and approved response, Velociraptor for remote forensics and quarantine, and Caldera with Atomic Red Team for testing.

Does the AI take any action on its own?

No. A local model on vLLM writes an incident summary and suggests actions, and code checks every claim: each statement must cite evidence that exists, each suggested action must be on an allow-list, and each target must appear in the evidence, or it is removed. The checked summary goes into the TheHive alert. Nothing runs until an analyst starts a responder, and the model's answer is recorded in the tamper-evident approval log.

How will detection and response be tested?

With adversary emulation in an isolated lab segment: MITRE Caldera and Atomic Red Team run known ATT&CK techniques against my own machines. The testbed is scored on ATT&CK coverage, time to detect, time to respond, false-positive rate, asset discovery completeness and remote forensic collection time.

Is anything built or measured yet?

The code is. The whole testbed is written as scripts, configuration, six Python services and response playbooks, with 62 automated tests that pass. The physical build and the first lab run come next, so no capability is measured yet; results will be added to the status table as each one is.

What Happens Next

Build statusWhere the build stands: the lab code and the AI SOC layer are written and tested offline, the physical build is next, then the lab deployment, the model on vLLM, and the test runs.PHASE 1 · DONELab codepipeline, COP, forensics,kitPHASE 2 · DONEAI SOC layerrules, incidents, LLM,playbooks; 62 testsPHASE 3 · IN PROGRESSPhysical buildkit, switch, Windows,GPUPHASE 4 · NEXTLab deploydeploy.sh all + llmPHASE 5 · NEXTTest runsscripted, Caldera,Atomic
Figure 10. Build status. The code, including the AI SOC layer, is done; the physical build is next.
  • Next: buy the kit parts, wire the switch, install Windows, then deploy.sh all.
  • First results: the first emulation run's coverage, time to detect and time to respond, published as a table here, missed techniques included.
  • Winter fit: like the other software builds, this one needs no field weather window, so it runs through the southern Ontario winter.
  • Project timeline: CD-DAR implementation is listed to start in 2026/2027, so this testbed is pre-competitive skill building aligned with where Canada's defensive cyber work is heading.

Cite This Page

Citation formats

Plain text

Taki Sadik, "Cyber Defence Decision Analysis and Response (CD-DAR) Testbed Build Guide", TYFSADIK, https://tyfsadik.org/work/defence/cyber-defence-decision-analysis-response (accessed 2026-11-21).

BibTeX

@misc{sadik-cd-dar-testbed,
  author  = {Sadik, MD. Taki Yasir Faraji},
  title   = {Cyber Defence Decision Analysis and Response (CD-DAR) Testbed Build Guide},
  year    = {2026},
  url     = {https://tyfsadik.org/work/defence/cyber-defence-decision-analysis-response},
  urldate = {2026-11-21}
}

APA

Sadik, M. T. Y. F. (2026). Cyber Defence Decision Analysis and Response (CD-DAR) Testbed Build Guide. TYFSADIK. https://tyfsadik.org/work/defence/cyber-defence-decision-analysis-response