Foundations of Cybersecurity

Table of contents

What’s inside

Twelve core chapters in five parts, six Going Deeper chapters, and five appendices. Every chapter also includes On the Job, Make the Case, a Chapter Summary and Key Terms, fourteen multiple-choice and six short-answer Review Questions, Problems, Discussion Prompts, a Case Analysis, Looking Ahead, and References.

Part I

Foundations

What information assurance is and what it is for, how networks work and fail, and how adversaries think and operate. Chapter 3 introduces threat modeling, the habit of mind the rest of the book relies on.

1

Information Assurance: Goals, Principles, and the Profession

What we protect, why it fails, and what it means to be trusted with it

Opening Story: The Certificate Nobody Renewed

  1. 1.1Security, Cybersecurity, and Information Assurance
  2. 1.2Security Goals Beyond the CIA Triad
  3. 1.3Threats, Vulnerabilities, Risk, and Controls
  4. 1.4Control Types and Functions
  5. 1.5Design Principles at a Glance
  6. 1.6A Brief History of Computer Security
  7. 1.7The Security Profession
  8. 1.8Ethics and Authorization
  9. 1.9Assurance: What It Means to Trust a System

Field Guide: Reading a Breach Report Like a Professional · Lab 1: Building the Lab and Signing the Rules of Engagement

2

Networking and Network Security

How networks move data, how they are attacked, and why the perimeter is no longer enough

Opening Story: In Through the Air Conditioning

  1. 2.1Networking in Brief
  2. 2.2Attacks on the Wire
  3. 2.3Attacks on Core Services: DNS, BGP, and Denial of Service
  4. 2.4Firewalls and Segmentation
  5. 2.5Intrusion Detection and Prevention
  6. 2.6Secure Remote Access: VPNs and IPsec
  7. 2.7Wireless Network Security
  8. 2.8Beyond the Perimeter
  9. 2.9Assurance: Network Architecture Reviews and Rule-Set Audits

Field Guide: Reviewing a Firewall Rule Set · Lab 2: Capturing Traffic, Scanning, and Testing Segmentation

3

Adversaries, Attacks, and Threat Modeling

Who attacks, how campaigns unfold, and how to think like them on paper

Opening Story: A Résumé, a Year, and a Billion Dollars

  1. 3.1Threat Actors and Their Economics
  2. 3.2Anatomy of a Campaign: The Kill Chain and ATT&CK
  3. 3.3Malware: A Taxonomy by Behavior
  4. 3.4Social Engineering at Organizational Scale
  5. 3.5Common Attack Techniques
  6. 3.6Threat Modeling: Thinking Like an Adversary on Paper
  7. 3.7STRIDE, Attack Trees, and Abuse Cases
  8. 3.8Threat Intelligence
  9. 3.9Assurance: Testing a Threat Model Against Reality

Field Guide: Running a One-Hour Threat Modeling Session · Lab 3: Mapping a Real Incident to ATT&CK

Part II

Mechanisms

The building blocks of protection. Chapter 4 covers cryptographic primitives and how to use them correctly; Chapter 5 shows how those primitives become certificates, protocols, and managed keys; Chapter 6 covers identity, authentication, and access control.

4

Applied Cryptography I: Building Blocks

Ciphers, hashes, and signatures, and the everyday mistakes that undo them

Opening Story: The Password Hints That Gave It Away

  1. 4.1What Cryptography Can and Cannot Do
  2. 4.2Symmetric Encryption
  3. 4.3Integrity and Authenticated Encryption
  4. 4.4Hash Functions
  5. 4.5Public Key Cryptography
  6. 4.6Digital Signatures
  7. 4.7Randomness, Key Derivation, and Password Storage
  8. 4.8Using Cryptography Correctly in Code
  9. 4.9Assurance: How Do We Know Our Cryptography Is Used Correctly?

Field Guide: Choosing Primitives and Parameters (and What Never to Build Yourself) · Lab 4: Encryption, Hashing, and Password Storage

5

Applied Cryptography II: Certificates, Protocols, and Keys

How keys get bound to names, how protocols put the primitives to work, and why most cryptographic failures are failures of management

Opening Story: The Heartbeat That Bled

  1. 5.1From Primitives to Trust
  2. 5.2Certificates and Certificate Validation
  3. 5.3Running a PKI: Issuance, Failure, Revocation, and Transparency
  4. 5.4TLS 1.3: The Primitives at Work
  5. 5.5TLS in Practice: Configuration, Pitfalls, and Mutual TLS
  6. 5.6Other Protocols, Other Trust Models
  7. 5.7Protecting Data at Rest and Application Secrets
  8. 5.8Key Management
  9. 5.9The Post-Quantum Migration
  10. 5.10Assurance: How Do We Know Our Cryptography Is Right?

Field Guide: Deploying TLS and Managing Keys · Lab 5: Certificates, TLS, and Secrets in Practice

6

Identity, Authentication, and Access Control

Proving who someone is and deciding what they may do

Opening Story: The Key to Everyone’s Mailbox

  1. 6.1Identification, Authentication, Authorization, Accountability
  2. 6.2Authentication Factors and Their Failure Modes
  3. 6.3Storing and Checking Passwords
  4. 6.4Multi-Factor Authentication, FIDO2, and Passkeys
  5. 6.5Federation and Single Sign-On
  6. 6.6Access Control Models
  7. 6.7Policy Models in Brief
  8. 6.8The Identity Life Cycle and Privileged Access
  9. 6.9Zero Trust: Identity as the New Perimeter
  10. 6.10Assurance: Access Reviews, Logging, and Proving Least Privilege

Field Guide: Auditing an Organization’s Identity Hygiene · Lab 6: Attacking and Defending Passwords

Part III

Systems

How secure software is designed and built, and how operating systems, endpoints, virtualization, and cloud platforms are hardened and configured.

7

Secure Design and Software Security

Every program trusts something. The question is whether it trusts the right things.

Opening Story: The String That Logged Itself

  1. 7.1Saltzer and Schroeder’s Principles, Revisited
  2. 7.2Why Software Is Vulnerable
  3. 7.3Memory Safety
  4. 7.4Injection and Web Weaknesses
  5. 7.5Naming and Scoring Weaknesses
  6. 7.6The Secure Development Life Cycle
  7. 7.7Software Supply Chain Security
  8. 7.8Secure by Design and Secure by Default
  9. 7.9Assurance: NIST SSDF and Evidence That Software Is Built Securely

Field Guide: A Secure Code Review Checklist · Lab 7: Exploiting and Fixing a Deliberately Vulnerable Web Application

8

Platform and Cloud Security

Securing the machines we own, the machines we rent, and the machines in our pockets

Opening Story: The Server That Answered the Wrong Question

  1. 8.1Operating System Security
  2. 8.2Hardening and Configuration Baselines
  3. 8.3Trusted Hardware: Secure Boot, TPMs, and Enclaves
  4. 8.4Endpoint Protection
  5. 8.5Virtualization and Isolation
  6. 8.6Cloud Computing and the Shared Responsibility Model
  7. 8.7Cloud Identity, Misconfiguration, and Data Exposure
  8. 8.8Mobile and IoT Platforms in the Enterprise

Field Guide: Reviewing the Security Posture of a Cloud Account · Lab 8: Hardening a Server and Breaking Out of a Container

Part IV

Operations

Security operations, vulnerability management, logging, and detection, followed by incident response, digital forensics, and resilience.

9

Security Operations

Vulnerabilities, monitoring, and testing: the daily work of keeping systems defended

Opening Story: The Second Phone

  1. 9.1Security Operations and the SOC
  2. 9.2Asset and Vulnerability Management
  3. 9.3Patch, Change, and Configuration Management
  4. 9.4Logging: What to Log, Where to Send It, and How Long to Keep It
  5. 9.5Detection Engineering and Alert Triage
  6. 9.6Threat Hunting and Deception
  7. 9.7Security Testing
  8. 9.8Security Metrics That Mean Something
  9. 9.9Assurance: Continuous Monitoring and Control Testing

Field Guide: Assessing an Organization’s Security Operations · Lab 9: From Logs to Alerts

10

Incident Response, Forensics, and Resilience

What to do in the first hour, the first week, and the next time

Opening Story: The Drive from Ghana

  1. 10.1Incidents, Events, and Breaches
  2. 10.2The Incident Response Life Cycle
  3. 10.3Preparation: Plans, Playbooks, Roles, and Triage
  4. 10.4Detection, Analysis, Containment, Eradication, and Recovery
  5. 10.5Digital Forensics
  6. 10.6Ransomware Response
  7. 10.7Notification and Communication
  8. 10.8Business Continuity, Disaster Recovery, and Backups
  9. 10.9Lessons Learned and Post-Incident Review
  10. 10.10Assurance: Testing Plans Before You Need Them

Field Guide: Running a Tabletop Exercise · Lab 10: Disk and Memory Forensics

Part V

Governance

How organizations govern security, manage risk, and demonstrate compliance, and the law, privacy obligations, and professional ethics that bound all of it.

11

Security Governance, Risk, and Compliance

Turning security into a program that leaders own, fund, and can prove works

Opening Story: The Portal Nobody Had Locked

  1. 11.1Security Governance
  2. 11.2The Security Program: Strategy, Budget, and Board Reporting
  3. 11.3Policies, Standards, Procedures, and Guidelines
  4. 11.4Risk Management: Assessing Risk
  5. 11.5Risk Treatment and the Risk Register
  6. 11.6Frameworks
  7. 11.7Compliance, Audit, and Attestation
  8. 11.8Third-Party and Supply Chain Risk
  9. 11.9Assurance: Showing a Regulator, an Auditor, or a Board That the Program Works

Field Guide: Writing a Security Policy People Will Follow · Lab 11: A Gap Assessment Against NIST CSF 2.0

12

Law, Privacy, and Ethics

Knowing when a security decision is also a legal one, and what you owe the people your systems touch

Opening Story: The Payment That Became a Crime

  1. 12.1How Law Shapes Security Work
  2. 12.2Computer Crime Law
  3. 12.3Surveillance and Communications Law
  4. 12.4Privacy Foundations and U.S. Sectoral Law
  5. 12.5The FTC, the States, and the SEC
  6. 12.6The GDPR and European Security Law
  7. 12.7Evidence, E-Discovery, and Privilege
  8. 12.8Intellectual Property, Contracts, and Security Research
  9. 12.9Ethics in Practice
  10. 12.10Assurance: Showing That You Followed the Law

Field Guide: Building a Breach Notification Matrix · Lab 12: Mapping Data and Racing the Clock

Chapters 13–18

Going Deeper

Six chapters that take one subject the core treats in a section or two and give it a full chapter. They can be assigned in any order once the related core chapters are done.

13

The Mathematics of Cryptography

Number theory, security definitions, and the move to post-quantum

Opening Story: The Constant That Changed

  1. 13.1Modular Arithmetic and Groups
  2. 13.2RSA: Why It Works and Why Textbook RSA Fails
  3. 13.3Discrete Logarithms and Diffie-Hellman
  4. 13.4Elliptic Curves
  5. 13.5Defining Security: Games, Reductions, and Birthday Bounds
  6. 13.6Entropy and Randomness
  7. 13.7Lattices and Learning With Errors
  8. 13.8Quantum Algorithms: Shor and Grover
  9. 13.9Assurance: How We Come to Trust a Hard Problem

Field Guide: Reading a Cryptographic Security Claim · Lab 13: Breaking Toy Cryptography

14

Security Models and Formal Assurance

When “we tested it” is not enough: stating exactly what a system must never do, and proving that it never does

Opening Story: The Helicopter the Red Team Could Not Take

  1. 14.1Why Models? From Policy to Proof
  2. 14.2The Reference Monitor and the Trusted Computing Base
  3. 14.3Confidentiality: The Bell-LaPadula Model
  4. 14.4Integrity: Biba and Clark-Wilson
  5. 14.5Conflicts of Interest, Noninterference, and Information Flow
  6. 14.6From the Orange Book to the Common Criteria
  7. 14.7Assurance Cases
  8. 14.8Formal Methods in Practice
  9. 14.9Assurance: How Much Proof Is Enough?

Field Guide: Reading an Assurance Claim · Lab 14: Modeling and Checking a Security Policy

15

Securing AI Systems

When the input is the instruction: attacks on models, attacks through models, and AI on defense

Opening Story: The Email Nobody Opened

  1. 15.1AI Systems as an Attack Surface
  2. 15.2Poisoning and Backdoors
  3. 15.3Evasion and Adversarial Examples
  4. 15.4Stealing Models and the Data Inside Them
  5. 15.5Prompt Injection and Insecure Output Handling
  6. 15.6Agents, Tools, and Excessive Agency
  7. 15.7The AI Supply Chain
  8. 15.8Guardrails, Red Teaming, and Frameworks
  9. 15.9Assurance: How Would We Know an AI System Is Secure Enough?

Field Guide: Reviewing an AI-Enabled Application · Lab 15: Attacking and Defending a Tool-Using Agent

16

Cyber-Physical Systems and Critical Infrastructure

When the target is a pipeline, a grid, or a water plant

Opening Story: Six Hours in the Dark

  1. 16.1What Makes Cyber-Physical Systems Different
  2. 16.2Inside an Industrial Control System
  3. 16.3Protocols Built for Trust
  4. 16.4Attacks That Cross Into the Physical World
  5. 16.5Safety and Security
  6. 16.6Critical Infrastructure Under Pressure
  7. 16.7Defending Operational Technology
  8. 16.8Standards and Regulation
  9. 16.9Beyond the Plant: Medical Devices, Vehicles, and Buildings
  10. 16.10Assurance: Can We Keep the Process Safe Under Attack?

Field Guide: Reviewing OT Remote Access · Lab 16: Talking to a PLC

17

Privacy Engineering

Building systems that collect less, reveal less, and prove it

Opening Story: The Census That Attacked Itself

  1. 17.1Privacy as an Engineering Problem
  2. 17.2Privacy Threat Modeling with LINDDUN
  3. 17.3Data Minimization, Mapping, and Retention
  4. 17.4De-identification and Why It Fails
  5. 17.5Syntactic Anonymity: k-Anonymity, l-Diversity, and t-Closeness
  6. 17.6Differential Privacy
  7. 17.7Privacy-Enhancing Technologies
  8. 17.8Privacy in Machine Learning and in the Interface
  9. 17.9Assurance: Showing That Privacy Claims Hold

Field Guide: Running a Privacy Review of a New Feature · Lab 17: Breaking and Protecting a Release

18

Human Factors and Usable Security

Why secure systems fail at the human layer, and how design, measurement, and culture can help

Opening Story: Thirty-Eight Minutes in Hawaii

  1. 18.1The Human in the System
  2. 18.2How People Make Security Decisions
  3. 18.3Warnings and Habituation
  4. 18.4Usable Authentication
  5. 18.5Phishing and Security Training
  6. 18.6Security Culture and Just Culture
  7. 18.7Humans in the SOC: Alert Fatigue
  8. 18.8Insider Risk
  9. 18.9Assurance: Measuring Behavior Change

Field Guide: Running a Human-Centered Security Review · Lab 18: Measuring a Security Behavior

Back matter

Appendices

A

Lab Environment and Rules of Engagement

  • A.1 The Recommended Lab Setup
  • A.2 The Labs at a Glance
  • A.3 Rules of Engagement
  • A.4 Sample Authorization Form and Lab-Safety Checklist
B

Careers, Roles, and Certifications

  • B.1 The NICE Framework and This Book
  • B.2 Career Paths
  • B.3 Certifications
  • B.4 Education, Portfolio, and Job Search
  • B.5 On the Job: Voices from the Field
C

Framework Crosswalk

  • How to Use This Appendix
  • C.1 NIST Cybersecurity Framework 2.0
  • C.2 NICE Workforce Framework for Cybersecurity
  • C.3 ACM/IEEE CSEC2017 Knowledge Areas
  • C.4 CompTIA Security+ (SY0-801)
  • C.5 CAE-CD Knowledge Units
D

Networking Fundamentals

  • D.1 What a Network Is
  • D.2 Layers and Encapsulation
  • D.3 The Link Layer: Ethernet, Switches, Wi-Fi, and ARP
  • D.4 IPv4 Addresses and Subnetting
  • D.5 Private Addresses, NAT, and IPv6
  • D.6 Routing
  • D.7 Transport: TCP and UDP
  • D.8 DNS and DHCP
  • D.9 HTTP and HTTPS
  • D.10 Hands-On Tools
  • D.11 Putting It Together: One Web Request, End to End
  • Where Chapter 2 Uses This
E

Math Refresher

  • E.1 Numbers, Bits, and Orders of Magnitude
  • E.2 Logarithms
  • E.3 Bitwise Operations and XOR
  • E.4 Divisibility, Primes, and the Greatest Common Divisor
  • E.5 Modular Arithmetic
  • E.6 Sets, Functions, and Counting
  • E.7 Probability
  • E.8 Entropy
  • E.9 Big-O Notation and Work Factors
  • E.10 Vectors and Matrices for LWE
  • E.11 Practice Problems
  • Answers
  • Notation Summary

Followed by a Glossary, an Index, and About the Author.