1. pyproject.toml — move pycdlib to main deps (was dev-only; cidata build
fails on first install because the venv doesn't include dev extras).
2. scripts/install-lab-host.sh — create vm/images/ dir before symlinking
alpine-baseline.qcow2 and cidata.iso into INSTALL_ROOT. Without the
mkdir the ln -sf silently fails (|| true), leaving the launchers unable
to find the images and causing every episode to fail within 15 s.
3. tools/cis490_doctor.py — two fixes:
a. Insert repo_root into sys.path at doctor startup so the inline
`from exploits.modules import ...` succeeds when running from /opt/cis490
(package = false means nothing is installed into site-packages).
b. Pass cwd=/opt/cis490 to the shipper --ping subprocess so python -m
shipper resolves the module correctly regardless of the caller's CWD.
Tested on k-gamingcom: install script now builds cidata.iso on first run,
7-slot fleet wave completes with rc=0, doctor shows 13 ok / 4 warn / 2 fail
(remaining failures are mTLS certs + collector.wg DNS — both need Pi-side
action, not code changes).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
28 lines
736 B
TOML
28 lines
736 B
TOML
[project]
|
|
name = "cis490"
|
|
version = "0.0.1"
|
|
description = "CIS490 behavioral malware detection — dataset, transport, training"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"starlette>=0.36",
|
|
"uvicorn[standard]>=0.27",
|
|
"msgpack>=1.0", # MSF RPC wire format for the Tier-3 exploit driver
|
|
"pycdlib>=1.14", # build NoCloud cidata ISOs in pure Python
|
|
]
|
|
|
|
[dependency-groups]
|
|
dev = [
|
|
"pytest>=8",
|
|
"pytest-asyncio>=0.23",
|
|
"httpx>=0.27",
|
|
"matplotlib>=3.8",
|
|
"tornado>=6", # required by matplotlib's WebAgg interactive backend
|
|
"paramiko>=3", # SSH client for in-guest control on images that support it
|
|
]
|
|
|
|
[tool.uv]
|
|
package = false
|
|
|
|
[tool.pytest.ini_options]
|
|
asyncio_mode = "auto"
|
|
testpaths = ["tests"]
|