Why MCP Compromise Requires a Different Response Model

Traditional server compromise response assumes a relatively contained blast radius: isolate the host, review its logs, restore from backup. MCP servers break this assumption because they act as a permissioned bridge between AI models and external systems. A single compromised server can be leveraged to issue unauthorized tool calls across every session and client connected to it, meaning the effective blast radius extends to every agent that trusted that server, not just the server's own host environment.

Detection Signals: Distinguishing Compromise from Normal Anomalies

Not every unusual tool call indicates compromise. Response teams should distinguish between expected variance in agent behavior and signals that specifically indicate a compromised server, such as unexpected changes to a server's declared tools or resources between sessions, tool calls issued outside the scope the agent was instructed to operate within, or credential use patterns inconsistent with the server's normal operating schedule.

Forensic Artifacts to Preserve Before Containment Actions

Before restarting, patching, or reconfiguring a suspected server, preserve the artifacts needed to reconstruct what happened: tool-call request and response logs, the permission grants active at the time of the incident, credential and token issuance records, and the server's declared tool and resource manifest as it existed during the suspected window. Acting on the server before this preservation step risks destroying the evidence needed to scope the incident accurately.

Scoping the Tool-Call Audit

Once the compromise window has been documented, the audit should focus on tool invocations issued within that window rather than the server's entire historical activity. Reviewing all historical activity indiscriminately slows response and dilutes attention away from the calls that matter. For each invocation in scope, confirm the calling client, the parameters passed, the permission scope in effect, and whether the resulting action was consistent with the agent's intended operation.

Post-Incident Hardening

  • Move HTTP-based MCP server authentication to short-lived, scoped credentials rather than long-lived static tokens, consistent with the OAuth 2.1-based authorization guidance in the MCP specification.
  • Establish baseline logging of all tool-call requests, parameters, and responses at the server layer so future incidents have a comparable forensic record.
  • Maintain an inventory of all MCP servers and their declared tools and resources, and monitor for unexpected changes to these declarations between sessions.
  • Apply network segmentation and least-privilege service accounts to MCP servers so a future compromise has restricted lateral access to backend systems.
  • Define the maximum permitted scope of tool access for each MCP server as a documented governance control, addressing the excessive agency risk of granting more functionality than an agent's intended operation requires.
  • Update incident response runbooks to explicitly address MCP-specific containment steps, including credential revocation and client disconnection procedures that do not disrupt unrelated agent sessions.

Practical note

Hardening controls are most effective when defined before an incident occurs. Treat the list above as a baseline governance checklist to review during normal operations, not only after a compromise is suspected.

Where Runtime Governance Fits

The containment and hardening steps above rely on having visibility into tool-call activity and permission scope at the time they are needed, not reconstructed after the fact from incomplete records. Runtime governance over MCP servers, including continuous logging, scope enforcement, and declaration monitoring, is what makes the detection and audit steps in this checklist practical to execute during an actual incident rather than purely theoretical.