cyber-range / VALIDATION.md
philippefunk's picture
Publish core lab configuration
b198790 verified
|
Raw History Blame Contribute Delete
2.51 kB

Validation Report

Date: 2026-11-26

Verified on this workstation

Host observed by preflight:

  • Python 3.12.16
  • 20 logical CPU threads (initial capability check)
  • 31.1 GiB physical RAM
  • Git available
  • Docker CLI/engine unavailable

Unit tests

Command:

python -m unittest discover -s tests -v

Observed result: 21 tests passed, 0 failures.

Coverage includes:

  • Nmap target and option-injection rejection.
  • Safe argument-array command construction.
  • Wazuh patch idempotence and the official two-<ossec_config> layout.
  • Resource-budget values and physical-memory detection.
  • Loopback-only published-port validation, including Compose ${VAR:-default} syntax.
  • Deterministic alert severity, malformed JSON handling, bounded/untrusted prompts.
  • Ollama-outage fallback, alert-follower restart deduplication, and report persistence.

Static policy and syntax checks

Command:

python validate.py
python -m compileall -q lab.py validate.py soc_copilot tests

Observed result: passed. The validator checked required services and guides, internal target networking, memory limits, localhost bindings, and the absence of privileged mode, host PID, and Docker-socket mounts. All Python files compiled successfully.

Offline behavior

Command:

python lab.py triage examples/alerts.json

Observed result: two valid advisory JSON reports, including one high-severity and one low-severity deterministic result.

Documentation coverage

Observed result: all ten numbered resources are present in docs/RESOURCES.md; dedicated VM, Android, Academy, operations, and troubleshooting guides exist.

Not verified: runtime deployment

Command:

python lab.py preflight

Observed result: Docker CLI: NOT FOUND; preflight returned exit code 1 as designed.

Therefore:

  • docker compose config could not be run with the Docker CLI.
  • No images were pulled or containers started.
  • Wazuh certificate generation and manager/indexer/dashboard health were not runtime-tested.
  • WAF, Juice Shop, MobSF, Ollama, and copilot HTTP endpoints were not runtime-tested.
  • Security Onion and GOAD are documented VM tracks, not installed VMs.

The package is statically validated and unit-tested, but it is not claimed to be a running or runtime-verified deployment. After installing/starting Docker, begin with:

python lab.py preflight
python lab.py up core

Then verify http://127.0.0.1:8080 before enabling heavier profiles.