philippefunk commited on
Commit
98cdced
·
verified ·
1 Parent(s): b198790

Publish lab runbooks

Browse files
docs/ANDROID.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Android Application Security Track
2
+
3
+ ## Local MobSF service
4
+
5
+ Start the static-analysis container:
6
+
7
+ ```bash
8
+ python lab.py up mobile
9
+ ```
10
+
11
+ Open `http://127.0.0.1:8000`. The official image documents default local credentials `mobsf` / `mobsf`; keep the service on localhost and change them before any other exposure.
12
+
13
+ Upload an APK you own or a dedicated training APK. Review permissions, exported components, network security configuration, hardcoded secrets, certificates, and third-party libraries. Save the report before a destructive reset.
14
+
15
+ Official MobSF references: [running with Docker](https://github.com/MobSF/docs/blob/master/running_mobsf_docker.md), [persistent volumes and queues](https://github.com/MobSF/docs/blob/master/docker_options.md).
16
+
17
+ ## Safe training target
18
+
19
+ The [OWASP MAS Crackmes](https://github.com/OWASP/mas-crackmes) are purpose-built mobile reverse-engineering challenges. Start with Android UnCrackable Level 1 and use the corresponding OWASP MAS Testing Guide material. Avoid reading the challenge source first if you do not want spoilers.
20
+
21
+ A historical APK location referenced by the MAS material is:
22
+
23
+ ```text
24
+ https://raw.githubusercontent.com/OWASP/owasp-mastg/master/Crackmes/Android/Level_01/UnCrackable-Level1.apk
25
+ ```
26
+
27
+ Prefer the current official crackmes repository and verify that the target is intended for training before installation.
28
+
29
+ ## Static versus dynamic analysis
30
+
31
+ The container configuration provides **static analysis**. A web upload does not create an Android emulator. Dynamic analysis requires a separate, snapshot-protected Android emulator/VM or test device and the current MobSF dynamic-analysis setup.
32
+
33
+ For dynamic work:
34
+
35
+ 1. Keep the emulator on an isolated virtual network.
36
+ 2. Install only the training APK.
37
+ 3. Take a clean snapshot before instrumentation.
38
+ 4. Use ADB and the official MobSF dynamic-analysis instructions.
39
+ 5. Do not test banking, work, personal, or third-party applications.
40
+
41
+ Do not upload proprietary APKs to hosted scanners. The local MobSF service avoids that exposure by default.
docs/GOAD.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # GOAD Active Directory VM Track
2
+
3
+ GOAD is a deliberately vulnerable multi-VM Active Directory range maintained by Orange Cyberdefense. Use the official provisioner rather than an unofficial container conversion.
4
+
5
+ ## Capacity decision for a 32 GiB host
6
+
7
+ | Lab | Official RAM guidance | Disk guidance | Recommendation |
8
+ |---|---:|---:|---|
9
+ | GOAD-Light | About 20 GiB | Roughly 115 GB including images; snapshots need more | Recommended, with other heavy workloads stopped |
10
+ | Full GOAD | About 24 GiB | Roughly 115 GB including images; snapshots need more | Memory-constrained; use a larger host |
11
+
12
+ The official Windows guide lists these requirements and supports VirtualBox/VMware workflows with Vagrant. It currently notes VirtualBox up to 7.1.x in its tested instructions; follow the version constraints in the guide rather than assuming the newest hypervisor works.
13
+
14
+ Sources: [GOAD repository](https://github.com/Orange-Cyberdefense/GOAD), [Windows installation](https://github.com/Orange-Cyberdefense/GOAD/blob/main/docs/mkdocs/docs/installation/windows.md), [Linux installation](https://github.com/Orange-Cyberdefense/GOAD/blob/main/docs/mkdocs/docs/installation/linux.md).
15
+
16
+ ## Windows + VirtualBox path
17
+
18
+ 1. Stop Security Onion and run `python lab.py down`.
19
+ 2. Confirm at least 20 GiB RAM available to the lab and 120–150 GiB free disk including snapshot headroom.
20
+ 3. Install the prerequisites from the official guide: compatible VirtualBox, Vagrant, Visual C++ runtime, and plugins:
21
+
22
+ ```powershell
23
+ vagrant plugin install vagrant-reload vagrant-vbguest winrm winrm-fs winrm-elevated
24
+ ```
25
+
26
+ 4. Clone and enter the official repository on a local drive:
27
+
28
+ ```powershell
29
+ git clone https://github.com/Orange-Cyberdefense/GOAD.git
30
+ cd GOAD
31
+ ```
32
+
33
+ 5. Follow the repository's current Python/WSL instructions. The Windows guide offers a WSL-based `./goad.sh` flow and a native Python `py goad.py -m vm` flow. Use its current dependency file and supported Python version rather than mixing commands from older blogs.
34
+ 6. Select **GOAD-Light**, the local VirtualBox provider, and host-only networking in the interactive installer.
35
+ 7. After provisioning, verify every VM, take clean snapshots, and disconnect any adapter that bridges the vulnerable domains to a real LAN.
36
+
37
+ For scripted Linux installations, the official repository documents `./goad.sh` with `-t check` and `-t install`; use its current help to select `GOAD-Light` and the chosen provider.
38
+
39
+ ## Authorized exercises
40
+
41
+ - Enumerate users, hosts, shares, sessions, and domain trusts inside the lab.
42
+ - Map attack paths and privilege escalation only against GOAD systems.
43
+ - Capture endpoint/network logs for blue-team correlation where supported.
44
+ - Revert all VMs to the same snapshot set between scenarios.
45
+
46
+ Do not reuse credentials from GOAD elsewhere. Do not route vulnerable domain traffic to production networks. Do not run password spraying or attack tools against external systems.
47
+
48
+ ## Shutdown
49
+
50
+ Use the official stop/start or Vagrant halt workflow for the selected provider. Shut down the whole domain consistently before restoring snapshots or starting the container range.
docs/PORTSWIGGER.md ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # PortSwigger Web Security Academy Track
2
+
3
+ PortSwigger labs are hosted training targets. They are not bundled into Docker and should not be scanned as though they were your local Juice Shop instance. Create a free Academy account to save progress and launch each lab through its official page.
4
+
5
+ ## Suggested sequence
6
+
7
+ 1. **SQL injection** — [topic and labs](https://portswigger.net/web-security/sql-injection)
8
+ Begin with the login-bypass apprentice lab, then progress to data retrieval and blind techniques.
9
+ 2. **Cross-site scripting** — [topic and labs](https://portswigger.net/web-security/cross-site-scripting)
10
+ Compare reflected, stored, and DOM-based contexts; document encoding and browser sinks.
11
+ 3. **Authentication** — [topic and labs](https://portswigger.net/web-security/authentication)
12
+ Practice password-based authentication, MFA logic, and account-recovery analysis only in Academy labs.
13
+ 4. **Access control** — [topic and labs](https://portswigger.net/web-security/access-control)
14
+ Compare vertical and horizontal authorization failures and parameter/object references.
15
+ 5. **Mixed review** — [all labs](https://portswigger.net/web-security/all-labs)
16
+ Use apprentice/practitioner filters and finish with a mystery lab when ready.
17
+
18
+ ## Local transfer exercises
19
+
20
+ After each hosted topic, reproduce the concept only in the local range:
21
+
22
+ - Use Juice Shop through `http://127.0.0.1:8080`.
23
+ - Record whether the CRS WAF blocks, logs, or misses the test.
24
+ - Switch to `DetectionOnly` only for comparison, then restore blocking mode.
25
+ - Document a defensive fix or detection rule for every successful challenge.
26
+
27
+ Burp Suite is a separate desktop application with its own license and GUI requirements; this package does not wrap it in an unsupported container. Use the edition appropriate for your Academy work and configure its proxy only for intended lab traffic.
docs/RESOURCES.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Official Resource Map
2
+
3
+ The shortened LinkedIn links in the request were treated as pointers, not deployment sources. Installation and learning tracks below use official project sites.
4
+
5
+ 1. **SIEM Home Lab — Wazuh**
6
+ Local track: official single-node Docker release 4.14.10, installed by `python lab.py wazuh-setup`.
7
+ Sources: [Docker deployment documentation](https://documentation.wazuh.com/current/deployment-options/docker/wazuh-container.html), [official release repository](https://github.com/wazuh/wazuh-docker/tree/v4.14.10).
8
+
9
+ 2. **Web Application Firewall Lab**
10
+ Local track: official OWASP ModSecurity CRS Nginx image proxying Juice Shop, blocking mode and paranoia level 1.
11
+ Sources: [CRS installation](https://coreruleset.org/docs/1-getting-started/1-1-crs-installation/), [official container configuration](https://github.com/coreruleset/modsecurity-crs-docker).
12
+
13
+ 3. **Home SOC with AI Integration**
14
+ Local track: Wazuh, shared WAF logs, local Ollama, and the copilot. No third-party AI endpoint is configured.
15
+ Sources: [Wazuh external API concepts](https://documentation.wazuh.com/current/user-manual/manager/integration-with-external-apis.html), [Ollama Docker announcement](https://ollama.com/blog/ollama-is-now-available-as-an-official-docker-image).
16
+
17
+ 4. **AI-Powered SOC Analyst Agent**
18
+ Local track: advisory-only JSON triage with severity, rationale, recommended human checks, persistent deduplication, and deterministic fallback. It deliberately has no active-response endpoint.
19
+ Local implementation: `soc_copilot/copilot.py`; exercises: [RUNBOOK](RUNBOOK.md).
20
+
21
+ 5. **Security Onion Home Lab**
22
+ VM track: official ISO, starting with Import mode for low-resource file analysis and advancing to Evaluation.
23
+ Sources: [first-time users](https://docs.securityonion.net/en/2.4/first-time-users.html), [hardware requirements](https://docs.securityonion.net/en/2.4/hardware.html), [installation](https://docs.securityonion.net/en/2.4/installation.html).
24
+ Local guide: [SECURITY_ONION](SECURITY_ONION.md).
25
+
26
+ 6. **Android Application Hacking Lab**
27
+ Local track: MobSF static analysis in a localhost-only container; separate emulator/VM required for dynamic work.
28
+ Sources: [MobSF Docker documentation](https://github.com/MobSF/docs/blob/master/running_mobsf_docker.md), [OWASP MAS Crackmes](https://github.com/OWASP/mas-crackmes).
29
+ Local guide: [ANDROID](ANDROID.md).
30
+
31
+ 7. **Network Reconnaissance with Nmap**
32
+ Local track: Alpine/Nmap image, explicit targets, numeric option validation, no shell invocation, and `NET_RAW` only for the scan run.
33
+ Sources: [Nmap reference guide](https://nmap.org/book/man.html), [Alpine 3.22 package](https://pkgs.alpinelinux.org/package/v3.22/main/x86_64/nmap).
34
+
35
+ 8. **Web Application Security — PortSwigger Academy**
36
+ Hosted track: official labs are linked rather than copied into the local range.
37
+ Sources: [all labs](https://portswigger.net/web-security/all-labs), [SQL injection](https://portswigger.net/web-security/sql-injection), [XSS](https://portswigger.net/web-security/cross-site-scripting), [authentication](https://portswigger.net/web-security/authentication), [access control](https://portswigger.net/web-security/access-control).
38
+ Local guide: [PORTSWIGGER](PORTSWIGGER.md).
39
+
40
+ 9. **OWASP Juice Shop**
41
+ Local track: pinned `bkimminich/juice-shop:v20.4.0` on the internal target network behind the WAF.
42
+ Sources: [official project](https://owasp.org/www-project-juice-shop/), [official repository](https://github.com/juice-shop/juice-shop), [practical companion guide](https://pwning.owasp-juice.shop/companion-guide/latest/).
43
+
44
+ 10. **Active Directory Hacking — GOAD**
45
+ VM track: official Orange Cyberdefense provisioning, GOAD-Light recommended for this host.
46
+ Sources: [official repository](https://github.com/Orange-Cyberdefense/GOAD), [Windows installation requirements](https://github.com/Orange-Cyberdefense/GOAD/blob/main/docs/mkdocs/docs/installation/windows.md).
47
+ Local guide: [GOAD](GOAD.md).
docs/RUNBOOK.md ADDED
@@ -0,0 +1,114 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Cyber Range Runbook
2
+
3
+ ## Safety checks before every session
4
+
5
+ 1. Run `python lab.py preflight`.
6
+ 2. Keep Security Onion and GOAD stopped while using heavyweight container profiles.
7
+ 3. Use only `127.0.0.1` bindings and host-only VM networks.
8
+ 4. Scan only lab services or systems you own/are authorized to test.
9
+ 5. Snapshot VMs before attacks and restore them afterward.
10
+
11
+ ## WAF + Juice Shop exercise
12
+
13
+ Start the lightweight stack:
14
+
15
+ ```bash
16
+ python lab.py up core
17
+ ```
18
+
19
+ 1. Browse `http://127.0.0.1:8080` and confirm it is Juice Shop.
20
+ 2. Send a normal request and record the response.
21
+ 3. Send the controlled SQLi-like test from the README and inspect the WAF result.
22
+ 4. Work through a Juice Shop challenge using the [official companion guide](https://pwning.owasp-juice.shop/companion-guide/latest/).
23
+ 5. Inspect logs without mounting the Docker socket:
24
+
25
+ ```bash
26
+ docker compose logs waf
27
+ ```
28
+
29
+ For detection-only comparison, copy `.env.example` to `.env`, set `WAF_MODE=DetectionOnly`, and recreate the core profile. Restore `WAF_MODE=On` afterward. DetectionOnly is a learning mode, not protection.
30
+
31
+ ## Nmap exercise
32
+
33
+ The controller accepts IPs, CIDRs, hostnames, and Compose service names. It rejects shell metacharacters, unexpected options, and implicit targets.
34
+
35
+ ```bash
36
+ python lab.py scan juice-shop
37
+ python lab.py scan waf -- -sV --top-ports 100
38
+ python lab.py scan juice-shop -- -sT -p 3000
39
+ ```
40
+
41
+ Allowed flags are `-sV`, `-sT`, `-sS`, `-Pn`, `-O`, `--open`, `--top-ports`, and `-p`. Run arbitrary Nmap options manually only inside your own range if you understand their impact; the controller intentionally uses a small allowlist.
42
+
43
+ ## Wazuh exercise
44
+
45
+ Install once with `python lab.py wazuh-setup`, then open `https://127.0.0.1:5443`.
46
+
47
+ 1. Explore the manager, indexer, and dashboard in **Threat Hunting**.
48
+ 2. Add a disposable endpoint VM using the official Wazuh agent documentation.
49
+ 3. Keep agent ports localhost-only unless the endpoint is an explicitly isolated VM. If remote agent access is needed, create a separate host-only override rather than binding to `0.0.0.0`.
50
+ 4. Generate harmless events such as failed local authentication attempts and file-integrity changes on the disposable endpoint.
51
+ 5. Correlate endpoint events with WAF `error.log`, which the manager reads from the shared read-only volume.
52
+
53
+ The official local dashboard default is `admin` / `SecretPassword`. Change credentials before any non-local use; this package intentionally does not expose the stack remotely.
54
+
55
+ ## AI analyst exercise
56
+
57
+ Start `python lab.py up ai`. Optionally download the local model with `python lab.py pull-model`.
58
+
59
+ - `/healthz` reports liveness.
60
+ - `/reports.json` returns processed reports, newest first.
61
+ - `/` shows escaped report cards and refreshes every 15 seconds.
62
+ - Reports are stored in the `copilot_reports` named volume as `triage.jsonl`.
63
+ - Only Wazuh alerts at rule level 10 or above are processed by default.
64
+ - Existing alerts are skipped on first startup; set `PROCESS_EXISTING_ALERTS=1` only when intentionally importing them.
65
+
66
+ Stop Ollama or withhold the model to test deterministic fallback. Reports then contain `analysis_source: deterministic-fallback` and may contain `ai_error`. No report triggers a response action.
67
+
68
+ Offline fallback test:
69
+
70
+ ```bash
71
+ python lab.py triage examples/alerts.json
72
+ ```
73
+
74
+ ## Security Onion and GOAD
75
+
76
+ Use their separate VM guides. They are not fake Compose services and are not included in `all-containers`.
77
+
78
+ ## Backup
79
+
80
+ Stop the relevant profile first. The following example backs up WAF logs on a host with Docker:
81
+
82
+ ```bash
83
+ docker run --rm -v cyber-range-waf-logs:/data:ro -v "${PWD}:/backup" alpine:3.22 tar -czf /backup/waf-logs.tar.gz -C /data .
84
+ ```
85
+
86
+ Back up Wazuh using its official persistent-volume guidance. Copilot reports can be copied from the `copilot_reports` volume with the same read-only mount pattern. Store backups outside the range and protect any sensitive alert content.
87
+
88
+ ## Non-destructive stop
89
+
90
+ ```bash
91
+ python lab.py down
92
+ ```
93
+
94
+ This preserves named volumes and downloaded Wazuh files.
95
+
96
+ ## Destructive reset
97
+
98
+ A reset permanently deletes evidence, reports, models, and application state. First make backups and stop every related service.
99
+
100
+ Root Compose volumes:
101
+
102
+ ```bash
103
+ docker compose down -v --remove-orphans
104
+ ```
105
+
106
+ External shared volumes must be removed explicitly, only after Wazuh is stopped:
107
+
108
+ ```bash
109
+ docker volume rm cyber-range-wazuh-logs cyber-range-waf-logs
110
+ ```
111
+
112
+ For Wazuh's remaining volumes, use its official Compose file from `.vendor/wazuh-docker/single-node` with `down -v`. Do not delete `.vendor` while containers still reference it.
113
+
114
+ For VMs, revert to a clean snapshot or use the official GOAD destroy workflow. Never delete VM files while the hypervisor is running them.
docs/SECURITY_ONION.md ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Security Onion VM Track
2
+
3
+ Security Onion remains a full VM because its supported architecture includes Suricata, Zeek, Elastic components, and dedicated network interfaces. It is intentionally not represented as a single Docker container.
4
+
5
+ ## Choose the mode
6
+
7
+ | Mode | Purpose | Minimum guidance | Lab allocation |
8
+ |---|---|---|---|
9
+ | Import | Analyze PCAP/EVTX files without live sniffing | Official 2.4 table: 2 CPU, 4 GiB RAM, 50 GB disk, 1 NIC | 2 CPU, 4–6 GiB RAM, 100 GB dynamic disk |
10
+ | Evaluation | Temporary live network visibility | 4 CPU, 8 GiB RAM, 200 GB disk, 2 NICs | 4 CPU, 10–12 GiB RAM, 200 GB dynamic disk |
11
+ | Standalone | Small production/single sensor | 4 CPU, 24 GiB RAM, 200 GB disk, 2 NICs | Not recommended on this 32 GiB workstation |
12
+
13
+ The 50 GB Import figure is the absolute official 2.4 minimum; other installation guidance may request more. The 100 GB allocation avoids starting at the bare floor. Always recheck the requirements for the exact ISO/release downloaded.
14
+
15
+ Official references: [hardware](https://docs.securityonion.net/en/2.4/hardware.html), [use cases](https://docs.securityonion.net/en/2.4/use-cases.html), [download](https://docs.securityonion.net/en/2.4/download.html), [installation](https://docs.securityonion.net/en/2.4/installation.html).
16
+
17
+ ## Isolated installation sequence
18
+
19
+ 1. Run `python lab.py down` and shut down GOAD.
20
+ 2. Download the official x86-64 ISO and verify its published signature/checksum using the official download instructions.
21
+ 3. Create a new VM; do not install third-party packages into the Security Onion guest.
22
+ 4. Attach a management NIC to a host-only/isolated lab network. For Evaluation, add a second sniffing NIC with no management IP, connected only to a lab TAP/SPAN or isolated virtual switch.
23
+ 5. Boot the ISO, set the final hostname before setup, and complete installation.
24
+ 6. Choose **Import** for the first session. Choose **Evaluation** only when the second NIC and resource budget are ready.
25
+ 7. Take a clean snapshot before importing unknown samples or connecting vulnerable VMs.
26
+
27
+ Do not bridge a deliberately vulnerable range to a home or corporate LAN. Do not change the hostname after setup; official documentation warns that generated certificates depend on it.
28
+
29
+ ## Exercises
30
+
31
+ ### Import mode
32
+
33
+ - Import a PCAP you created inside Juice Shop/Nmap exercises or an EVTX file from a disposable endpoint.
34
+ - Practice filtering, pivots, alert review, and timeline analysis.
35
+ - Compare Security Onion's network evidence with Wazuh endpoint alerts.
36
+
37
+ ### Evaluation mode
38
+
39
+ - Generate traffic only between lab VMs.
40
+ - Review Zeek logs and Suricata alerts.
41
+ - Tune the lab for a small amount of traffic; do not assume minimum RAM supports real network monitoring.
42
+
43
+ ## Shutdown and snapshots
44
+
45
+ Shut down cleanly before starting `all-containers` or GOAD. Keep a clean post-install snapshot and a separate snapshot before each attack scenario. Local SSD storage is recommended; official documentation does not support remote SAN/NFS storage for the platform.
docs/TROUBLESHOOTING.md ADDED
@@ -0,0 +1,80 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Troubleshooting
2
+
3
+ ## Docker is unavailable
4
+
5
+ `python lab.py preflight` reports `Docker CLI: NOT FOUND` or an inaccessible engine.
6
+
7
+ - Install/start Docker Desktop and enable WSL 2 integration on Windows.
8
+ - Confirm `docker version` and `docker compose version` work in the same terminal used for the lab.
9
+ - Until then, run only unit tests and `python lab.py validate`; do not interpret static validation as deployment.
10
+
11
+ ## Wazuh fails during setup
12
+
13
+ - Use only the controller's pinned `v4.14.10` files; do not clone `main` or mix release tags.
14
+ - On Linux/WSL, set the indexer prerequisite on the Docker host: `sudo sysctl -w vm.max_map_count=262144`. Persist it through the host's normal sysctl configuration.
15
+ - Inspect `.vendor/wazuh-docker/single-node` and run `docker compose ps` there.
16
+ - Certificate generation must complete before the stack starts.
17
+ - Initial downloads and indexer startup can take several minutes.
18
+ - Do not fix startup errors by deleting volumes; that destroys evidence and credentials.
19
+
20
+ ## Wazuh dashboard is not reachable
21
+
22
+ Use `https://127.0.0.1:5443`, not the upstream default port 443. Expect a self-signed-certificate warning. Run `python lab.py status` and inspect manager/indexer/dashboard logs.
23
+
24
+ ## WAF starts but Juice Shop is unreachable
25
+
26
+ - Confirm both services are in the same profile: `docker compose --profile core ps`.
27
+ - Confirm the backend remains `http://juice-shop:3000` and `range_net` is internal.
28
+ - An internal network intentionally prevents the target containers from reaching the internet; image pulls are performed by Docker, not by Juice Shop.
29
+ - Check `docker compose logs waf` and `docker compose logs juice-shop`.
30
+
31
+ ## WAF blocks a legitimate exercise
32
+
33
+ Start at paranoia level 1. Use `WAF_MODE=DetectionOnly` temporarily to compare behavior, inspect rule IDs in logs, and add a narrowly scoped exclusion only after understanding the false positive. Restore `WAF_MODE=On` after the exercise.
34
+
35
+ ## Nmap command is rejected
36
+
37
+ The controller intentionally accepts only explicit targets and a small option allowlist. Examples:
38
+
39
+ ```bash
40
+ python lab.py scan waf -- -sV --top-ports 100
41
+ python lab.py scan juice-shop -- -sT -p 3000
42
+ ```
43
+
44
+ Targets beginning with `-`, shell metacharacters, scripts, output paths, and arbitrary extra targets are rejected. Use a separate manually controlled container only if an advanced exercise needs other options.
45
+
46
+ ## MobSF cannot perform dynamic analysis
47
+
48
+ The provided image/path is for static analysis. Configure a separate supported Android emulator/VM and follow MobSF's dynamic-analysis documentation. Do not treat a successful APK upload as proof that dynamic instrumentation is available.
49
+
50
+ ## Ollama or copilot has no AI output
51
+
52
+ - The copilot works without a model using deterministic fallback.
53
+ - Run `python lab.py pull-model` after `python lab.py up ai`.
54
+ - Check `docker compose logs ollama` and `docker compose logs soc-copilot`.
55
+ - A small CPU model can be slow; the default request timeout is 90 seconds and can be changed in `.env`.
56
+ - New Wazuh alerts below `MIN_RULE_LEVEL=10` are intentionally ignored.
57
+ - Existing alerts are skipped on first run to avoid a large backlog; deliberately set `PROCESS_EXISTING_ALERTS=1` to import them.
58
+
59
+ ## Named volume is missing
60
+
61
+ Use the controller rather than raw Compose commands. `up ai`, `up blue`, and `wazuh-setup` create the shared Wazuh/WAF volumes. To create them manually:
62
+
63
+ ```bash
64
+ docker volume create cyber-range-wazuh-logs
65
+ docker volume create cyber-range-waf-logs
66
+ ```
67
+
68
+ ## Host memory pressure
69
+
70
+ Run `python lab.py down`, stop Security Onion/GOAD, and start only one profile. Use `core`, then `blue`, `mobile`, or `ai` separately. Full GOAD is not a good fit for a 32 GiB Windows host once the host OS and other applications are included.
71
+
72
+ ## Static validation dependencies
73
+
74
+ The controller and copilot use the Python standard library. YAML validation requires PyYAML:
75
+
76
+ ```bash
77
+ python -m pip install -r requirements-dev.txt
78
+ python -m unittest discover -s tests -v
79
+ python validate.py
80
+ ```