Ai agent tool abuse

From NoorQureshi/security-skills · View interactive version

Ai agent tool abuse is an AI agent skill from the GitHub repository NoorQureshi/security-skills. Abuse an LLM agent's tools/functions — coerce it to call tools with attacker-chosen args for SSRF, RCE, data exfil, or privilege abuse. Load when the target is an agent with tools/ function-calling/plugins, MCP servers, code interpreters, or "the assistant can do X". Signals: function-calling, tool

How to use this skill

Skill file

LLM agent / tool abuse (excessive agency)

When it applies

The target isn't just a chatbot — it can act: call functions, browse, run code, query

databases, send email, hit internal APIs, or chain MCP tools. Impact jumps from "bad text" to

real actions taken with the agent's privileges.

Why it works

The model decides which tool to call and with what arguments, driven by text it can't fully trust

(user input or fetched content). If tools are over-permissioned or arguments aren't validated,

attacker text steers real actions — the classic "confused deputy".

Method

  1. Enumerate the tools: get the agent to reveal its tools/functions and schemas (often it

just lists them), or read the app/MCP config.

  1. Coerce a call (direct or via ai-prompt-injection/ai-rag-poisoning): craft input so the

agent invokes a tool with your arguments.

  1. Route to impact:
  1. Chaining: poisoned content the agent reads later triggers the tool call (indirect, multi-user).

Gotchas

Verify success

The agent performs an attacker-directed action via a tool — an SSRF hit, code execution, data

exfiltrated, or a privileged action taken — traceable to your input.

References

OWASP LLM Top 10 (2025) LLM06/LLM01; MCP security guidance; agent "confused deputy" research.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.