Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Appendix H: Incident Pattern Catalog

Each row is an incident class, not an advisory. “Public example” links the real case in Chapter 21.

The Catalog

PatternTypical symptomLikely blast radiusDetection signalFirst containment moveControlsPublic example (ch21)
Over-broad command executionArbitrary or surprising side effectsHost compromise, secret exposureUnexpected child processesDisable or isolate the execution toolsIntent-shaped tools, approvals, sandboxing—
Cross-tenant scope failureUser sees or mutates another tenant’s dataSevere multi-customer exposuretenant on the event differs from the token’s tenant; support escalationContain the tenant path; freeze shared writesTenant from the token, carried into every cache key and job; hostile-path testsAsana
Untrusted metadata driving local executionA client or bridge runs a command after connecting to a serverCode execution on the operator’s machineNew child processes from the MCP client; odd URL schemes in discovery responsesStop connecting to the server; patch the clientParse URLs, allow https: only, launch helpers without a shellmcp-remote
Developer tooling exposedA dev proxy or Inspector reachable beyond localhostWorkstation compromiseListener on 0.0.0.0; unexpected inbound connectionsKill the tool; rebind to loopbackLoopback by default, ephemeral local tokens, pinned versionsMCP Inspector
Filesystem overexposureModel can read paths outside the allowed rootsLocal secret leakage, privacy failureReads of paths outside the allowlist; leaked paths in outputsTighten path allowlists or disable filesystem accessResolve symlinks and normalize before the prefix checkFilesystem reference server
Hostile configurationA shared agent, server card or proxy setting reroutes trafficStolen prompts, keys and uploadsUnknown proxy or endpoint in imported configRemove the config; rotate exposed keysValidate and hash imported definitionsAgentSmith
Token or secret leakageCredentials appear in logs or tool responsesAccount compromiseSecret-scanning alert, suspicious downstream usageRevoke credentials; preserve evidenceLogging discipline, output review, no token passthrough—
Prompt-injection-driven tool misuseUntrusted content causes dangerous actionsData exfiltration, policy bypass, unsafe writesSudden unusual tool chain after reading hostile contentDisable risky tools or force approvalsTaint tracking, approval on writes after untrusted reads—
Weak approval boundariesUsers can’t tell what a tool will really doUnsafe execution with false trustUser confusion, near-miss reportsRestrict or relabel the toolsHonest annotations, approval prompts that show the action—
Queue or task context lossAsynchronous work runs under the wrong scopeWrong-user or wrong-tenant side effectsBacklog anomalies, delayed wrong-target actionsPause task intake; inspect task metadataPrincipal and tenant stored on every job—
Logging overcollectionSensitive data lands in logs or analyticsBroad internal exposureLog audit, leaked PII in dashboardsStop ingestion; tighten filtersEvent schema with an explicit exclusion list (ch23)—

Questions to Ask During Review

For each tool, resource, prompt or task path:

  1. What trust boundary does this cross?
  2. What identity, tenant, or approval context does it depend on?
  3. What happens if hostile or misleading content reaches this path?
  4. What would the logs, traces, and metrics show after misuse?
  5. What is the fastest safe containment option?
  6. Can one tenant or environment be isolated without taking down everything?

Answer question 5 before exposing the server.

Near-Miss Review Template

Use it for near-misses too: they reveal the same weaknesses at a smaller blast radius.

  • Summary:
  • Affected tool, resource, or task path:
  • Trust boundary involved:
  • Identity and tenant impact:
  • Detection signal:
  • Immediate containment:
  • Root cause:
  • Missing control or weak assumption:
  • Permanent corrective action:
  • Tests or runbook updates added: