Learn
Revision notes by Prasun Chaturvedi: Network & Systems Security, and Blockchain & Access Control.
Concise, exam-oriented notes: definitions, tables, worked examples and common pitfalls.
Revise a topic, then check yourself with the daily quiz.
Network & Systems Security
Part 1 · Networking foundations
- OSI model and layer-wise threatsThe seven OSI layers, encapsulation hop by hop, and the typical attack and mitigation at each layer.
- IPv4 addressing, subnetting and CIDRClassful addressing, casting types, subnet masks, bitwise AND routing, CIDR validity rules and worked subnetting.
- Application layer: HTTP, DNS, e-mail and FTPHTTP methods and persistence, DNS hierarchy and resolution, SMTP/POP/IMAP with MIME, and FTP's two connections.
- TCP, UDP, sockets and CRCPorts and sockets, TCP header, sequence and acknowledgement arithmetic, handshake and teardown, UDP, the C socket API, CRC and NS-2.
- ARP, BOOTP, DHCP and ICMPAddress resolution, host configuration with relay agents, and ICMP error and query messages with their exceptions.
Part 2 · Network attacks and defence
- Security goals, attacks and X.800CIA and its extensions, passive and active attacks, X.800 services and mechanisms, and the model for network security.
- LAN and transport attacks: ARP, DHCP, SYN flood, hijackingLayer 2 attacks mapped to X.800, DHCP starvation and spoofing, SYN floods and SYN cookies, session hijacking and spoofing, and Ettercap.
- DNS attacks, amplification and firewallsPharming and glue poisoning, on-path and off-path cache poisoning, DNS hardening, amplification, and stateless, stateful and proxy firewalls.
- Security tools: tcpdump, httprobe, nmap and Snort 3Packet capture with BPF filters and TCP flag masks, web-service discovery, nmap scan types and port states, and Snort 3 IDS/IPS rules and modes.
Part 3 · Cryptography and secure protocols
- Symmetric cryptography and classical ciphersTerminology, Kerckhoffs' principle, attack models, perfect secrecy, additive, multiplicative and affine ciphers, transposition, and stream versus block ciphers.
- Stream ciphers: LFSR and RC4How LFSRs work and why they fail alone, RC4's KSA and PRGA step by step, its biases, and the RC4 chat lab.
- Diffie–Hellman, RSA and man-in-the-middleDiffie-Hellman key agreement, brute-forcing a small discrete log, RSA key generation and use, padding, and why unauthenticated keys invite man-in-the-middle attacks.
- IPsec: AH, ESP, transport and tunnel modesWhere IPsec sits compared with TLS, its services, SPD and SAD, mutable header fields, AH and ESP formats, modes, NAT and anti-replay.
Part 4 · Forensics, attack graphs and blockchain security
- File forensics and EnCaseMagic numbers, metadata, deletion and file carving, steganography, write-blocking, E01 images and the EnCase workflow.
- Attack graphs, trust scores and Hyperledger FabricFormal attack graphs, network model inputs, minimum hitting sets, trust-score arithmetic, and the Fabric pharma chaincode lab.
Blockchain & Access Control
Module 1 · Foundations and hashing
- Blockchain fundamentals, DLT and block anatomyLedgers and DLT, counterparty risk and disintermediation, centralised databases versus blockchains, the five building blocks, block header fields and how chaining exposes tampering.
- Cryptographic hash functions, MACs and the birthday boundSymmetric, asymmetric and hash primitives, integrity checks and the avalanche effect, MACs, the hash-family definition, preimage, second-preimage and collision resistance, the random oracle model and birthday attacks.
- Merkle–Damgård, MD5, SHA-1, CBC-MAC and authenticated encryptionHow iterated hashes pad and compress, the MD5 and SHA-1 round structures, the collision history from 2004 to SHAttered, CBC-MAC, EtM/E&M/MtE, and why CBC encryption with CBC-MAC under one key fails.
Module 2 · Public-key cryptography
- Number theory: Fermat, inverses, Euclid and CRTFermat's little theorem with four worked reductions, linear congruences and modular inverses, the extended Euclidean algorithm step by step, and the Chinese remainder theorem.
- Public-key principles, trapdoors and the Merkle–Hellman knapsackOrigins of public-key cryptography, three misconceptions, secrecy and signature modes, the six Diffie–Hellman requirements, trapdoor one-way functions, subset sum, superincreasing knapsacks and a full Merkle–Hellman example.
- RSA: key generation, square-and-multiply, Miller–Rabin and attacksRSA key generation with a full numeric example, left-to-right square-and-multiply traced step by step, Fermat and Miller–Rabin primality tests on 561, factoring by congruence of squares, and timing attacks.
- Diffie–Hellman, the discrete logarithm and baby-step giant-stepDiffie–Hellman key exchange with primitive roots and two worked examples, why discrete logarithms resist binary search, and Shanks' baby-step giant-step algorithm traced in full.
- ElGamal and elliptic-curve foundationsElGamal encryption modulo a prime with a full example and why it is randomised, then elliptic curves: the Weierstrass form, non-singularity, the point at infinity, chord-and-tangent addition and the group laws.
- ECC over prime fields, quadratic residues, EC-ElGamal and RSA vs ECCElliptic curves modulo a prime, quadratic residues and Euler's criterion, all points and multiples of a generator on y² = x³ + x + 6 over Z₁₁, an EC-ElGamal round trip, and why ECC beats RSA on key size.
Module 3 · Consensus
- Distributed consensus, fault models and consensus familiesThe consensus problem and its six properties, timing models, crash versus Byzantine faults, permissionless versus permissioned designs, Nakamoto PoW, PoS, DPoS, LPoS, PoET, Tangle and Proof of Burn.
- PoW difficulty, energy metrics and Ethereum proof of stakeSix dimensions for judging consensus, target, difficulty, hash rate and retargeting, why kWh per transaction misleads, the Merge, validators, 12-second slots, 32-slot epochs, Casper FFG finality, LMD-GHOST and slashing.
- Hyperledger Fabric, chaincode and access control modelsFabric's permissioned architecture, the execute–order–validate lifecycle, chaincode determinism and lifecycle, the vaccine-batch lab, and MAC, DAC and RBAC access control.