Cyber Security
Security Systems Engineering
From Cryptographic Primitives to Emerging Cyber Threats
AI generated by Nikhil Kumar Rajput
Cryptography, network and web security, hardware security, secure communications, malware analysis, forensics, vulnerability research, security architecture, AI and IoT security and the move to post-quantum cryptography
29 chapters3 appendices
Contents¶
Front matter
Part I: Foundations of Cryptography
Chapter 6: Cryptographic Protocols and Security Proofs
Part II: Network Security
Chapter 10: Network Protocol Security
- 10.1 DNSSEC: Authenticating the Domain Name System
- 10.2 DNS Privacy: DoH, DoT, and ODoH
- 10.3 BGP Security and RPKI
- 10.4 ARP Spoofing and Dynamic ARP Inspection
- 10.5 IPv6 Neighbor Discovery Security
- 10.6 WPA3-Personal: SAE/Dragonfly Key Exchange
- 10.7 ICMP Security Policy
- 10.8 Protocol Security Deployment Status
- 10.9 Exercises
Chapter 11: Web Application Security Fundamentals
Chapter 12: Authentication, Authorization, and Access Control
Chapter 13: API Security
- 13.1 REST API Security Principles
- 13.2 OWASP API Security Top 10 (2023)
- 13.3 GraphQL Security
- 13.4 REST vs GraphQL vs gRPC Security Comparison
- 13.5 API Gateway Security
- 13.6 Server-Side Request Forgery (SSRF)
- 13.7 API Key Management and HMAC Signing
- 13.8 Python FastAPI: JWT Bearer Authentication
- 13.9 Exercises
Part III: Hardware Security
Chapter 15: Hardware Tamper Protection
- 15.1 Trusted Execution Environments
- 15.2 Trusted Platform Module (TPM 2.0)
- 15.3 Secure Boot Chain
- 15.4 Physical Unclonable Functions
- 15.5 Hardware Security Modules
- 15.6 Anti-Tamper Techniques
- 15.7 Cold Boot Attacks
- 15.8 Memory Encryption
- 15.9 JTAG Security
- 15.10 Hardware Security Mechanisms Comparison
- 15.11 Exercises
Part IV: Secure Communications
Chapter 16: Transport Layer Security
- 16.1 Protocol History
- 16.2 TLS 1.3 Handshake
- 16.3 Certificate Validation
- 16.4 Historical TLS Attacks
- 16.5 Perfect Forward Secrecy
- 16.6 TLS Fingerprinting
- 16.7 Certificate Pinning
- 16.8 TLS Downgrade Attacks
- 16.9 Mutual TLS (mTLS)
- 16.10 TLS Inspection
- 16.11 OpenSSL Commands and Python TLS
- 16.12 Exercises
Chapter 17: SSH Security
- 17.1 SSH-2 Protocol Architecture
- 17.2 Key Exchange
- 17.3 Host Key Verification
- 17.4 Authentication Methods
- 17.5 Key Exchange Diagram
- 17.6 Hardening sshd_config
- 17.7 SSH Tunneling
- 17.8 Jump Hosts and ProxyJump
- 17.9 Common SSH Attacks and Defences
- 17.10 Bastion Architecture with Session Recording
- 17.11 Exercises
Chapter 18: Email Security
- 18.1 Email Architecture
- 18.2 SMTP Transport Security
- 18.3 Sender Policy Framework (SPF)
- 18.4 DomainKeys Identified Mail (DKIM)
- 18.5 DMARC: Policy and Alignment
- 18.6 BIMI: Brand Indicators for Message Identification
- 18.7 End-to-End Encryption: S/MIME and PGP
- 18.8 Email Attack Landscape
- 18.9 Email Forensics
- 18.10 Exercises
Chapter 19: Advanced Network Protocol Security
- 19.1 BGP Security
- 19.2 RPKI: Resource Public Key Infrastructure
- 19.3 DNS Privacy: DoH and DoT
- 19.4 NTP Security
- 19.5 Kerberos and Active Directory
- 19.6 Active Directory Attack Techniques
- 19.7 Additional AD Attacks: Pass-the-Hash and DCSync
- 19.8 SMB and NTLM Relay
- 19.9 SNMP Security
- 19.10 IPsec: Details and Configuration
- 19.11 RADIUS, TACACS+, and 802.1X
- 19.12 Exercises
Part V: Malware Analysis
Chapter 20: Malware Analysis
Chapter 21: Reverse Engineering
- 21.1 Assembly and Calling Conventions
- 21.2 Disassembly vs. Decompilation
- 21.3 Static Analysis Techniques
- 21.4 Dynamic Analysis with Debuggers
- 21.5 Anti-Analysis Techniques
- 21.6 Symbolic Execution with angr
- 21.7 Unpacking: Finding the OEP
- 21.8 Deobfuscation: XOR Decoding
- 21.9 Recognising Crypto in Binaries
- 21.10 RE Workflow Diagram
- 21.11 Exercises
Part VI: Digital Forensics
Chapter 22: Digital Forensics
- 22.1 Forensics Principles
- 22.2 Disk and File System Forensics
- 22.3 Timeline Analysis
- 22.4 Memory Forensics
- 22.5 Network Forensics
- 22.6 Browser Forensics
- 22.7 Mobile Forensics
- 22.8 Cloud Forensics
- 22.9 Anti-Forensics
- 22.10 Forensics Tools Reference
- 22.11 Forensics Investigation Workflow
- 22.12 Exercises
Part VII: Vulnerability Research
Chapter 23: Vulnerability Research and Fuzzing
Chapter 24: Exploit Development Fundamentals
- 24.1 Process Memory Layout
- 24.2 Stack Buffer Overflow
- 24.3 Return-Oriented Programming (ROP)
- 24.4 Format String Vulnerabilities
- 24.5 ASLR Bypass Techniques
- 24.6 Heap Exploitation Overview
- 24.7 CTF Pwn Methodology
- 24.8 Browser Exploitation Concepts
- 24.9 Kernel Exploitation Concepts
- 24.10 Exploit Mitigations Summary
- Exercises
Part VIII: Security Architecture
Chapter 25: Security Architecture and Design
Chapter 26: Cloud-Native Security
Part IX: Human Factors and Emerging Threats
Chapter 27: Human Factors in Security
- 27.1 Social Engineering: Psychological Foundations
- 27.2 Phishing Attack Taxonomy
- 27.3 Business Email Compromise (BEC)
- 27.4 Pre-texting and Physical Social Engineering
- 27.5 Security Awareness Programme Design
- 27.6 Insider Threats
- 27.7 OSINT: Open Source Intelligence
- 27.8 Deep Fakes and AI-Enhanced Social Engineering
- 27.9 Cognitive Biases in Security
- 27.10 Phishing Kill Chain
- 27.11 Social Engineering Attacks and Countermeasures
- 27.12 Security Culture
- Exercises
Chapter 28: Artificial Intelligence and Machine Learning Security
- 28.1 The AI/ML Threat Landscape
- 28.2 Adversarial Examples
- 28.3 Model Poisoning and Backdoor Attacks
- 28.4 Model Inversion and Membership Inference
- 28.5 LLM Security: OWASP LLM Top 10
- 28.6 AI for Defence
- 28.7 AI-Powered Attacks
- 28.8 Defensive Measures for AI Systems
- 28.9 Responsible AI in Security
- Exercises
Chapter 29: IoT, Industrial Control Systems, and the Emerging Threat Horizon
- 29.1 IoT Attack Surface
- 29.2 Mirai Botnet: Case Study
- 29.3 Firmware Security
- 29.4 ICS/OT Security
- 29.5 Post-Quantum Migration for IoT
- 29.6 Blockchain and Web3 Security
- 29.7 5G Security
- 29.8 Supply Chain Attacks: SolarWinds and XZ Utils
- 29.9 Emerging Threat Timeline
- 29.10 Space and Satellite Security
- 29.11 Quantum-Safe IoT
- Exercises
Appendices
Back matter
Preface¶
This book grew out of a frustration I encountered repeatedly: existing resources on cryptography and cybersecurity either stay comfortably abstract or dive into a single topic without connecting it to the broader ecosystem. A practitioner building a secure system needs both — the mathematical foundations that tell you why a primitive is secure, and the adversarial perspective that tells you how it breaks in the real world.
Security Systems Engineering: From Cryptographic Primitives to Emerging Cyber Threats is my attempt to bridge that gap. It covers the full spectrum of the field — from the number theory underlying RSA to the eBPF syscall interception that powers runtime security in Kubernetes. Every chapter is written with the same goal: give you enough depth to reason about the problem yourself, not just recognise the answer.
The book is designed for practitioners, researchers, and advanced students who require both theoretical depth and practical applicability. If you’re preparing for a career in security engineering, red teaming, or cryptographic system design, this is the reference I wish I’d had.
The text is organized into ten major parts, each corresponding to a domain of security expertise:
-
Foundations of Cryptography — Mathematical prerequisites, symmetric and asymmetric cryptography, hash functions, and key management.
-
Network Security — Protocol vulnerabilities, firewalls, intrusion detection, and network architecture.
-
Web Application Security — OWASP vulnerabilities, authentication mechanisms, API security, and secure development.
-
Hardware Security — Side-channel attacks, fault injection, TPM, PUFs, and TEMPEST.
-
Secure Communications — TLS, SSH, email security, VoIP, and network protocols.
-
Malware Analysis — Dynamic and static analysis, reverse engineering, and countermeasures.
-
Digital Forensics — Disk, memory, network, mobile, and cloud forensics.
-
Vulnerability Research — Fuzzing, binary analysis, exploit development, and responsible disclosure.
-
Security Architecture — Enterprise architecture, cloud-native security, and secure SDLC.
-
Human Factor and Emerging Threats — Social engineering, phishing, AI security, IoT, quantum migration, and Web3.
Each chapter includes worked examples, attack scenarios with mitigations, and exercises for self-assessment. Reference implementations are provided in Python, C, Solidity, and shell scripts throughout.
Prerequisites: Readers should have familiarity with discrete mathematics (modular arithmetic, probability), computer architecture, operating systems, and basic networking.
Nikhil Kumar Rajput