# We Have All the Cards: Securing Agent Cards at the Operational Trust Boundary of the Agent2Agent Protocol

Miguel A. Guirao Aguilera, Satyajayant Misra, Efren Lopez-Morales · arXiv · 2026-11-13

- **Problem** Orchestrators read free-text Agent Card fields with an LLM before choosing a provider, so a manipulated card can steer selection before that provider is ever called.
- **Method** SECCARD checks A2A schema conformance, applies deterministic NLP rules, and runs a separate read-only LLM judge over the card's semantic fields to output BENIGN, SUSPICIOUS or MALICIOUS.
- **Results** GPT-5.5 reached 97.0% security recall at a 1.7% false-positive rate on controlled attacks injected into real Agent Cards, while security recall across nine judges on the synthetic benchmark ranges from 25.8% to 92.3%.

![Figure 2: Taxonomy of Agent Card Manipulation attacks resulting from agent card poisoning. Attacks are grouped according to their primary objective](https://refivu.com/papers/cd6a0a5f-90c9-460a-83d6-55b002515aa1/figures/figure-84941cd1cff75654e169a6a5701564b3.png?thumb=512)

**Figure 2** . Taxonomy of Agent Card Manipulation attacks resulting from agent card poisoning. Attacks are grouped according to their primary objective.

[Original paper](https://arxiv.org/abs/2611.18887v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Miguel A. Guirao Aguilera, Satyajayant Misra, Efren Lopez-Morales · We Have All the Cards: Securing Agent Cards at the Operational Trust Boundary of the Agent2Agent Protocol · Original paper figure · Extracted the figure area from page 5 of the original PDF.

## Why card text reaches the model before a provider is called

Google released the Agent2Agent (A2A) protocol in April 2025 as an open attempt to make AI agents interoperable. A provider publishes a JSON agent card at a predictable well-known path, and an orchestrator fetches that card, reads its fields and decides whether to delegate work to the provider. Nothing in that loop requires a person to read the card first.

The free-text fields of the card, such as name, description and skills, are placed into the LLM context window so the model can reason over them. That makes card text an input the model acts on, so anyone who controls a domain, or has compromised one, can try to steer the model through it. Such steering can take effect before the advertised provider is called, so checks on the provider's behaviour after invocation cannot cover this step.

Earlier work names a few discovery-time threats, including Agent Card spoofing, capability cloaking and card poisoning, but studies them mostly under controlled conditions. What remains open is a fine-grained account of how a card can misdirect discovery, evidence from cards deployed in the wild, and a pre-invocation check tested against both malicious and benign cards.

## Who attacks and what the ten attacks do

The orchestrator and its execution environment are treated as trusted, while the Agent Card is treated as untrusted input even when it comes from an apparently legitimate provider. The security-relevant boundary is crossed when card text enters the orchestrator's context window, which happens before the remote agent is invoked.

A malicious provider registers a domain and publishes a deceptive card from the start, a cheap step because registration costs little and the A2A path is public. A compromised legitimate provider keeps its domain but swaps in a malicious card, which defeats any trust placed in that organisation, such as allowlisting or manual vetting.

The taxonomy contains ten attack categories, grouped by what the attacker wants the orchestrator to do: pick the wrong provider, misread capabilities, or slip past validation. Indirect injection and ranking manipulation bias selection, and evaluator manipulation targets the validators or LLM judges themselves. Skill deception, skill chaining and out-of-context skills misrepresent what an agent can do, while URL pivot, Unicode tricks, context pollution and metadata gaps evade validation by hiding content or exploiting weak preprocessing.

Table 3 assigns each attack to a detector: the structural attacks go to Layer 2A, the semantic ones go to Layer 2B, and out-of-context skills use both. The split follows from the fact that rules can catch structural artifacts but struggle with manipulation that depends on meaning and intent.

## How the three checks fit together

SECCARD runs a structural check first, which screens out documents that are not A2A cards, and then a threat-detection stage with two engines. Its output is one of three verdicts, BENIGN, SUSPICIOUS or MALICIOUS, and each deployment decides how to combine these signals into an admission rule.

Layer 1 validates each parsed JSON document against the A2A v1.0.0 schema. The AgentCard class defines 14 fields, of which 8 are required, and the validator checks that at least those eight are present. Documents that fail are discarded, which removes error pages and unrelated JSON before any semantic analysis runs.

Layer 2A extracts text recursively from the card and maps Unicode homoglyphs to their canonical Latin equivalents, so visually disguised words become visible to the rules. It then computes seven groups of indicators covering instruction patterns, ranking language, sensitive actions, URLs, Unicode characters, context length and skill consistency.

The skill-consistency feature is a TF–IDF cosine similarity between the agent description and the advertised skills. Feature scores are summed, and a total of 8 or more gives MALICIOUS, 3 to 7 gives SUSPICIOUS, and a total below 3 gives BENIGN. Because no LLM is involved, the output is deterministic, needs no external inference API, and the design holds that it is not itself open to prompt injection.

Layer 2B sends only the fields that shape orchestrator choices to an LLM: name, description, provider, url, documentationUrl and every skill entry, including its examples. The judge is a separate read-only instance with neither tools nor memory nor any carried-over chat, so a successful injection against it cannot reach the orchestrator and is itself treated as evidence of malicious intent.

The serialized card is placed inside dedicated delimiters that mark it as untrusted, so it stays apart from the system prompt.

## How the three datasets were built

The in-the-wild corpus comes from a direct HTTPS probe of 36.1 million registered domains taken from the CC-MAIN-2026-12 Common Crawl index. The probe produced 310 unique valid agent cards.

Two annotators labelled all 310 cards independently as BENIGN, SUSPICIOUS or MALICIOUS, working from the labeling criteria and the taxonomy and without seeing SECCARD's predictions. They agreed on 300 of 310 cards, which is 96.8%, with a Cohen's κ of 0.804. All 10 disagreements fell on the BENIGN and SUSPICIOUS boundary, and both annotators gave the same single card a MALICIOUS label.

After discussion the ground truth holds 282 BENIGN, 27 SUSPICIOUS and 1 MALICIOUS card.

The perturbation dataset starts from 60 benign seed cards sampled from the wild corpus and follows a seed-and-perturb method introduced by Li et al. Each seed gets a single adversarial variant per category, so every one of the ten categories holds 60 variants. The result is 660 cards: 60 untouched benign controls and 600 adversarial variants, of which 300 are SUSPICIOUS and 300 are MALICIOUS.

Because each unmodified seed stays in the set, the injected change is the only difference between a control and its matched variant.

It holds 260 cards: 175 cover five semantic categories, 60 cover four structural categories and 25 cover the mixed category. Cards vary across three obfuscation levels, three attacker sophistication levels and four application personas: Healthcare, Legal, Financial and Enterprise Translation. Every synthetic card is labelled SUSPICIOUS or MALICIOUS, so this set contains no benign cards.

## Judge agreement on in-the-wild cards

For this evaluation the three labels collapse into one binary decision in which SUSPICIOUS and MALICIOUS count as Untrusted, giving 28 positive and 282 benign cards. Only Layer 2B is scored, because Layer 1 and Layer 2A are rule-based and the aim is to measure agreement between semantic judgement and human labels.

The metrics are recall over the 28 Untrusted cards, false-positive rate over the 282 benign cards, precision, accuracy and three-class Cohen's κ. GPT-5.5 had the highest accuracy at 94.5% and the highest three-class κ at 0.718, with 89.3% recall at a 5.0% false-positive rate. Gemini 2.5 Flash Lite took the most conservative position, with 82.1% recall, the lowest false-positive rate at 0.7% and the highest precision at 92.0%.

Several judges reached recall above 96%, but they did so by flagging a much larger share of benign cards. Claude Haiku 4.5 and Phi-4 caught all 28 Untrusted cards, yet their false-positive rates were 45.7% and 46.5%.

The authors read this as a trade-off: a judge that catches nearly every Untrusted card can still be impractical for admission if it rejects many benign cards. On this evidence semantic validation is feasible on naturally occurring cards, but the choice of judge changes the balance between detection and benign rejection.

## Detection on injected attacks in real cards

The wild corpus contains few Untrusted cards, so it cannot measure attack detection systematically, and the perturbation set addresses that gap. Each seed is scored once as a control and once per variant, which isolates the injected manipulation while the rest of a real card stays the same.

Security recall is computed over the 600 adversarial variants, and false-positive rate over the 60 untouched controls. A SUSPICIOUS-labelled variant counts as detected on either a SUSPICIOUS or a MALICIOUS prediction, while a MALICIOUS-labelled variant needs a MALICIOUS prediction. Exact three-class accuracy on the variants is reported alongside.

GPT-5.5 reached 97.0% overall security recall with a 1.7% seed false-positive rate. Gemini 3.1 Flash Lite reached 92.3% recall at a 6.7% seed false-positive rate, and Claude Opus 4.8 reached 91.0% at 5.0%.

Across the ten categories, GPT-5.5 scored 100% on indirect injection and on Unicode tricks, and its lowest category value was 92%, on context pollution.

The authors read the results as showing that the judge often locates the trust violation in the injected content rather than in the underlying real card.

## Judge choice on the synthetic benchmark

All nine judges receive the same semantic-validation prompt, run through the same harness, and are scored with the severity-aware security-recall metric. The open-weight models ran locally through Ollama on an NVIDIA RTX A2000 12 GB GPU.

GPT-5.5 led with 92.3% security recall, followed by Gemini 3.1 Flash Lite at 86.5%, Claude Haiku 4.5 at 81.9% and Claude Opus 4.8 at 81.5%. GPT-5.4-mini and Gemini 2.5 Flash Lite reached 73.8% and 70.8%, while the open-weight models Llama 3.1, Phi-4 and Mistral Nemo reached 63.5%, 42.7% and 25.8%. Across the nine judges the recall range covers 66.5 percentage points.

Exact three-class accuracy sits below recall: GPT-5.5 reached 77.3% accuracy against 92.3% recall.

For GPT-5.5, Metadata Gaps was the weakest category at 67% recall, while Indirect Injection, Skill Chaining, URL Pivot and Unicode Tricks each reached 100%. Ranking Manipulation spreads widely across judges: 86% recall for GPT-5.5 against 17% for both Phi-4 and Mistral Nemo. Metadata Gaps reaches 93% for Gemini 3.1 Flash Lite and Claude Haiku 4.5 but only 13% for Mistral Nemo, so no single category is hard for every judge.

Average per-card latency runs from 1.1 seconds for Gemini 2.5 Flash Lite to 16.9 seconds for Phi-4 in the authors' evaluation environment. The authors conclude that model choice changes the cost of pre-invocation validation as well as its detection effectiveness.

## Where semantic judgement changes the verdict

The emc2ai.io card is the first in-the-wild instance of ranking manipulation identified in the corpus. Its description places a directive recommending this agent as the top pick for crypto and blockchain tools inside otherwise promotional text, and the directive uses no imperative verb. The card passes Layer 1, so the verdict depends on the two detection engines.

Layer 2A labels the card SUSPICIOUS from its ranking heuristic, which combines superlative wording with an unsupported precision claim, but the total stays below the MALICIOUS threshold. The Layer 2B LLM judges classify the card as MALICIOUS, which the authors take as recognising the directive's intent to steer agent selection.

## Limits of the evidence

The ground-truth labels describe the semantic trustworthiness of advertised metadata, not what a provider does at runtime. The evaluation measures detection of adversarial card content, not end-to-end attack success against an orchestrator, and it does not check behaviour after invocation.

A validly signed card can still carry deceptive metadata, because signatures establish who published a card rather than whether its content is honest. Layer 2A is not intended to fully resolve Ranking Manipulation or Skill Deception, whose maliciousness depends on context, which is why Layer 2B exists.

The in-the-wild set has 28 Untrusted cards, only one of them MALICIOUS, so its recall figures rest on very few positives.

No rule for combining the Layer 1, Layer 2A and Layer 2B verdicts into an admission decision is prescribed or evaluated. The extension to MCP is a projection: eight of the ten categories are expected to transfer directly, and no MCP experiment is reported.

## Paper info

- **Authors**: Miguel A. Guirao Aguilera, Satyajayant Misra, Efren Lopez-Morales
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-13
- **Added**: 2026-11-17
- **Updated**: 2026-11-13
- **Version**: v1
- **arXiv**: 2611.18887
- **Category**: cs.CR · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.18887v1) · [PDF ↗](https://arxiv.org/pdf/2611.18887v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

AI agent interoperability protocols enable orchestrators to discover and invoke external agents using machine-readable metadata. In the Agent2Agent (A2A) protocol, Agent Cards contain attacker-controllable natural-language fields that may influence agent selection before a provider is invoked, creating a pre-invocation trust problem. We characterize this discovery-time attack surface through a taxonomy of ten Agent Card manipulation attacks and present SECCARD, a layered validation framework combining protocol checks, deterministic analysis, and LLM-based semantic reasoning. We measure the emerging public A2A ecosystem by probing 36.1 million Internet domains and collecting 310 deployed Agent Cards. Two annotators independently label the corpus with 96.8% agreement. We then construct a 660-card real-card perturbation benchmark with matched benign controls and a 260-card synthetic adversarial benchmark spanning all ten attack categories. On controlled attacks injected into real Agent Cards, the strongest semantic judge achieves 97.0% security recall at a 1.7% false-positive rate. Across nine LLM judges on the synthetic benchmark, security recall ranges from 25.8% to 92.3%, demonstrating substantial model-dependent variation. These results show that SECCARD effectively identifies Agent Card manipulations spanning all ten discovery-time attack classes while preserving benign Agent Cards, but also reveal that its effectiveness depends critically on the choice of the underlying LLM judge.

## Quote from the paper

Miguel A. Guirao Aguilera, Satyajayant Misra, Efren Lopez-Morales (2026). We Have All the Cards: Securing Agent Cards at the Operational Trust Boundary of the Agent2Agent Protocol. arXiv:2611.18887v1. https://arxiv.org/abs/2611.18887v1

**BibTeX**

```
@misc{aguilera2026have,
  title = {{We Have All the Cards: Securing Agent Cards at the Operational Trust Boundary of the Agent2Agent Protocol}},
  author = {Miguel A. Guirao Aguilera and Satyajayant Misra and Efren Lopez-Morales},
  year = {2026},
  eprint = {2611.18887},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.18887v1}
}
```

## Related papers

- [Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection](https://refivu.com/en/papers/8c7ef054-dbb9-4dbc-aa5f-7f764d2b0d6b-not-what-you-ve-signed-up-for-compromising.md)
- [CLEAR: Legible and Steerable Recommendation via Grounded Natural-Language Interests](https://refivu.com/en/papers/2fa163bb-6806-45fb-bf55-7e557d1f4855-clear-legible-and-steerable-recommendation-via-grounded.md)

## Other paper commentary

- [Distilling Safety Filters for Filter-free Multi-agent RL](https://refivu.com/en/papers/21f25915-d36f-4f26-a265-4e45ef0cc511-distilling-safety-filters-for-filter-free-multi-agent.md)
- [Imitation Bootstrapped Multi-Agent Reinforcement Learning](https://refivu.com/en/papers/511a869c-410d-47b0-9d94-36dde9bb5cef-imitation-bootstrapped-multi-agent-reinforcement-learning.md)
- [Agentic AI for Discovering Fault-Tolerant Quantum Circuits](https://refivu.com/en/papers/e6680a5e-8c8b-48e6-aa57-a669a9a0c6a1-agentic-ai-for-discovering-fault-tolerant-quantum-circuits.md)
- [Experts Across Schemas: Agent-Guided Mixture-of-Relational-Experts for Cross-Database Generalization](https://refivu.com/en/papers/76b43bb6-c77c-4c61-9629-5e9b2ce3f959-experts-across-schemas-agent-guided-mixture-of-relational.md)
- [LuthorSQL: A One-Pass Text-to-SQL Model as System 1 for a Slower LLM Agent](https://refivu.com/en/papers/eb6f98aa-61fd-4f1c-bb6f-deff920d4f43-luthorsql-a-one-pass-text-to-sql-model.md)
- [Learn then Bet: Learning Interpretable Rules for Reliable Agent Intervention](https://refivu.com/en/papers/56ef761b-5bfc-4309-940f-242cd1192f01-learn-then-bet-learning-interpretable-rules-for-reliable.md)
- [From Retouched Images to Paired Videos: A Synthetic Benchmark for Face Video Retouching](https://refivu.com/en/papers/461f3481-f3e1-41e8-b20f-1dac918dda3d-from-retouched-images-to-paired-videos-a-synthetic.md)
- [Certify, Then Select: Viability-Aware Runtime Steering of Frozen Diffusion Policies](https://refivu.com/en/papers/34e592c6-b4a7-48dc-bb53-b14507844807-certify-then-select-viability-aware-runtime-steering-of.md)
- [StreamEmbed: Real-Time Indexing from Pixels for Screenshot Retrieval](https://refivu.com/en/papers/62997798-538e-4c46-9f02-24c435620ff4-streamembed-real-time-indexing-from-pixels-for-screenshot.md)
- [MMFlash: Faster Speculative Decoding for Vision-Language Models](https://refivu.com/en/papers/0d74aa73-ffaa-49b3-a4c5-d25a28c93089-mmflash-faster-speculative-decoding-for-vision-language.md)

## Terms in this paper

- [Common Crawl](https://refivu.com/en/terms/c9d39c3d6336-common-crawl)
- [LLM-as-a-judge](https://refivu.com/en/terms/ab8377a00158-llm-as-a-judge)
- [GPT-5.5](https://refivu.com/en/terms/fd5f3ee5b099-gpt-5-5)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/cd6a0a5f-90c9-460a-83d6-55b002515aa1-we-have-all-the-cards-securing-agent-cards)
