Skip to content
ISBN: B0HPD3PXDK
ISBN13: 9798165571930

Secure AI Agents & MCP Applications: Identity, Authorization, Sandboxing, and Security Testing for Tool-Using Agents in Python

$24.99List Price: $44.99
Save $20.00!
ISBN: B0HPD3PXDK
ISBN13: 9798165571930
Formats

Conditions

A brand-new, unused copy in perfect condition.

Formats

Conditions

A brand-new, unused copy in perfect condition.

See all 1 editionsfrom $24.99

Book Overview

Your agent will be tricked. The question is what it can do next.

Prompt injection cannot be fully prevented by a better system prompt. Once an agent can call tools, read inboxes, open pull requests, or move money, security becomes an action problem: who is acting, with what authority, under what limits, and with what evidence. This book shows you how to build that control layer in Python.


Who this book is for
  • Python developers and AI/ML engineers shipping tool-using agents
  • Platform and security engineers building or reviewing MCP servers
  • Application-security teams that must sign off on agent deployments

What you will build and learn
  • Agent identity and delegation: short-lived credentials and OAuth 2.1 token exchange so agents never hold standing secrets
  • Policy as code for every tool call: fine-grained authorization with a ready-to-use policy library
  • Human approval that holds up: approvals bound to the exact action, arguments, and context
  • MCP authorization end to end: PKCE, protected resource metadata, and token exchange per the 2026-07-28 specification
  • Tool supply-chain defense: detecting tool poisoning, rug pulls, and shadowing, and pinning what you trust
  • Containment: exfiltration controls, memory protection, sandboxing, and runtime limits for a compromised agent
  • Proof: security observability, audit evidence, CI/CD security gates, incident response, and passing the security review

What makes it different

Most AI-security books describe risks. This one assumes the model is already hostile. You will test your agent against a deliberately compromised model and verify invariants that must hold regardless of what the model says: no unapproved high-risk action, no credential escape, no silent data egress, and a complete audit trail.

  • 18 chapters in 5 parts, 41 figures, 43 tables, and 118 code listings
  • 8 appendices: production-readiness checklist, MCP security checklist, threat-modelling worksheet, testing matrix, policy library, incident runbook, framework adapters, and version matrix
  • Controls mapped to the OWASP Top 10 for Agentic Applications (2026) and the OWASP Top 10 for LLM Applications (2025)

Companion code

Every pattern is implemented in Wardgate, an open-source reference control layer on GitHub (Python 3.12-3.14, MCP Python SDK 2.2, container sandbox, CI security gates, and an evidence pack you can adapt for your own review).


Ship agents your security team can approve. Scroll up and get your copy.

Format:
Paperback
Language:
English
ISBN:
B0HPD3PXDK
ISBN13:
9798165571930
Release Date:
October 2026
Publisher:
Independently Published
Length:
316 Pages
Weight:
0.93 lbs.
Dimensions:
0.7″ × 6.0″ × 9.0″
ComputersComputers & Technology

Customer Reviews

0 customer ratings | 0 reviews
Write a Review

There are currently no reviews. Be the first to review this work.