Appearance
Tool names aren't credentials: four papers on agents in security-critical work
A tool name is a claim, not a credential
Picture the setup. Your agent has two MCP servers attached: the payments server your platform team runs, and a partner server you added for a pilot. Both advertise a tool called refund_order. The model picks the name, the client resolves it, and money moves. Nothing in that chain checked who owns the tool.
That gap is the subject of "When Tool Names Are Not Identities." MCP standardizes how clients compose tools advertised by multiple servers. Discovery and selection run on metadata: name, description, JSON schema. All of it is text supplied by whoever operates the server, and none of it is bound to a verified provider identity.
The authors call the failure tool-provider misbinding. A request meant for a legitimate provider gets resolved to an attacker's tool. The attacker does not compromise the host, the model, the legitimate server, or the network channel. It runs another MCP server and picks its metadata carefully.
I hit a mild version of this wiring up two local servers with overlapping names. The client asked me to disambiguate in one session and picked the newcomer silently in another. Same client, same config, different resolution. The paper reports that instability across models, which made me feel less silly about it.
Three knobs an attacker can turn
The authors framed misbinding as an optimization problem: choose metadata that maximizes the chance the client resolves your tool for a target query. Three levers matter, and they compound.
The worst failures came when an exact name collision, a task-aligned description, and a compatible schema reinforced one another. But a collision isn't required. Authority-flavored descriptions ("official," "verified," "primary") combined with a compatible argument schema produced wrong-provider execution, or left the client unable to decide at all, with no name overlap anywhere.
Quick Take: MCP gives you composable tools without provider identity, which makes an agent's tool choice only as trustworthy as metadata nobody signed.
Models fail in different directions
Five LLM-based clients went through the same controlled MCP environment. They share the weakness and expose it differently: some executed against the attacker's provider, some stalled into clarification requests, some flipped between providers run to run. That changes how you test for it. A single-pass evaluation tells you almost nothing, because instability only shows up under repetition.
| Mechanism | Needs exact name collision | What the client does | Cheapest mitigation |
|---|---|---|---|
| Exact-name collision with compatible schema | Yes | Executes the attacker's tool | Namespace tools per server and reject duplicates at config time |
| Task-aligned description, no collision | No | Selects the wrong provider | Carry provider identity through selection, not just the tool name |
| Authority wording in description | No | Calls the wrong provider or asks the user | Treat descriptions as untrusted input and strip authority claims |
| Schema-compatible argument contract | No | Runs attacker arguments that pass validation | Validate against a pinned contract, not the advertised one |
The mitigation that pays for itself is binding at configuration time. If two servers advertise the same tool name, that's a deployment error, not a runtime question to hand to a language model.
Budgeted triage: 40 functions out of 1,000
TRIAGE-CPG asks a different question about agents and security. A Windows PE binary can contain hundreds or thousands of functions. An analyst has hours, not days. So the useful question is which functions an LLM should read, given a fixed budget and a mean of 1,000 candidates.
The pipeline is fixed. A code property graph is built from the decompiled binary. An LLM-free heuristic picks seed functions. An agent expands the evidence dossier under a fixed budget. A reporting stage emits a benign, suspicious, or malicious verdict plus a behavioral report. Eight models, closed-source and open-weight, ran the same zero-shot protocol over 1,000 binaries with a 600-sample test split.
After inspecting roughly 40 functions per binary, the top model reached 0.805 strict balanced accuracy and 0.855 triage balanced accuracy. It flagged 65% of malware, escalated another 12%, and cleared 94% of benign samples.
Read those numbers as a queue, not a classifier. Clearing 94% of benign samples means an analyst opening the queue sees a small number of items and most of them are malicious. Inspecting 4% of the code means this sits in front of deep analysis and does not replace it.
Numbers across the four papers
5 MCP clients tested for provider misbinding. 8 triage models over 1,000 Windows PE binaries, 600 samples held out. 40 functions inspected per binary, against a mean of 1,000. 0.805 strict balanced accuracy and 0.855 triage balanced accuracy at the top score. 1.8x to 8.7x less AI-integration code with Jac than with the OpenAI SDK.
The queue shape decides your staffing
Models implement different triage policies. High-specificity models produce small, malware-rich escalation queues. Recall-oriented models flag or escalate broadly. Closed-source and open-weight models show up on both ends of that spectrum, so license type tells you nothing about where a model lands.
| Policy | What lands in the queue | Analyst cost per shift | Fits when |
|---|---|---|---|
| High specificity | Few items, mostly malicious | Low volume, high hit rate | Small team, long backlog |
| Recall oriented | Many items, mixed quality | High volume, more false escalations to clear | Regulated review or post-incident sweeps |
The paper's conclusion is that no universal deployment configuration exists. I'd go further: the model is a staffing decision. Pick the policy that matches the queue your team can actually work, then re-run the evaluation on your own binaries, because 94% benign clearance on their sample says nothing about yours.
What a grid operator needs from an agent
RESILAGENT goes after a harder setting: electrical power and energy systems facing hybrid threats that combine cyber intrusion, physical sabotage, and climate stress. Today's monitoring stacks are siloed per domain, so a coordinated event arrives as three unrelated alarms.
The proposal is a three-pillar architecture mediated by a cloud orchestrator and exercised through a closed loop.
| Pillar | Mechanism | What it produces |
|---|---|---|
| Sensing and data intelligence | Agentic AI and multimodal LLMs over cross-modal telemetry | Correlated cyber, physical, and operational signals |
| Resilience analytics and reporting | Digital twins for what-if simulation | N-1 contingency screening, CER/NIS2-aligned evidence |
| Incident response and recovery | Orchestrated playbooks with signed records | Tamper-evident threat intel and an audit trail |
Two scenarios instantiate the design: a transmission operator under coordinated cyber compromise, sabotage, and heatwave, and a distribution operator under a supply-chain compromise during a storm. An IEEE-bus micro-benchmark quantifies each pillar through false-data-injection detection, a cyber-physical fusion lift term, N-1 screening, and anchor cost.
Fusion lift is the number I'd watch. False-data-injection detection on state estimation is a well-studied problem. The claim that needs evidence is whether fusing physical and cyber signals catches attacks that either channel misses alone. That's the whole argument for putting an agent in the loop instead of a better alarm.
Anchor cost is the other number. A permissioned blockchain that signs every decision on the critical path adds latency to a loop running during a heatwave. Keep evidence signing asynchronous or you've built a resilience system with a new single point of delay.
Jac puts routing inside the compiler
The fourth paper is about how you write these systems. In current SDK style, you hand-write code that formats model inputs, threads application state, and dispatches whichever step the model chose. Change the workflow and the glue changes with it. Execution logic splits between your code and framework internals, so the compiler can't see control flow or state dependencies.
Jac is a Python superset built around three constructs: by llm() for typed model operations and tool use, Object-Spatial Programming for workflow structure and state, and visit ... by llm() for model-guided routing that derives choices from executable workflow steps and schedules them.
| Construct | Replaces | Why the compiler cares |
|---|---|---|
by llm() | Hand-written prompt assembly and output parsing | Return types are declared, so a bad model response becomes a type error |
| Object-Spatial Programming | Ad-hoc state dictionaries and graph traversal code | State dependencies become visible to the analyzer |
visit ... by llm() | A dispatcher switch over model output strings | Routing targets are program steps, so reachability is checkable |
Across five benchmarks and five baselines, Jac cut AI-integration code by 1.8x to 8.7x relative to the OpenAI SDK, with competitive task quality and less development effort from coding agents. The two case studies are the more interesting result: speculative execution and service partitioning, both switched on through configuration alone, with program analysis and runtime checks preserving workflow behavior.
Speculative execution as a flag means the runtime can start a likely branch before the router commits. Service partitioning as a flag means the same program can be split across processes without rewriting the orchestration. Neither is possible when routing lives in strings your application interprets.
What trips people up
- Treating tool descriptions as documentation. They arrive from an unverified party and can be rewritten to win selection. Namespace tools per server and reject duplicate names at deploy time.
- Assuming a name collision is required for an attack. Authority wording plus a compatible schema was enough to produce wrong-provider execution with no overlap at all.
- Scoring triage with plain binary accuracy. A strict binary reading punishes escalation, which pushes you toward models that guess instead of models that ask for help. Triage balanced accuracy credits flag-or-escalate for malware and clearance for benign, which matches the decision your analyst makes.
- Deploying one triage model across every queue. Model choice sets the clear/flag/escalate tradeoff, and the study found no configuration that wins everywhere.
- Letting framework glue own your control flow. When routing decisions live in strings your code interprets, the compiler can't reason about reachability, and every workflow change becomes a manual diff across three files.
Bind the provider, not the name
The lesson I'd carry from all four papers is one move applied at four layers: stop trusting a string the model can choose and start checking a reference the runtime can verify. MCP clients should resolve a tool call to a server-and-tool pair the operator approved, not to whichever server wrote the most persuasive description. Triage pipelines should record which model produced a verdict, so the shape of a queue is attributable. Resilience platforms should sign evidence off the critical path. Agent languages should make routing a program construct so the analyzer can see it. Each fix costs a configuration entry and buys you a checkable boundary.
The Bottom Line
- If you're deploying MCP agents with third-party servers, add a provider allowlist and refuse to start when two servers advertise the same tool name. The attack requires no host compromise, so nothing in your existing threat model catches it.
- If you're building malware triage, fix the evidence budget and score with triage balanced accuracy on your own sample. Forty functions per binary and 94% benign clearance means you're building a filter, so budget deep analysis behind it.
- If you're writing agent apps in SDK glue, watch the routing layer. Jac's 1.8x to 8.7x code reduction comes from making routing explicit, and that's where I expect the next round of tooling fights to happen.