Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Liz Rice

Rating No ratings yet

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A practical, mechanism-first guide to securing containerized and cloud native workloads, showing how Linux primitives, image hygiene, orchestration policy, and runtime defenses fit together. Best for engineers, platform/SRE, and security practitioners who already use containers and want to reason about their real attack surface. 【Book Arc】 - **Opening (~0%–10%)**: Establishes the container threat model and security principles, then previews the full map from Linux internals through networking, secrets, and runtime protection. - **Early (~10%–30%)**: Builds the Linux foundation—system calls, permissions, capabilities, control groups, namespaces, and how VMs differ—so later container behavior is explainable rather than magical. - **Middle (~30%–55%)**: Deepens isolation mechanics: cgroup controllers and limits, namespace types (UTS, PID, mount, network, user, IPC, cgroup, time), root-directory changes, and how Kubernetes pods relate to these primitives. - **Late (~55%–85%)**: Moves outward to operational security: dangerous misconfigurations, container-to-container communication, keys/certificates, SPIFFE-style identity, ingress/egress traffic, observability, and secret delivery via environment variables, files, Kubernetes Secrets, CSI drivers, and external operators. - **Ending (~85%–100%)**: Focuses on runtime protection—image runtime policies, network/executable/file/user controls, AI-assisted policy generation, and enforcement technologies such as seccomp, AppArmor, SELinux, ptrace, LD_PRELOAD, and kernel-based security. 【Key Takeaways】 - **Containers are Linux processes with isolation features, not lightweight VMs** (Early): namespaces and root-directory changes explain why a container sees its own hostname, PIDs, mounts, and network while still running on the host kernel. - **Cgroups are the resource-governance layer** (Middle): controllers for CPU, memory, PIDs, and more can cap consumption and even kill a runaway group, which matters for fork bombs, leaks, and resource-exhaustion attacks. - **Capabilities and permissions are central to privilege risk** (Early/Middle): setuid/setgid bits and capabilities such as CAP_NET_RAW can grant extra power; tools like getpcaps and strace help verify what a process actually holds. - **Multitenancy shapes the threat model** (Early): shared hardware and neighboring cloud tenants mean isolation strength and trust boundaries must be chosen deliberately, not assumed. - **Container benefits are conditional, not automatic** (Early): reduced attack surface, limited blast radius, and segregation of duties only hold if configuration, image hygiene, and secret handling are done well. - **Secrets need deliberate delivery and rotation** (Late): storing secrets in images, passing them over the network, or using environment variables each carry trade-offs; Kubernetes Secrets, CSI drivers, and external operators address rotation and access, but root can still read them. - **Runtime security is policy plus enforcement technology** (Late): image runtime policies can constrain network traffic, executables, file access, and user/group IDs, while seccomp, AppArmor, SELinux, ptrace, LD_PRELOAD, and kernel-based tools provide the enforcement hooks. - **Identity and traffic control extend security beyond the container boundary** (Late): keys, certificates, SPIFFE, ingress/egress controls, and network observability are part of the container security story, not separate concerns. 【Reading Tips】 - Deep-read the Linux chapters (cgroups, namespaces, capabilities); they are the conceptual load-bearing walls for everything later. - Skim the table-of-contents-heavy opening and preface material, but note the chapter roadmap so you know where networking, secrets, and runtime protection sit. - Treat the middle isolation chapters as a lab: try unshare, cgroup files, getpcaps, and strace examples to make the abstractions concrete. - For the late chapters, focus on decision criteria—when to use environment variables vs. files vs. CSI drivers, and which runtime enforcement technology fits which threat. - Keep the threat-model framing in mind: ask what credentials, permissions, and network access an attacker would have at each layer. 【Coverage Limits】 The excerpts are heavily weighted toward front matter, chapter listings, and Linux isolation mechanics; later chapters on networking, secrets, and runtime protection are represented mainly by section headings and brief fragments, so this guide cannot verify detailed claims, examples, or chapter conclusions beyond what is listed.
Excerpt 1
43 Network Namespace 45 User Namespace 47 Inter-Process Communications Namespace 51 Cgroup Namespace 52 Time Namespace 53 Kubernetes Pods and Container Names...
View in text
Excerpt 2
215 eBPF for Runtime Security 216 viii | Table of Contents What This Book Covers We’ll start in Chapter 1 by considering threat models and attack vectors tha...
View in text
Excerpt 3
ntroduces another attack surface. Limiting the blast radius If a containerized application is compromised, security controls can help con‐ strain the attack...
View in text
Excerpt 4
ith container security, it’s a fun bit of syntax: • :() {...} defines a function called : (yes, a colon is a valid name for a function in Bash). • The conten...
View in text
Excerpt 5
=65534(nogroup) The user inside the new namespace is nobody. There needs to be an explicit mapping to set the UID 0 on the host to UID 0 inside the user name...
View in text
Excerpt 6
{ "type": "mount" } ] } The configuration information includes a definition of everything runc should do to create the container. As you can see from these e...
View in text
Excerpt 7
rface by eliminating unnecessary tools from build machines. Restrict direct user access to these machines, and protect them from unauthorized network access...
View in text
Excerpt 8
foot to determine whether or not this artifact is affected. The author of a piece of software can create a VEX document to inform consumers of that product a...
View in text
Tags
AI categories
Cloud NativeCybersecurityDevOps
Publisher: O'REILLY
Publish Year: 2025
Language: English
Pages: 271
File Format: PDF
File Size: 4.9 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…