785 MB
7,528 files
Updated 19 days ago
Name
Size
.git
.github
.trunk
Books
HomeWorks
NetSec
docs
frontend
proj
scripts
slides
.DS_Store18.4 kB
xet
.gitignore361 Bytes
xet
LICENSE1.11 kB
xet
README.md12.1 kB
xet
grading.log7.08 kB
xet
README.md

πŸ›‘οΈ Network Security & Cryptography Master Academic Repository

GitHub Pages Deployment License: MIT HTML Textbook Link Integrity

Welcome to the Network Security & Cryptography Master Academic Repository. This repository contains a complete, university-level Network Security curriculum, interactive textbook companion, lecture slide breakdown suite, computer assignment lab analysis, and research project implementation.


🌐 Live Online Textbook Portal

Access the interactive multi-page course website locally or via GitHub Pages:


πŸ“Š Academic Scope & Audit Metrics

Metric Category Quantitative Value Description
PDF Documents Processed 62 Documents All course slides, assignments, lab specifications, past exams, and research papers.
Total Pages Analyzed 2,444 Pages Full page-by-page extraction and cross-referencing into textbook chapters.
Slide Decks Covered 23 Decks (689 Slides) Slide-by-slide interpretation, algorithms, protocol flows, and exam notes.
HTML Textbook Modules 48 HTML Files 16 Chapters, 23 Slide Companions, 4 Lab/Exam files, Glossary, Takeaways, FAQ.
Relative Links Audited 1,466 Links 100% link integrity verified via scripts/check_links.py (0 broken links).
Reference Textbooks 2 Core Books William Stallings (Principles and Practice, 7th Ed) & Nigel Smart (Cryptography Made Simple, 3rd Ed).

πŸ“ Repository Directory Structure

.
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ index.html                       # Root GitHub Pages Redirect Portal
β”‚   β”œβ”€β”€ .nojekyll                        # Disables Jekyll processing for raw HTML
β”‚   └── textbook/                        # Complete University Textbook Website
β”‚       β”œβ”€β”€ index.html                   # Master Landing Portal & Knowledge Map
β”‚       β”œβ”€β”€ css/
β”‚       β”‚   └── style.css                # Custom Responsive Dark-Theme Stylesheet
β”‚       β”œβ”€β”€ chapters/                    # 16 Full Textbook Chapters (3,000+ words each)
β”‚       β”‚   β”œβ”€β”€ 01-introduction.html
β”‚       β”‚   β”œβ”€β”€ 02-classical-cryptography.html
β”‚       β”‚   β”œβ”€β”€ 03-symmetric-cryptography.html
β”‚       β”‚   β”œβ”€β”€ 04-block-ciphers.html
β”‚       β”‚   β”œβ”€β”€ 05-public-key-cryptography.html
β”‚       β”‚   β”œβ”€β”€ 06-authentication.html
β”‚       β”‚   β”œβ”€β”€ 07-digital-signatures.html
β”‚       β”‚   β”œβ”€β”€ 08-key-management.html
β”‚       β”‚   β”œβ”€β”€ 09-network-security-applications.html
β”‚       β”‚   β”œβ”€β”€ 10-transport-security.html
β”‚       β”‚   β”œβ”€β”€ 11-wireless-security.html
β”‚       β”‚   β”œβ”€β”€ 12-email-security.html
β”‚       β”‚   β”œβ”€β”€ 13-ip-security.html
β”‚       β”‚   β”œβ”€β”€ 14-intrusion-detection.html
β”‚       β”‚   β”œβ”€β”€ 15-firewalls.html
β”‚       β”‚   └── 16-usable-security.html
β”‚       β”œβ”€β”€ slides/                      # 23 Lecture Slide Companions (deck-01.html to deck-23.html)
β”‚       β”œβ”€β”€ labs-exams/                  # Lab Analysis, Homeworks, Exams & Project
β”‚       β”‚   β”œβ”€β”€ hw-solutions.html        # Homework 1 through Homework 5 Solutions
β”‚       β”‚   β”œβ”€β”€ ca-lab-analysis.html     # Computer Assignments 1 through 4 (Wireshark PCAPs)
β”‚       β”‚   β”œβ”€β”€ loopy-hello-research.html# USENIX Security '24 Loopy Hello Research Project
β”‚       β”‚   └── exam-solutions.html      # Past Examination Problems & Step-by-Step Solved Math
β”‚       β”œβ”€β”€ glossary.html                # Cryptographic A–Z Master Glossary
β”‚       β”œβ”€β”€ takeaways.html               # 50 Core Key Security Takeaways
β”‚       └── faq.html                     # Frequently Asked Questions & Exam Guide
β”œβ”€β”€ HomeWorks/                           # Original Homework Assignments & Python Code (HW1–HW5)
β”œβ”€β”€ NetSec/                              # Computer Assignments & Wireshark PCAP Traces (CA1–CA4)
β”œβ”€β”€ proj/                                # USENIX Security '24 Research Project (Codes & Slides)
β”œβ”€β”€ slides/                              # Original PDF Lecture Slide Decks
β”œβ”€β”€ Books/                               # Textbook References & Academic Citation Mapping
β”œβ”€β”€ scripts/                             # Repository Audit Tools (check_links.py)
└── .github/
    β”œβ”€β”€ workflows/
    β”‚   └── pages.yml                    # Automated GitHub Pages Deployment Workflow
    β”œβ”€β”€ ISSUE_TEMPLATE/
    β”‚   └── bug_report.md
    └── pull_request_template.md

πŸ—ΊοΈ Master Knowledge Map

[ REFERENCE BOOKS ]  ──► Stallings 7th Ed (Architecture & Standards) + Smart 3rd Ed (Math Proofs)
          β”‚
          β–Ό
[ CONCEPTS & THEORY ] ──► 16 Master Chapters (Galois Fields, RSA, TLS 1.3, IPsec, Firewalls)
          β”‚
          β–Ό
[ LECTURE SLIDES ]   ──► 23 Slide Companions (deck-01.html – deck-23.html, 689 slides analyzed)
          β”‚
          β–Ό
[ LABS & PROJECT ]   ──► HW1–HW5, CA1–CA4 (Wireshark PCAPs), USENIX '24 Loopy Hello Project

πŸ“– Comprehensive Curriculum Breakdown

1. Master Textbook Chapters (docs/textbook/chapters/)

  1. Chapter 01: Introduction to Network Security & Security Architecture
    CIA Triad (Confidentiality, Integrity, Availability), Authenticity, Non-Repudiation, ITU-T X.800 Architecture, Active vs. Passive Threats, Defense-in-Depth.
  2. Chapter 02: Classical Cryptography & Cryptanalysis
    Substitution (Caesar, Vigenère, Hill matrix cipher), Transposition, Frequency Analysis, Index of Coincidence, One-Time Pad (OTP) Unconditional Secrecy Proof.
  3. Chapter 03: Symmetric Cryptography & Block Cipher Modes
    Stream vs Block Ciphers, ECB (Pattern Leakage), CBC (IV Security & Padding Oracles), CFB, OFB, CTR, XTS-AES, AEAD Authenticated Encryption (AES-GCM).
  4. Chapter 04: Block Ciphers, DES & Feistel Architecture
    Claude Shannon's Confusion (S-Boxes) & Diffusion (P-Boxes), Feistel Cipher Network Invertibility, DES Round Function F, 56-bit Brute Force, Triple DES (3DES) EDE.
  5. Chapter 05: Public-Key Cryptography & Number Theory
    Asymmetric Trapdoor Functions, Primes, GCD, Extended Euclidean Algorithm, Euler's Totient $\phi(n)$, Fermat's & Euler's Theorems, Discrete Logarithm Problem (DLP), Diffie-Hellman Key Exchange.
  6. Chapter 06: User Authentication & Kerberos Architecture
    Multi-Factor Authentication (MFA), Password Storage (Argon2id, bcrypt, PBKDF2), Challenge-Response HMAC, Kerberos v4/v5 Protocol (AS, TGS, Service Tickets, Timestamps).
  7. Chapter 07: Digital Signatures, RSA & ECDSA
    RSA Cryptosystem (Factorization, Modulus $n=pq$, Private exponent $d$), RSA-PSS Padding, Elliptic Curve Cryptography (ECC Weierstrass Curves), ECDSA Nonce Security.
  8. Chapter 08: Key Management, Distribution & PKI Infrastructure
    Key Distribution Centers (KDC), Needham-Schroeder Protocol, X.509 Digital Certificates, Root CA Trust Hierarchies, Certificate Revocation Lists (CRL), OCSP & OCSP Stapling.
  9. Chapter 09: Network Security Applications & Protocols
    OSI Layer Security Trade-offs, SSH Protocol Suite (SSH-TRANS, SSH-USERAUTH, SSH-CONNECT), HTTPS, DNSSEC Cryptographic RRSIG Records.
  10. Chapter 10: Transport Layer Security (TLS 1.2 / TLS 1.3)
    TLS Record Protocol, Handshake Protocol (2-RTT TLS 1.2 vs 1-RTT TLS 1.3), Mandatory ECDHE Forward Secrecy, AEAD Ciphers, Vulnerability Mitigations (BEAST, POODLE, Heartbleed).
  11. Chapter 11: Wireless Network Security (IEEE 802.11i)
    802.11i Architecture, WEP 24-bit IV Collisions & CRC32 Linear Flaws, WPA2-CCMP (AES), WPA3 Simultaneous Authentication of Equals (Dragonfly SAE Handshake).
  12. Chapter 12: Electronic Mail Security Protocols
    Pretty Good Privacy (PGP Web of Trust), S/MIME X.509 PKI, DomainKeys Identified Mail (DKIM DNS Signatures), Sender Policy Framework (SPF), DMARC Domain Spoof Enforcement.
  13. Chapter 13: IP Security (IPsec: AH, ESP, IKEv2)
    Layer 3 IPsec Protocol Suite, Authentication Header (AH), Encapsulating Security Payload (ESP), Transport Mode vs Tunnel Mode, Security Associations (SA, SPI, SAD, SPD), IKEv2 Key Exchange.
  14. Chapter 14: Intrusion Detection Systems (IDS/IPS) & SIEM
    Host-Based (HIDS) vs Network-Based (NIDS), Signature Detection (Snort Rules) vs Anomaly Detection (Statistical Baselines), Confusion Matrix ($TP, FP, TN, FN$), ROC Curves, SIEM.
  15. Chapter 15: Firewalls, Perimeter Defense & DMZ Architecture
    Stateless Packet Filtering, Stateful Inspection Connection Tables, Application Proxies, Next-Generation Firewalls (NGFW), Dual-Homed DMZ Subnet Architecture.
  16. Chapter 16: Usable Privacy & Security and Human Factors
    Human-in-the-Loop Model, Password Usability Cognitive Limits, FIDO2/WebAuthn Hardware Security Keys, Active vs Passive Warnings, Habituation & Phishing Mitigations.

2. Lab Assignments & Practical Code

  • Homework 1 (HW1): Classical Cipher Decryption Solvers (HomeWorks/HW1/Solution_code/Solution.py) & DES S-Box Tables (s-box-tables.txt).
  • Homework 2 (HW2): AES $\text{GF}(2^8)$ Galois Field Operations (HomeWorks/HW2/codes/Q1.py, Q2.py, aes_encryption.py) & ECB Image Pattern Leakage.
  • Homework 3 (HW3): RSA Mathematics Report (HomeWorks/HW3/answers/main.pdf, 40 pages) & Extended Euclidean Inverses.
  • Homework 4 (HW4): IPsec Configuration (ipsec.conf) & Wireshark Handshake Captures (ssl3.0.cap, tls1.2.cap, tls1.3.cap).
  • Homework 5 (HW5): OpenSSL S/MIME PKI Certificate Generation (certificate_s_mime_mv.cer) & Email Signature Verification.
  • Computer Assignments (CA1–CA4): Wireshark Packet Filtering, TCP 3-Way Handshake, SYN Flood Cookie Defenses, SSL 3.0 vs TLS 1.2 vs TLS 1.3 PCAP Analysis (Q4_TLS13_H_no_clientkeyexchange.txt).
  • *Course Project (Loopy Hell(ow)):* USENIX Security '24 Application-Layer Infinite Traffic Loop Simulator (proj/Codes/server.py, Scapy traffic generators, UDP amplification loop benchmarks).

πŸ’» Diagnostic Commands & Verification

Run Automated Link Checker

Audit all internal HTML links across the repository:

python3 scripts/check_links.py

Test Local Web Server

Serve the documentation locally using Python's built-in HTTP server:

python3 -m http.server 8000 --directory docs/textbook

Then navigate to http://localhost:8000 in your web browser.


πŸ“š Academic References & Citations

  1. William Stallings, Cryptography and Network Security: Principles and Practice (7th Edition, Global Edition), Pearson.
  2. Nigel Smart, Cryptography: An Introduction (3rd Edition / Cryptography Made Simple), Springer.
  3. Yepeng Pan, Anna Ascheman, Christian Rossow, "Loopy Hell(ow): Infinite Traffic Loops at the Application Layer", USENIX Security Symposium 2024.
  4. IETF RFC Specifications: RFC 5246 (TLS 1.2), RFC 8446 (TLS 1.3), RFC 4301 (IPsec Architecture), RFC 5280 (X.509 PKI).

πŸ“œ License

This repository is distributed under the MIT License.

Total size
785 MB
Files
7,528
Last updated
Sep 12
Pre-warmed CDN
US EU US EU

Contributors