ShieldNet finds hidden code in AI agent tools
Malicious code in a tool can attack a network while the AI model sees no problem, and thus the researchers monitor the network traffic.
Researchers published a paper about MCP Tool Trojans, which are attack code in AI agent tools. The Model Context Protocol (MCP) connects agents to external tools. Their defense, ShieldNet, reads the network traffic of a tool during operation. The authors report a score of 0.995 on F1, a measure of precision where 1 is the maximum.
How it works
The tool keeps the same name, description and output. Hidden code can examine internal networks, steal data or connect to attacker systems.
ShieldNet has these parts:
- a proxy, a server in the middle, that decrypts the traffic
- a step that makes events from raw network packets
- a small model that finds attacks in those events
The numbers
Their benchmark, a standard test, uses 139 real-world MCP servers and 29 types of attack. The authors report that the MCP scanners of today and input and output filters find almost none of these attacks. Frontier models such as Claude Opus 5 gave more than 15 times as many incorrect alarms as ShieldNet. The authors report a rate of 0.8% of traces (records of tool operation) for ShieldNet.
What is not known
The benchmark uses only attacks that show in network traffic. The authors tell that the added operation time is small, but the summary gives no number.
Insight: The network can become the guard post for agents
At Black Hat 2026, researchers showed CoreBreak, a bug that let attackers operate agent tools with no model check. Tool Trojans also do not touch the model. It seems that the control point for agent safety moves from the model to the connections around it. The person who controls that point can get much control, because ShieldNet must read decrypted traffic. Give that point the same protection as your secrets.
Sources
Posted