SOC › Module 9 › Lesson 4
Lab — PIR
PIR lab on $HUNT_LAB — PIR outline, detection gaps, L3 handoff bundled as post-incident pack.
Visual · t30_pir_lab
Lab: PIR and handoff pack from YOUR $HUNT_LAB closed incident. Original Cyberlium.
Opening
Ship post-incident artifacts from YOUR closed lab incident — PIR, gaps, L3 handoff — zero unauthorized prod publication or attack repro.
From $HUNT_LAB labs Modules 6–8: (1) report cover — scope, RoE reference, analyst, UTC; (2) PIR outline from Module 9-1 on closed incident; (3) detection gap table three rows; (4) L3 handoff block ten fields; (5) PICERL Lessons Learned summary; (6) limitations paragraph (practice vs prod, brief gaps); (7) integrity — $HUNT_LAB only, no prod PIR publish, no attack-for-gap, no unauthorized L3 page; (8) chmod 600 index.md. Professional tone — L3-readable. Cross-link IR, containment, eradication packs.
1. Lab deliverables
PIR + gaps + L3 handoff + PICERL Lessons summary — single closed incident thread.
Limitations paragraph mandatory — honest gaps.
Command guide
Try these commands — Lab deliverables
═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)
PIR best practices — https://csrc.nist.gov/publications/detail/sp/800-61/rev-2/final SANS — https://www.sans.org/ Elastic cases — https://www.elastic.co/guide/en/security/current/cases-ui.html
═══ 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 HUNT_LAB=${HUNT_LAB:-$HOME/cyberlium-lab/t30-hunt}
python3 - <<'PY'
import os
lab = os.environ.get('HUNT_LAB', os.path.expanduser('~/cyberlium-lab/t30-hunt'))
path = os.path.join(lab, 'pir', 'pir-complete-LAB-IR-001.md')
open(path, 'w').write('
'.join([
'# PIR Complete — LAB-IR-001 (YOUR lab)',
'## Status: draft for review',
'## Sections filled',
' - pir-template-LAB-IR-001.md (summary, timeline, actions)',
' - detection-gaps-LAB-IR-001.md (3 gaps documented)',
' - l3-handoff-LAB-IR-001.md (tuning requests)',
'## Lessons learned headline',
' Cross-source correlation (auth+process+netflow) essential for L2',
'## Next tabletop: containment decision tree walkthrough',
'## Integrity: authorized lab only, no offensive playbooks used',
]))
print(f'Wrote {path}')
PYCommand — copy this
grep -E 'PIR|detection-gaps|Integrity' "$HUNT_LAB/pir/pir-complete-LAB-IR-001.md" ls -la "$HUNT_LAB/pir/"
═══ WINDOWS ═══
Command — copy this
Get-Content $HOME/cyberlium-lab/t30-hunt/pir/pir-template-LAB-IR-001.md | Select-String Action Get-Content $HOME/cyberlium-lab/t30-hunt/pir/l3-handoff-LAB-IR-001.md | Select-String Refusals
Primary tools to practice this lesson: grep, python3. Reference sites: PIR best practices (https://csrc.nist.gov/publications/detail/sp/800-61/rev-2/final); SANS (https://www.sans.org/); Elastic cases (https://www.elastic.co/guide/en/security/current/cases-ui.html). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.
2. Quality bar
Action items have owners; gap fixes measurable at category level.
Zero attack cookbooks in handoff next steps.
3. Integrity scan
Scan for prod PIR paste, unauthorized L3 escalation, attack repro — zero hits.
Practice label if brief requires.
4. What you ship: PIR lab pack
PIR + gaps + L3 handoff + index + integrity — chmod 600.
5. What you record before the next lesson
PIR lab pack path.
6. Wrong vs right: stranger prod vs YOUR hunt telemetry
Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.
Wrong
PIR lab includes unauthorized prod case export and attack gap demo.
Right
PIR lab pack on $HUNT_LAB. Next: quiz.
Mission: PIR lab
1) PIR outline on closed incident. 2) Detection gap table. 3) L3 handoff ten fields. 4) Integrity scan; chmod 600.
Stuck? Ask Cyberlium AI Mentor
Ask Mentor: “Minimum action items if brief sparse?”
Knowledge Check
APPLY: PIR lab includes:
Multiple choice
Knowledge Check
APPLY: True or False: Hide limitations in PIR lab.
True or False
Knowledge Check
APPLY: L3 handoff next steps should:
Multiple choice