Ackuity Request assessment

AI agent security explained

How do you audit an MCP tool call?

Audit an MCP tool call by linking the host’s call record to the policy decision and the target-system outcome. The visible reply alone cannot establish what ran.

Ackuity ·

The recording uses earlier response labels. Ackuity’s current product documentation describes Allow, Constrain, Human in the loop, Block and Terminate. Small language models contribute detection signals; policies govern the authorization verdict. Current product documentation.

What should an MCP audit log capture?

Keep the request identifier, timestamp, initiating identity, tool and version, relevant arguments, policy decision, and downstream result. Keep records outside the agent’s control and minimize secret or personal data in logs.

How can a correct reply conceal an unexpected action?

A reply summarizes what the agent reports to the user. It need not enumerate every action. Compare the user-authorized operation with calls recorded by the host and with the records of the systems that accepted writes or exports. Treat tool descriptions as inputs that require validation.

What proves a denied call stayed denied?

Use an approved test account and a synthetic target. Correlate the attempted action and effective policy with target-system evidence. If the evidence is incomplete, record the outcome as unknown. Use the buyer guide’s outcome scoring example to apply that distinction.

What should change when a tool is upgraded?

Separate review of the tool change from authorization of any individual action. Recheck the owner, input schema, reachable targets and effective permissions. The MCP tool-change guide explains how to review a changed authorization boundary.

Frequently asked questions

Does an MCP audit trail prevent unintended actions?

An audit trail shows what was recorded. Prevention requires enforcement before the target accepts the action and an independent check of the outcome.

What should you record from tool arguments?

Record the fields needed to explain the authorization decision, while avoiding secrets and unnecessary personal data.

Sources

Read the video transcript

How do you audit what an MCP tool call actually did? You log every tool call, its arguments, and the decision on it outside the agent. The agent's own account of the task is not enough.

MCP, the Model Context Protocol, is how many agents discover and call outside tools. Tools ship with names, argument schemas, and natural-language descriptions. Those descriptions sit in the model's context when it plans. If the description is poisoned, the agent can be steered into an extra call the user never asked for. The reply on screen still looks normal. The harmful step can be additive. The agent finishes the requested work, then makes one more call. A user who only reads the final answer never sees it. You need the host's record of what left the machine.

A late-October preprint called Log-To-Leak studied that pattern on MCP. The attack adds a logging call after the last legitimate tool call. It ships the user query, the server name, the server response, and the agent response to an attacker-controlled tool. Across 18 model and server pairs that could run tools, attack success sat between about 63 and 100 percent. Conditional logging accuracy on successful attacks sat in the high 70s to mid 90s. The leak sat in the trace, not in the answer. Defenses tried on one setup still left residual attack success above 55 percent.

On October 27, VulnCheck published nine CVE records against nine MCP servers. Eight were command injection through tool parameters that reached a shell. At publication, eight of the nine had no fix listed. Only one advisory pointed at a patch commit. Several records describe a prompt-injected agent as the caller. The attack is marked local with low privileges, matching an already-authenticated agent.

Langflow's MCP stdio path had a related flaw. A GitHub advisory covers OS command injection through MCP server configuration, tracked as CVE-2026-105697. Separate coverage of an earlier Langflow MCP stdio issue reported honeypot exploit attempts. As of November 11, 2026, those MCP stdio CVEs are not listed in CISA's Known Exploited Vulnerabilities catalog. Treat the attempts as a warning, not as a KEV listing.

So what does a useful audit look like? Record every tool call outside the agent: tool name, arguments, who or what triggered it, timestamp, and the allow, alert, mask, or block decision. Keep that log where the agent cannot rewrite it. Authorize secondary calls on their own. A save-logs call after a normal GitHub task is a new action, not a free side effect. Compare the agent's story to the host's story. An extra outbound log is the signal. Treat tool metadata as untrusted input. A description can explain a tool. It should not grant permission for an unrelated disclosure.

MCP makes agents useful. It also makes tool metadata part of the attack surface. We audit the calls the host actually ran, not only the reply the agent typed. The Agent Execution Control Switch sits outside the agent. It decides each action with allow, alert, mask, or block, in 40-100 ms. There is no language model in the decision path.

Get a free 30-day agent exposure assessment at ackuity.ai/agent-exposure-assessment.

Request an Agent Exposure Assessment

Related explainers

All videos and explainers