A visual guide to designing and operating secure AWS environments. Follow worked examples for identity, network and data protection, threat detection, incident response, and recovery.
The Modern Reference for Linux Network Programming. A Comprehensive Guide to Network Programming, Protocols, Socket APIs, and Linux Networking Internals 823 pages | Extensive practical examples in C
Embed security into your delivery pipeline with runnable examples: threat modeling, SAST/IaC/container scanning, SBOMs, signing, CI hardening, and a full Kubernetes walkthrough.
PowerShell is not just a scripting language. It is a direct interface to the Windows operating system, the .NET framework, COM objects, WMI, Active Directory, the registry, and the Win32 API. Every modern Windows host ships with it. Every domain controller speaks its language. Every EDR vendor fears what it can do. Across thirteen chapters, you will conduct a single, continuous penetration test against Meridian Financial Group — a fictional mid-market financial services firm with a realistic Windows enterprise environment: Active Directory forests, IIS web applications, SQL Server databases, file shares, Exchange-style mail, and endpoint detection. You start with nothing but a PowerShell prompt and finish with domain admin, crown jewels exfiltrated, and a professional pentest report.
Learn how firewalls and WAFs protect real service paths. Visual explanations and practical examples cover layered architecture, policy design, verification, troubleshooting, and operations.
Build practical network engineering skills from packet flow and addressing through secure operations and automation. Visual explanations and Cisco IOS XE examples cover design, verification, and troubleshooting.
Turn AI agent governance into enforceable architecture and operating controls. Visual explanations and examples cover authority, security, accountability, evaluation, and production assurance.
Most offensive-security books hand you a framework and a flag. This one hands you a terminal prompt and a target. Apex Foundry is a precision-manufacturing company that builds industrial control interfaces, runs a customer-facing web application backed by Postgres, operates an Active Directory domain for its corporate workforce, and recently bolted an AI assistant onto its support portal. It also happens to be running entirely inside your homelab — Docker containers, a virtual AD forest, and a vulnerable web stack you control end to end. Your job is to break it. Your constraint is that every tool you use must be one you wrote yourself, in Bash. Over thirteen chapters you will work through a single, continuous penetration test — from passive reconnaissance through data exfiltration and final reporting. Each chapter adds a link to the attack chain: you will build port scanners with `/dev/tcp`, web crawlers with `curl`, SQL-injection extractors with pipes and string manipulation, a prompt-injection fuzzer with `jq`, a cron-persisted reverse-shell implant, Kerberoasting wrappers, a covert DNS exfiltration channel with `dig`, and a report generator that pulls every finding into a finished deliverable. Every tool is a script you can paste into any Linux terminal with zero dependencies beyond a standard installation. Along the way you will capture twenty flags (format: `APEX{...}`) and document twenty-two findings, building a portfolio that doubles as a real-world pentest report. Why Bash?Python dominates offensive tooling for good reason — it is powerful, readable, and everywhere. Rust compiles to fast, dependency-free binaries. But Bash offers something neither can: - It is already on the target. Every Linux host, every container, every cloud instance ships with a POSIX shell. There is nothing to install, nothing to upload, nothing to compile. Your tool is the terminal.- No forensic footprint. A Bash script leaves no binary on disk, no interpreter to flag, no package manager log. When you pipe commands through a reverse shell, the tool exists only in memory and in process lists.- Living off the land. `curl`, `dig`, `awk`, `grep`, `find`, `openssl`, `base64`, `xxd`, `sqlite3` — standard utilities that defenders expect to see in log files. Using them for offense is indistinguishable from normal administration.- Instant iteration. No compile step, no dependency resolution, no virtual environment. Edit, run, observe. The feedback loop is measured in keystrokes.- Universal skill transfer. Every sysadmin writes Bash. Learning to weaponize it teaches you to defend against the same techniques — because the attacker at the keyboard looks exactly like the admin. This book does not replace your Python toolkit or your compiled Rust binaries. It extends your capabilities into the space where those tools cannot go — the compromised host where you have a shell and nothing else.
Your AI agent can follow the wrong instruction, expose customer data, issue duplicate payments or execute an action nobody authorised.A prompt won't reliably stop it.This hands-on Python engineering handbook shows you how to build the runtime controls that do: least-privilege permissions, policy enforcement, human approval, kill switches, tamper-evident audit trails and safe recovery.Build one runnable reference agent, attack it with seven scenarios, and see what happened when two real language models were put through the same tests.Stop trusting agents to behave. Build systems that control what they can do.
A practical guide to testing and defending AI applications, from prompt injection and RAG to MCP tools, autonomous agents, and incident response.
Ship an API that survives real attackers: OAuth 2.1, JWT validation, object-level authorization, rate limiting, GraphQL hardening, supply-chain integrity, and incident response — with runnable configs and tests.
Prompt injection has no patch — only architecture. Threat-model LLM apps, then defend them with provenance, least-privilege tools, output gateways, and CI red-team gates.
Understand OpenID Connect from the trust model and protocol vocabulary to secure production implementation. Visual explanations and practical examples cover tokens, authentication flows, validation, architecture, and operations.
A visual, practical guide to Microsoft Entra ID, from identity fundamentals to secure enterprise deployment and operations. Learn to design, verify, troubleshoot, and govern identity services with clear diagrams and worked examples.
Every chapter of this book advances a single, continuous engagement against one fictional target that lives entirely in your homelab: Helix Dynamics, a small AI-native fintech. One target carries every phase of the pentest — external edge, a web app and JSON API, a Postgres backend, an Active Directory estate, and an internal LLM assistant that eventually becomes a target in its own right. You don't just run tools against Helix. You build the tools, in Python, one phase at a time: your own range orchestrator, your own scanner, your own crawler, your own exploits, your own post-exploitation tasking, and finally your own report generator. Each phase ends with a captured flag — `HELIX{...}` — and those flags become the evidence trail for the deliverable you assemble in the final chapter. Nothing in this book touches a system you do not own. The entire range is yours: stood up locally with one command, attacked, and torn down when you are done.