AI Injection Defense

•
1
•

Builds a robust Prompt-Validator-Executor layer to protect AI agents against prompt injection and malicious tool execution.

This skill implements a comprehensive security framework for AI agent runtimes by establishing a Prompt-Validator-Executor (PVE) architecture. It enforces strict source tagging for all data inputs—including user messages, web retrieval, and memory—to ensure that the model can distinguish between trusted and untrusted sources before executing any tools. By incorporating allowlists, memory-write guardrails, and red-team testing based on Greshake exploit classes, it prevents prompt injection, persistent memory poisoning, and unauthorized system access, providing a critical safety layer for autonomous agents with tool-calling capabilities.

Key Features

01Red-team test suite targeting the five Greshake exploit classes
02Pre-execution tool call validation based on content trust levels
031 GitHub stars
04Source-tagging provenance system for all content and message history
05Configurable allowlists and blocklists for URL and file path navigation
06Memory-write guardrails to prevent persistent directive poisoning

Use Cases

01Securing AI agents that have access to web search or external retrieval tools
02Implementing human-in-the-loop confirmation for sensitive shell or file operations
03Protecting long-term agent memory from being poisoned by untrusted third-party content