Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

Figure 2 from arXiv paper 2612.02513, the two exfiltration mechanisms and where each is observed. In Build A, server-side exfiltration, the agent requests a summary, the malicious summary MCP server code reads the credential file and sends it via HTTP to an external receiver; the agent callback rarely logs the credential read, the kernel audit records the file open and connect() by the same PID, and success is a receipt at the HTTP receiver. In Build B, model-mediated disclosure, a poisoned tool description from the summary server leads the agent to request a file read from a benign filesystem server and include both credential values in its final response; the agent callback logs the sensitive read, the kernel audit records the file open, and success is both values in the final response.
Figure: Cesar R. Beltrán-Hernández (Universidad El Bosque), arXiv:2612.02513 (CC BY-NC-ND 4.0), Figure 2, the two exfiltration mechanisms and where each is observed, reproduced unaltered from the PDF on a white background.

Opinion

A Malicious MCP Server Stole a Credential in 120 Lab Runs and the AI Agent's Own Log Recorded the Read Only Once, While Kernel Auditing Caught Every Theft, so SOC Teams Should Not Investigate AI Agents From Agent Logs Alone

A researcher at Universidad El Bosque in Bogotá ran 420 tool-poisoning attacks on an AI agent and measured what evidence each one left behind. The agent's own callback log missed almost every theft carried out by a malicious server's code, the kernel audit caught all of them, and a second kind of leak never touched the network at all. Elena Vos argues that SOC teams should put kernel auditing on agent hosts, keep the agents' final answers as evidence and anchor both off the host before they need them.

Elena Vos, OpinionLondon7 min read

LONDON - When an AI agent leaks a secret, the first place most teams will look is the agent's own log. A study posted to arXiv on Nov. 30 suggests that is often the wrong place. In a controlled test, a malicious tool server stole a credential 120 times, and the agent's log recorded the file being read in just one of those runs.

The paper, "Forensic Visibility of Malicious Model Context Protocol (MCP) Servers: An Empirical Study Across Agent and Kernel Trust Boundaries," is the work of Cesar R. Beltrán-Hernández of Universidad El Bosque in Bogotá, and has been submitted to the journal Forensic Science International: Digital Investigation. Most research on malicious MCP servers asks whether an attack works. This one starts after the theft and asks a question every incident responder will eventually face: what evidence did it leave, and where?

Two ways to steal the same secret

The test bed is small and deliberately plain. Three virtual machines sit on an isolated network: a victim running a LangGraph agent with MCP servers, an attacker machine with an HTTP receiver, and a forensic machine that keeps traces and signs the evidence. The agent's job was to summarize a document. A synthetic, AWS-style credential sat in a file on the victim, and the harness refused to run against real secrets.

The paper watches two places a defender controls on that host. One is inside the agent: a callback that records every model step and tool call. The other is beneath it: Linux auditd, with a watch on the credential file and a rule on the system calls used for network egress, connect, sendto and sendmsg.

Then it attacks the agent two ways. In what the paper calls Build A, the theft lives in the server's code: when the agent calls the summarize tool, the server quietly reads the credential file and posts it to the attacker. The model does nothing unusual. In Build B, the theft lives in the tool's description, where hidden instructions tell the model to read the credential through a benign filesystem tool and paste it into its answer. Nothing goes to the attacker; the leak lands in the response the user sees.

Seven models were tested, three running locally under Ollama and four hosted by OpenAI, 30 times per model and build. Of 420 attack runs, 223 succeeded: 120 of 210 in Build A, each confirmed by a receipt on the attacker machine, and 103 of 210 in Build B, each with both credential values in the final answer. A benign control campaign of 105 runs fired no indicator at all.

The agent log missed almost everything

The headline result is in Table 4. In the 120 successful Build A thefts, the agent callback recorded the sensitive read once. The kernel audit recorded the credential file being opened in all 120 runs and a connection to the attacker in all 120, "always from the same PID," with the attacker's receipt confirming delivery every time.

The single exception shows why. In that run, a GPT-4o run, the callback logged a read because the model itself had read the file through the filesystem server, a Node process. The kernel recorded a second open of the same file by a different process, the malicious server's Python code, which then connected to the attacker. The whole sequence took about 2.7 seconds. The user, meanwhile, received a legitimate summary of a quarterly report. The one time the agent's log saw a read, it was not the read that stole the secret.

Screenshot of the arXiv abstract page for paper 2612.02513, "Forensic Visibility of Malicious Model Context Protocol (MCP) Servers: An Empirical Study Across Agent and Kernel Trust Boundaries," by Cesar R. Beltrán-Hernández, submitted Nov. 30, 2026, with an abstract reporting that after 420 attacks and 105 negative controls neither boundary captured both mechanisms, that the agent log recorded file access in only one of the 120 successful Build A executions, and that the kernel audit showed the same process opening the file and attempting the connection in all 120.
Screenshot: arXiv abstract page for arXiv:2612.02513 (fair use), captured Dec. 3, 2026.

Build B ran the other way. The agent callback and the kernel file watch both recorded the credential read in all 103 successful runs, but there was no network event to find, because none happened. In one Qwen2.5 run the model added a "System Diagnostics" section to its answer containing both credential values, then advised handling credentials carefully, after it had already exposed them. The only conclusive evidence of that leak was the answer itself.

Table 4 from arXiv paper 2612.02513, forensic visibility by indicator and mechanism for successful runs. Explicit sensitive read at the agent callback: 1 of 120 in Build A, 103 of 103 in Build B. Watched credential-file open in auditd: 120 of 120 and 103 of 103. Kernel connect() to the attacker endpoint: 120 of 120, and not applicable in Build B. Same PID for file open and attacker connection: 120 of 120. Independent attacker receipt: 120 of 120. Full credentials in the final response: 0 of 120 and 103 of 103. Both markers in the Jaeger result text: 0 of 120 and 103 of 103.
Figure: Beltrán-Hernández, arXiv:2612.02513 (CC BY-NC-ND 4.0), Table 4, forensic visibility by indicator and mechanism, reproduced unaltered from the PDF.

The author draws the conclusion without hedging: "An investigator who instruments only the agent logs will therefore miss almost every code-based exfiltration, and one who watches only the network will miss Build B."

Two inferences a SOC should stop making

The paper names two mistakes that I suspect are already being made in agent investigations. The first: "The absence of a network event does not mean that no theft occurred." The second: "Nor does a missing sensitive read in the agent log rule out a theft." An analyst who closes an agent incident because egress logs are clean, or because the agent's tool history looks harmless, is closing it on evidence this study shows can be silent.

There is a third trap in the model results. Whether evidence exists at all depended on what the model chose to do. Three models completed both attacks; one ran the malicious tool every time but never disclosed the credential; one disclosed it in 14 of 30 Build B runs and completed no theft in Build A; and two completed neither, one of them because it never issued a real MCP call. If the model never calls the malicious tool, the malicious code never runs and the kernel records nothing. As the paper puts it, "missing kernel traces do not prove that a server is legitimate. The server may be malicious and expose a tool the model simply never used." A quiet host is not a clean server.

The agent log has a deeper problem than gaps. "That log is also written on the host under investigation, so an attacker with host control could alter it before collection," the author writes. The study answers that with established techniques rather than new ones: a SHA-256 hash chain over the campaign's 531 artifacts, anchored on the forensic machine and signed with an Ed25519 key. Tampering tests caught every alteration, including a rebuilt chain and a forged receipt, which only the external anchor and signature could detect.

Figure 1 from arXiv paper 2612.02513, the three-VM host-only testbed. The victim VM runs a LangGraph agent with an MCP client and callback, connected over stdio to an untrusted summary MCP server and a benign filesystem server, both of which can read the credential file; the summary server sends data over HTTP in Build A to an HTTP receiver on the attacker VM that acts as an independent receipt. An application trace goes to OpenTelemetry and Jaeger on the forensic VM, which also holds a custody anchor with an Ed25519 signature. Boundary 1 is user space, the agent callback log; Boundary 2 is the kernel, auditd watching credential-file opens and network egress.
Figure: Beltrán-Hernández, arXiv:2612.02513 (CC BY-NC-ND 4.0), Figure 1, three-VM host-only testbed and the two victim-controlled trust boundaries, reproduced unaltered from the PDF.

The limits, and what to do anyway

This is one framework, one summarization server alongside the official filesystem server, one poisoning instruction and one Linux host, with tools talking over standard input and output rather than the network. The author is explicit that other frameworks, payloads and transports could move both the success rates and the evidence; over HTTP, tool calls would cross the network and could be recorded there. The victim's memory was increased partway through the campaign after an out-of-memory event, no packet capture was taken, and the custody chain was applied after collection had finished rather than as events were written. The model results describe behavior under these conditions, not a ranking.

None of that changes the practical point, because the mechanism is simple. Code that runs inside an MCP server does not report itself to the agent that called it. The agent's log records that a tool was called; the kernel records what the tool's process did.

For SOC teams with AI agents on developer laptops, build servers or shared hosts, I would take four things from this paper before the first agent incident arrives. Put kernel-level file and network auditing on the hosts where agents and their MCP servers run, at minimum on credential stores, and make sure it records the process behind each open and each connection. Keep the agents' final answers, not just their tool histories, because in this study a leak through the answer left its only conclusive trace there. Ship both kinds of record off the host to somewhere it cannot rewrite, and verify them before relying on them. And write the two inferences above into the runbook as things an analyst may not conclude: clean egress is not proof of no theft, and a clean agent log is not proof of a clean tool.

The paper's own summary is the right standard for any agent investigation: "Before ruling out a theft, an investigator should correlate several sources, since each one misses a different part of the incident depending on the mechanism."

About the Author

Elena Vos

Elena Vos covers SOC strategy and detection operations for SOCtember from London.

Related stories

Opinion desk