audit for the own-Kali deployment

- dc01-post: drop the vestigial Serveurs-Admins group. It only existed to be
  nested into the DC's administrators, which was removed; leaving it would
  suggest a privilege that no longer exists.
- prerequis: participants who bring their own Kali are told where to get
  norbourg.txt, and the address table no longer promises a provided VM.
- qemu check: assert the firewalld isolation zone and policy. They persist
  across reboots but nothing verified them, so a missing policy would go
  unnoticed until a VM reached the office LAN.
- up/reset: skip the directory wait when dc01 is not in the table.
- deck: no implication that a Kali VM is always provided.

Redeployed from scratch without Kali: build and provision completed in one
pass, doctor reports 0 warnings, and the documented path reproduces through
DCSync with no shortcut (C$ denied, decoy ACE absent).
This commit is contained in:
2026-10-25 15:35:43 -04:00
parent 59e2594c1e
commit 30d806c06c
6 changed files with 31 additions and 5 deletions
+3
View File
@@ -137,6 +137,9 @@ _start_lab() {
# WinRM answers before the directory does. A doctor run right after up saw # WinRM answers before the directory does. A doctor run right after up saw
# "stable path missing" and "replication rights missing" on a healthy lab # "stable path missing" and "replication rights missing" on a healthy lab
# because the DC was still starting AD. # because the DC was still starting AD.
if ! vm_index dc01 >/dev/null 2>&1; then
return 0
fi
step "wait for the domain" step "wait for the domain"
local deadline=$(( SECONDS + 240 )) local deadline=$(( SECONDS + 240 ))
while (( SECONDS < deadline )); do while (( SECONDS < deadline )); do
@@ -66,7 +66,6 @@ try {
$groups = @{ $groups = @{
'TI-Support' = @('s.bergeron', 'helpdesk1') 'TI-Support' = @('s.bergeron', 'helpdesk1')
'WS Admins' = @('svc_backup') 'WS Admins' = @('svc_backup')
'Serveurs-Admins' = @('m.legault')
'Sauvegarde-AD' = @('m.legault') 'Sauvegarde-AD' = @('m.legault')
} }
foreach ($name in $groups.Keys) { foreach ($name in $groups.Keys) {
+13 -1
View File
@@ -44,6 +44,18 @@ Aucun outil à installer : l'image Kali du laboratoire contient déjà `nxc` (ne
`evil-winrm`, `hashcat` et le collecteur `bloodhound-python`. L'interface BloodHound n'est pas `evil-winrm`, `hashcat` et le collecteur `bloodhound-python`. L'interface BloodHound n'est pas
installée et n'est pas nécessaire — le collecteur produit des fichiers JSON lisibles. installée et n'est pas nécessaire — le collecteur produit des fichiers JSON lisibles.
### La liste de mots
L'atelier casse les hashs avec une liste ciblée (`norbourg.txt`, 1716 entrées) qui n'est pas
dans l'image Kali. Récupérez-la auprès de l'instructeur, puis :
```bash
sudo mkdir -p /opt/norbourg/wordlists
sudo cp norbourg.txt /opt/norbourg/wordlists/
```
Les chemins des exercices supposent `/opt/norbourg/wordlists/norbourg.txt`.
### Si vous utilisez la VM Kali du laboratoire ### Si vous utilisez la VM Kali du laboratoire
Elle est déjà branchée sur le pont : elle reçoit son adresse par DHCP et son DNS du contrôleur Elle est déjà branchée sur le pont : elle reçoit son adresse par DHCP et son DNS du contrôleur
@@ -149,7 +161,7 @@ sudo nmcli con up "<votre-connexion>"
| `dc01` | `10.10.10.10` | `10.10.10.10` | | `dc01` | `10.10.10.10` | `10.10.10.10` |
| `fs01` | `10.10.10.20` | `10.10.10.20` | | `fs01` | `10.10.10.20` | `10.10.10.20` |
| `ws01` | `10.10.10.31` | `10.10.10.31` | | `ws01` | `10.10.10.31` | `10.10.10.31` |
| Kali fournie | `10.10.10.101` | `10.10.10.41` et suivantes, une par personne | | Kali du participant | DHCP `10.10.10.100`–`200` | `10.10.10.41` et suivantes si une VM est fournie |
| Plage DHCP | `10.10.10.100` – `10.10.10.200` | `10.10.10.100` – `10.10.10.200` | | Plage DHCP | `10.10.10.100` – `10.10.10.200` | `10.10.10.100` – `10.10.10.200` |
La plage DHCP est distribuée par DC01 aux machines du pont. Le DC, FS01, WS01 et les Kali La plage DHCP est distribuée par DC01 aux machines du pont. Le DC, FS01, WS01 et les Kali
+3 -3
View File
@@ -316,7 +316,7 @@ def build():
card(s, 5.35, 4.75, 7.2, 0.95, "WS01 · 10.10.10.31", "poste de travail", NAVY) card(s, 5.35, 4.75, 7.2, 0.95, "WS01 · 10.10.10.31", "poste de travail", NAVY)
textbox(s, 0.9, 2.2, 3.2, 0.35, "Participant", size=12, color=GRAY, bold=True) textbox(s, 0.9, 2.2, 3.2, 0.35, "Participant", size=12, color=GRAY, bold=True)
card(s, 0.9, 2.6, 3.3, 1.1, "Kali · 10.10.10.101", "votre machine d'attaque", TEAL) card(s, 0.9, 2.6, 3.3, 1.1, "Kali · 10.10.10.x", "votre machine d'attaque", TEAL)
arrow(s, 4.35, 3.05, 0.55) arrow(s, 4.35, 3.05, 0.55)
@@ -329,8 +329,8 @@ def build():
# ---------------------------------------------------------------- 07 # ---------------------------------------------------------------- 07
s = content_slide(prs, "Votre poste de travail", "Kali, prêt à l'emploi") s = content_slide(prs, "Votre poste de travail", "Kali, prêt à l'emploi")
bullets(s, [ bullets(s, [
"Console web Proxmox (une VM par personne) ou VM locale, selon la plateforme.", "Votre Kali, branchée au réseau du laboratoire (ou une VM fournie sur Proxmox).",
"Identifiants dans la VM : kali / kali.", "VM fournie : kali / kali ; sinon, vos propres identifiants.",
"Déjà installés : nxc, Impacket, evil-winrm, hashcat, bloodhound-python.", "Déjà installés : nxc, Impacket, evil-winrm, hashcat, bloodhound-python.",
"DNS : 10.10.10.10, le contrôleur de domaine.", "DNS : 10.10.10.10, le contrôleur de domaine.",
"Liste de mots : /opt/norbourg/wordlists/norbourg.txt.", "Liste de mots : /opt/norbourg/wordlists/norbourg.txt.",
Binary file not shown.
+12
View File
@@ -37,6 +37,18 @@ backend_check() {
else else
_c_warn "qemu-bridge-helper not found: unprivileged bridge attach will fail" _c_warn "qemu-bridge-helper not found: unprivileged bridge attach will fail"
fi fi
# Isolation lives in firewalld's permanent configuration, so it survives a
# reboot. Check it here: without the policy the lab can reach the office LAN.
if have_cmd firewall-cmd && firewall-cmd --zone=norbourg-lab --list-all >/dev/null 2>&1; then
if firewall-cmd --policy=lab-in --list-all >/dev/null 2>&1; then
_c_ok "firewalld isolation: zone norbourg-lab + policy lab-in"
else
_c_warn "isolation policy lab-in missing: run sudo ./setup-network.sh"
fi
else
_c_warn "isolation zone norbourg-lab missing: run sudo ./setup-network.sh"
fi
} }
# ------------------------------------------------------------------ layout # ------------------------------------------------------------------ layout