Security › Module 2 › Lesson 4
Lab — DiD
Pack layers named, perimeter vs zero trust, and compensating controls — defense-in-depth file from $ARCH_LAB only.
Visual · t41_defense_lab
Lab: defense-in-depth pack. $ARCH_LAB only. Original Cyberlium.
Opening
Defense pack merges layers to model comparison to compensating controls — paperwork before security-by-design module.
Lessons 2-1–2-3 named layers, perimeter vs zero trust, and compensating controls. This lab merges three sections into one $ARCH_LAB defense artifact with M1 ethics cross-reference. No real employer diagram imports or attack cookbooks — defense-in-depth paperwork only. Next: Quiz — Defense in Depth.
1. Lab contract: defense-in-depth pack
Create $HOME/cyberlium-lab/t41-m02-l04-defense-lab.txt merging layers, perimeter vs zero trust, and compensating sections with $ARCH_LAB fictional org LAB-ARCH-001 and M1 ethics cross-reference.
Optional: link layer map to org inventory from M1.
Command guide
Try these commands — Lab contract: defense-in-depth pack
═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)
OWASP ASVS — https://owasp.org/www-project-application-security-verification-standard/ Microsoft SDL — https://www.microsoft.com/en-us/securityengineering/sdl/ NIST 800-160 — https://csrc.nist.gov/publications/detail/sp/800-160/vol-1/rev-1/final
═══ INSTALL ═══
Linux (Debian/Ubuntu):
Command — copy this
sudo apt install python3
macOS:
Command — copy this
brew install python3
Windows: Download https://python.org/downloads/
═══ LINUX / macOS ═══
Command — copy this
export ARCH_LAB=${ARCH_LAB:-$HOME/cyberlium-lab/t41-arch}
cat > "$ARCH_LAB/notes/arch-fundamentals-lab-summary.md" <<'EOF'
# Architecture Fundamentals Lab Summary — YOUR lab
- security-architecture-named.txt: purpose + artifacts literacy
- cia-did-named.txt: CIA triad + defense-in-depth layers
- trust-boundaries-named.txt: boundary examples for LAB-ARCH-001
## Integrity
- Fictional org only — no real production architecture data
- Next: security design principles + STRIDE worksheets (Modules 3–4)
EOFCommand — copy this
grep -E 'Integrity|Module 3|LAB-ARCH-001' "$ARCH_LAB/notes/arch-fundamentals-lab-summary.md"
grep NEVER "$ARCH_LAB/notes/defensive-only.txt" "$ARCH_LAB/roe.txt"
python3 -c "print('Architecture fundamentals lab: CIA + trust boundaries complete')"═══ WINDOWS ═══
Command — copy this
Get-Content $HOME/cyberlium-lab/t41-arch/notes/trust-boundaries-named.txt | Select-String API
Primary tools to practice this lesson: grep, python3. Reference sites: OWASP ASVS (https://owasp.org/www-project-application-security-verification-standard/); Microsoft SDL (https://www.microsoft.com/en-us/securityengineering/sdl/); NIST 800-160 (https://csrc.nist.gov/publications/detail/sp/800-160/vol-1/rev-1/final). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.
2. Cross-check refusal boundaries
Grep pack for attack cookbook language, employer VLAN exports, live target references — redact or delete. Pack stays documentary defensive literacy on fictional org.
Update pack if you rename fictional systems — note new labels.
3. Lock the proof
chmod 600 on the pack. Quiz next — then Shift Left Named.
Defense-in-depth literacy feeds security-by-design lessons in M3.
4. What you ship: defense-in-depth pack for $ARCH_LAB
Merged layers, model comparison, compensating sections. $ARCH_LAB named. NO attack cookbooks. chmod 600.
5. What you record before the next lesson
Date. Defense pack path. $ARCH_LAB named. File t41-m02-l04-defense-lab.txt chmod 600.
6. Wrong vs right: offensive playbooks vs YOUR threat models
Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.
Wrong
Include employer network diagram in pack. Skip compensating controls section.
Right
Write YOUR defense-in-depth pack for $ARCH_LAB. chmod 600. Next: Quiz — Defense in Depth.
Mission: freeze YOUR defense-in-depth pack
1) Merge M2 literacy sections. 2) Confirm zero attack cookbook or employer diagram refs. 3) Link M1 ethics cross-ref. 4) chmod 600.
Stuck? Ask Cyberlium AI Mentor
One governed defense pack beats ten inconsistent layer screenshots.
Knowledge Check
APPLY: This lab requires:
Multiple choice
Knowledge Check
APPLY: True or False: Defense pack should reference $ARCH_LAB fictional org LAB-ARCH-001 systems.
True or False
Knowledge Check
APPLY: Defense pack should include:
Multiple choice