Cyberlium

Purple › Module 3 › Lesson 4

BeginnerModule 3Lesson 4/5

Lab — DE Basics

Pack detection-as-code, telemetry needs, and false positive cost cards — DE basics file from $PURPLE_LAB only.

25 min+40 XP3 quiz
Module progress4 of 5

Visual · t35_de_basics_lab

Lab: DE basics pack. $PURPLE_LAB only. Original Cyberlium.

Opening

DE basics pack merges DaC to telemetry to FP cost — paperwork before Sigma module.

Lessons 3-1–3-3 named detection-as-code, telemetry needs, and false positive cost. This lab merges three sections into one $PURPLE_LAB DE artifact with M1 ethics and M2 concepts cross-references. No stranger-network sims or unauthorized log collection — detection engineering paperwork only. Next: Quiz — Detection Engineering Basics.

1. Lab contract: DE basics pack

Create $HOME/cyberlium-lab/t35-m03-l04-de-basics-lab.txt merging detection-as-code, telemetry needs, and false positive cost sections with $PURPLE_LAB fictional T1059 rule and M1/M2 cross-references.

Optional: link telemetry row to lab host from M1 inventory.

Command guide

Try these commands — Lab contract: DE basics pack

═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)

Sigma — https://sigmahq.io/ Elastic detection — https://www.elastic.co/guide/en/security/current/rules-ui.html MITRE ATT&CK — https://attack.mitre.org/

═══ 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 PURPLE_LAB=${PURPLE_LAB:-$HOME/cyberlium-lab/t35-purple}
cat > "$PURPLE_LAB/notes/de-basics-lab-summary.md" <<'EOF'
# Detection Engineering Basics Lab — YOUR lab
- detection-as-code.txt: version control + review + test
- telemetry-needs.md: log sources per ATT&CK technique
- false-positive-cost.txt: tuning literacy
## Next
- Write failed-logon Sigma stub in rules/ (Module 4)
- Seed auth.jsonl and jq-validate (Module 5)
## Refusals
- No credential dump atomics; no stranger-network sims
EOF

Command — copy this

grep -E 'failed-logon|Refusals|auth.jsonl' "$PURPLE_LAB/notes/de-basics-lab-summary.md"
ls "$PURPLE_LAB/notes/"

═══ WINDOWS ═══

Command — copy this

Get-Content $HOME/cyberlium-lab/t35-purple/notes/telemetry-needs.md | Select-String T1110

Primary tools to practice this lesson: grep, python3. Reference sites: Sigma (https://sigmahq.io/); Elastic detection (https://www.elastic.co/guide/en/security/current/rules-ui.html); MITRE ATT&CK (https://attack.mitre.org/). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.

2. Cross-check ethics

Grep for live victim logs, stranger-network refs, production secrets — remove. Confirm all examples use $PURPLE_LAB fictional data.

Rule examples use placeholder paths — no real credentials.

3. Lock the proof

chmod 600 on the pack. Quiz next — then Sigma Named.

DE basics literacy feeds Sigma and SIEM lessons in M4.

4. What you ship: DE basics pack for $PURPLE_LAB

Merged DaC, telemetry, FP sections. $PURPLE_LAB named. NO stranger sims. chmod 600.

5. What you record before the next lesson

Date. DE basics pack path. $PURPLE_LAB named. File t35-m03-l04-de-basics-lab.txt chmod 600.

6. Wrong vs right: stranger networks vs YOUR purple lab

Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.

  • Wrong

    Include live victim log samples. Skip telemetry needs section.

  • Right

    Write YOUR DE basics pack for $PURPLE_LAB. chmod 600. Next: Quiz — Detection Engineering Basics.

Mission: freeze YOUR DE basics pack on disk

1) Merge M3 literacy sections. 2) Confirm zero live victim or stranger-network refs. 3) Link M1/M2 cross-refs. 4) chmod 600.

Stuck? Ask Cyberlium AI Mentor

One governed DE pack beats ten untested SIEM console clicks.

Knowledge Check

1

APPLY: This lab requires:

Multiple choice

Knowledge Check

2

APPLY: True or False: DE basics pack must use fictional lab host placeholders.

True or False

Knowledge Check

3

APPLY: DE basics pack supports:

Multiple choice

← Previous

Answer all 3 knowledge checks to continue. (0/3 answered)