Advanced › Module 3 › Lesson 4
Lab — Classes
Pack padding oracle, MITM/freq, and weak RNG literacy cards — attack-classes file from $CRYPTO_LAB only.
Visual · t28_classes_lab
Lab: attack classes pack. $CRYPTO_LAB only. Original Cyberlium.
Opening
Attack classes pack merges named threats with defender fixes — paperwork before classic CTF module.
Lessons 3-1–3-3 named padding oracle, MITM/frequency analysis, and weak RNG classes. This lab merges three literacy cards with explicit NO production exploit language and M1 ethics cross-reference. No oracle scripts or live MITM — defender paperwork only. Next: Quiz — Attack Classes Named.
1. Lab contract: attack classes pack
Create $HOME/cyberlium-lab/t28-m03-l04-classes-lab.txt merging oracle, MITM/freq, and weak RNG literacy cards with refusal sentences and M1/M2 cross-references.
Optional: one-line note 'classic freq CTF uses MY plaintext only' — no production hostnames.
Command guide
Try these commands — Lab contract: attack classes pack
═══ TOOLS & WEBSITES ═══ Browse / read these (authorized learning only — stay in YOUR lab / program scope)
CWE crypto index — https://cwe.mitre.org/data/definitions/699.html (weakness class literacy) NIST SP 800-57 — https://csrc.nist.gov/publications/detail/sp/800-57-part-1/rev-5/final
Optional command
OpenSSL security — https://www.openssl.org/news/vulnerabilities.html (advisory literacy)
═══ 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 CRYPTO_LAB=${CRYPTO_LAB:-$HOME/cyberlium-lab/t28-crypto}
python3 - <<'PY'
attacks = ['Padding oracle (CBC)', 'JWT alg=none misconfig', 'Weak RSA (TOY only)', 'MD5/SHA1 legacy', 'ECB pattern leakage']
print('Attack literacy checklist (document — do NOT weaponize):')
for a in attacks: print(f' [ ] {a}')
print('HARD BAN: live site loops, production RSA factoring, stranger JWT abuse')
PYCommand — copy this
grep NEVER "$CRYPTO_LAB/notes/named-attacks-literacy.txt" "$CRYPTO_LAB/notes/no-live-attacks.txt"
═══ WINDOWS ═══
Command — copy this
Get-Content $HOME/cyberlium-lab/t28-crypto/notes/named-attacks-literacy.txt | Select-String NEVER Write-Output 'Document attack concepts — never run against live stranger targets'
Primary tools to practice this lesson: grep, python3. Reference sites: CWE crypto index (https://cwe.mitre.org/data/definitions/699.html); NIST SP 800-57 (https://csrc.nist.gov/publications/detail/sp/800-57-part-1/rev-5/final); OpenSSL security (https://www.openssl.org/news/vulnerabilities.html). Run every command in the box — install first, then the usage lines — only on YOUR lab / program scope.
2. Cross-check ethics
Grep for oracle script, sslstrip steps, token predictor, production API names — remove exploit steps if pasted from forums. Pack must contain refusal language.
Confirm zero production finance domains in notes.
3. Lock the proof
chmod 600 on the pack. Quiz next — then Caesar/Vigenere.
Attack-class literacy feeds classic cipher CTF in M4.
4. What you ship: attack classes pack for $CRYPTO_LAB
Merged oracle, MITM/freq, weak RNG cards with refusal language. $CRYPTO_LAB named. NO exploit scripts. chmod 600.
5. What you record before the next lesson
Date. Classes pack path. $CRYPTO_LAB named. File t28-m03-l04-classes-lab.txt chmod 600.
6. Wrong vs right: prod crypto oracles vs CTF toys
Worked failure — same MSF word, opposite target. Right never needs a café Wi-Fi or classmate laptop.
Wrong
Include padding-oracle PoC script in pack. Add live MITM steps for wallet API.
Right
Write YOUR attack classes pack for $CRYPTO_LAB. chmod 600. Next: Quiz — Attack Classes Named.
Mission: freeze YOUR attack classes pack
1) Merge M3 literacy sections. 2) Confirm refusal sentences present. 3) Link M1 ethics cross-ref. 4) chmod 600.
Stuck? Ask Cyberlium AI Mentor
If your pack contains 'step 1 send ciphertext' for production — delete and rewrite defender fixes.
Knowledge Check
APPLY: This lab requires:
Multiple choice
Knowledge Check
APPLY: True or False: Attack classes pack must include refusal language for production exploits.
True or False
Knowledge Check
APPLY: Padding oracle section should:
Multiple choice