SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2508.02110 · NeurIPS · 2025

Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools

Zhihao Li, Kanghua Mo, Li Hu, Yucheng Long, Li Hu<lily23, Generation Traceability

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 5 functions out of this paper's own repositories and ran 4 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
SEAIC-M/AMA — 4 of 5
FunctionStatusWhere it lives
achat Ran SEAIC-M/AMA/generate_tool_metadata.py
pointer only (licence: NONE) · get_code("cada939d80cc1284")
achat_and_get_json Ran SEAIC-M/AMA/generate_tool_metadata.py
pointer only (licence: NONE) · get_code("89022d247c213dec")
generate_target_attack_tool Ran SEAIC-M/AMA/generate_tool_metadata.py
pointer only (licence: NONE) · get_code("cc60147ddda0a3d8")
get_target_prompt Ran SEAIC-M/AMA/generate_tool_metadata.py
pointer only (licence: NONE) · get_code("12da1b173630d6d1")
eval_from_json Not yet run SEAIC-M/AMA/generate_tool_metadata.py
pointer only (licence: NONE) · get_code("4f6baca6d9aa4f6c")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Large language model (LLM) agents have demonstrated remarkable capabilities in complex reasoning and decision-making by leveraging external tools. However, this tool-centric paradigm introduces a previously underexplored attack surface, where adversaries can manipulate tool metadata-such as names, descriptions, and parameter schemas-to influence agent behavior. We identify this as a new and stealthy threat surface that allows malicious tools to be preferentially selected by LLM agents, without requiring prompt injection or access to model internals. To demonstrate and exploit this vulnerability, we propose the Attractive Metadata Attack (AMA), a black-box in-context learning framework that generates highly attractive but syntactically and semantically valid tool metadata through iterative optimization. The proposed attack integrates seamlessly into standard tool ecosystems and requires no modification to the agent's execution framework. Extensive experiments across ten realistic, simulated tool-use scenarios and a range of popular LLM agents demonstrate consistently high attack success rates (81%-95%) and significant privacy leakage, with negligible impact on primary task execution. Moreover, the attack remains effective even against prompt-level defenses, auditorbased detection, and structured tool-selection protocols such as the Model Context Protocol, revealing systemic vulnerabilities in current agent architectures. These findings reveal that metadata manipulation constitutes a potent and stealthy attack surface. Notably, AMA is orthogonal to injection attacks and can be combined with them to achieve stronger attack efficacy, highlighting the need for execution-level defenses beyond prompt-level and auditor-based mechanisms. Code is available at https://github.com/SEAIC-M/AMA.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2508.02110")
get_code_for_paper("2508.02110")
have("2508.02110")

Connect an agent — have() is free.