More screenshots

    Works with the AI Agents you already use

    Agent Tool Security Least Privilege

    by Mohamed Mostafa Metawea

    1

    Implement least-privilege tool gating and injection containment for secure multi-agent systems.

    $12.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Agent Tool Security Least Privilege

    Agent Tool Security Least Privilege

    Example session with this skill installed

    My agent reads incoming email and can call tools. How do I limit the damage if an email contains instructions meant to hijack it?

    • Read your context and instructions
    • Compiled the agent tool security

    Summary

    Illustrative outline of the skill's advice. This is a sample, not captured output from a live model.

    1. Give the email-reading role only the tools it needs; refuse the rest.
    2. Keep high-privilege tools in a set that cannot be granted, even if the agent asks.
    3. Wrap the email body as untrusted data and tell the model to ignore instructions inside it.
    4. Make side effects wait for human approval, so injected text cannot act on its own.
    5. Add a request size limit on the server.

    Next steps

    1. List your agent roles and their tools.
    2. Move risky tools behind approval.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Secure a tool-calling agent at the permission layer: least-privilege tool lists per role, a privileged set that can never be granted, untrusted-content wrapping for emails and web results, and limits on what injected text can cause. It comes from a small Python reference app (AI Office) and was checked against that code and its tests.

    What it does

    • Gives each role only the tools it needs; other calls are refused and logged.
    • Keeps a privileged set of tools that cannot be granted to an agent.
    • Wraps emails and web content as untrusted data and says so in the system prompt.
    • Limits what content can cause, for example search results can change text an agent writes but not which tools it may use.
    • Adds server-side hygiene such as a request body size limit (64 KB in the reference app).

    How it works

    Each rule is written out with the reasoning and what the reference tests do and do not prove.

    Frameworks & tools

    Plain Python with the standard library. A written playbook, not an installable package.

    Use cases

    • Hardening an agent that reads email or browses the web.
    • Reviewing which tools each agent role really needs.

    Known limitations

    It contains agents at the tool boundary. It does not stop a model from being fooled into writing bad text, and it does not sanitize what the model reads.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill prevents agents from escalating their own permissions or following malicious commands hidden in external data. It solves the problem of soft defenses where system prompts fail to stop sophisticated injection attacks when processing emails or web results.

    You receive a code-verified architecture that defines grantable versus privileged tool sets and implements runtime permission checks. It also includes methods for tagging untrusted data and structural limits that prevent agents from performing unauthorized actions like composing emails to arbitrary addresses.

    To use this skill, you only need an AI agent capable of tool calling and a runtime environment that can implement permission checks. The skill uses standard security patterns like bearer token authentication and server-side headers like nosniff and no-store.

    This skill assumes a human reviewer will actually inspect payloads that are held for approval. While it successfully contains agents at the tool boundary, it does not sanitize content that a human ultimately chooses to approve or prevent models from writing misleading summaries.

    You can ask your agent to apply least-privilege tool gating to your system or to implement untrusted data wrapping for search results. You can also direct it to configure the privileged tool set to ensure specific capabilities can never be granted via automated flows.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.