Skip to content
Align your AI

The problem space · Tools · Prompt injection

Align your AI Tools against prompt injection

A tool's output or a third-party add-on can hand an agent instructions that it then carries out.

Tools
the apps and add-ons it can use
Prompt injection
orders hidden in what it reads

Ways it goes wrong

An agent treats tool output, and a tool's own instructions, as text it may act on. A planted bug report or a malicious add-on can turn that text into orders12. Invariant notes that many users let their agent use every tool without asking1.

What people do about it

Invariant recommends limiting an agent to the repositories a task needs1. Cisco released an open-source scanner that checks agent skills before use2.

  • Give each tool the least access it needs

    Limits an agent's token to the repositories or folders a single task needs.

  • Scan add-ons before installing

    Checks a skill's or server's files and descriptions for hidden instructions and outbound calls before an agent loads it.

  • Confirm calls that move data out

    Asks a person before an agent posts, sends or uploads anything outside the user's own space.

Where we touch it

No study of ours covers this pair yet.

Sources

  1. Invariant Labs, “GitHub MCP Exploited: Accessing private repositories via MCP”, 2025-05-26. https://invariantlabs.ai/blog/mcp-github-vulnerability. Accessed 2026-10-14. ↩ ↩2 ↩3

  2. Cisco Blogs, “Personal AI Agents like OpenClaw Are a Security Nightmare”, 2026-01-28. https://blogs.cisco.com/ai/personal-ai-agents-like-openclaw-are-a-security-nightmare. Accessed 2026-10-14. ↩ ↩2