#1872·garak

feature: MCP tool-use security probe for agent tool misuse

Author: tcconnallyCreated Jun 20, 2026Updated Sep 28, 2026
Labelsneeds-triage

Feature: MCP tool-use security probe

Problem

garak tests LLMs for prompt injection, jailbreaking, and encoding attacks but has no probes targeting tool-use security. As AI agents connect to MCP servers (databases, APIs, filesystems), tool misuse is the primary attack vector.

Proposal

A new probes.tooluse module testing whether LLMs can be manipulated into:

  1. Tool Permission Escalation: using readOnlyHint tools destructively
  2. Tool Chain Abuse: chaining safe tools for unsafe outcomes
  3. MCP Server Phishing: connecting to malicious MCP servers
  4. Credential Exfiltration: extracting secrets through tool parameters

Reference

MCTS (github.com/Perseus-Computing-LLC/MCTS) scans MCP server registries and found 26%+ of servers request excessive tool permissions. A garak probe testing LLM tool-use boundaries would complement this ecosystem analysis with model-level validation.

Happy to contribute a PR if there's interest.