An isolated local lab that extends the single-VM de-risk (deploy/validation/vm, 2026-11-08) to a multi-sensor fleet run over days, to produce the delayed-label history the Stage 4 fleet gate needs. All local/offline: Caldera on loopback (rootless Docker, capped), sensor VMs reach it only via the qemu slirp gateway, no traffic leaves the host; payloads are inert markers (a copy of /bin/sleep with a marker string), never real malware. - range_up.sh: boot/resume Caldera + N Arch VMs running the real daemon (eBPF + fanotify), benign workload and a Caldera agent as systemd units; idempotent and travel-safe (VM disks + scheduler state persist under $SB_RANGE_DIR, the scheduler paces by its own uptime, so suspend/reboot just pauses it and range_up.sh resumes). - range_workload.sh: varied benign activity so the detector learns a real baseline the emulated incidents must stand out from. - range_attack.py: one distinct Caldera incident per 30-90 min per sensor (fresh ability + operation so each lands in its own replay window); incidents are unknown to the rules at exec time, then a later rule-file update + rules reload lets the retro-hunt label the earlier windows -- the delayed extra positives the gate measures, produced the production way, not injected. - range_status.sh / range_down.sh (pause or --destroy), README, cloud-init. Nothing here writes to the repo; the $SB_RANGE_DIR runtime tree is disposable. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
44 lines
673 B
Go Template
44 lines
673 B
Go Template
#cloud-config
|
|
hostname: sensor
|
|
users:
|
|
- name: arch
|
|
sudo: ALL=(ALL) NOPASSWD:ALL
|
|
groups: wheel
|
|
shell: /bin/bash
|
|
lock_passwd: true
|
|
ssh_authorized_keys:
|
|
- @SSH_KEY@
|
|
ssh_pwauth: false
|
|
package_update: true
|
|
packages:
|
|
- yara
|
|
- libbpf
|
|
- libngtcp2
|
|
- libnghttp3
|
|
- libnghttp2
|
|
- file
|
|
- icu
|
|
- libpsl
|
|
- libssh2
|
|
- libidn2
|
|
- libunistring
|
|
- libxml2
|
|
- libarchive
|
|
- krb5
|
|
- keyutils
|
|
- brotli
|
|
- lz4
|
|
- xz
|
|
- zstd
|
|
- libelf
|
|
- openssl
|
|
- curl
|
|
- python
|
|
- gcc
|
|
- make
|
|
- git
|
|
- cronie
|
|
runcmd:
|
|
- [ systemctl, enable, --now, cronie ]
|
|
- [ touch, /run/strawberry-vm-ready ]
|
|
final_message: "STRAWBERRY-RANGE-CLOUDINIT-DONE"
|