Securing agentic ai systems

From samarv/Shanon · View interactive version

Securing agentic ai systems is an AI agent skill from the GitHub repository samarv/Shanon. A framework for protecting AI applications from prompt injection and jailbreaking by treating LLMs as potentially malicious actors. Use this when deploying AI agents with tool access, designing system prompts for customer-facing bots, or conducting security audits for LLM-powered features.

How to use this skill

Skill file

Securing Agentic AI Systems

Traditional AI guardrails (using one LLM to monitor another) are often insufficient against determined attackers. Because you "cannot patch a brain," security must be moved from the prompt level to the architectural level. This framework shifts focus from trying to "fix" the model to containing its potential impact through system-level permissions and the CAMEL (Conditional Authorization for Model Execution Layers) framework.

1. The "Angry God in a Box" Mental Model

When designing any AI system that can take actions (agents) or access data, assume the following:

2. Threat Modeling: Read-Only vs. Agentic

Before building, categorize your system to determine the necessary security depth:

3. Implement System-Level Containment

Do not rely on instructions like "Do not leak the API key." Instead:

4. The CAMEL Framework (Conditional Authorization)

Apply the CAMEL pattern (developed at Google) to restrict agent permissions dynamically based on user intent:

  1. Intent Classification: Use a separate, high-security model/logic to analyze the user's initial prompt.
  2. Dynamic Permissioning: Grant the agent only the permissions required for that specific task.
  3. Action Segregation: Avoid combining "Read" and "Write" permissions in the same session if possible.

The CAMEL Logic Flow

Examples

Example 1: A Math Tutoring App

Example 2: An Email Assistant

Common Pitfalls

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.