agrid security gate

    1

    Deterministic sub-3ms prompt injection defense and multi-chain spend policy circuit breakers for AI agents.

    Free

    Security scanned

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    agrid security gate

    Example session with this skill installed

    Analyze this Python payload for safety before execution: import os; os.system('rm -rf /')

    • Read your context and instructions
    • Compiled the agrid security gate

    The payload was intercepted by the AST guard. A security violation was detected, and execution has been aborted to prevent system damage.

    Security Inspection Report

    MetricResult
    Safety Verdict🚨 BLOCKED
    Execution Latency1.4ms
    Detection MethodDeterministic AST Static Analysis
    Network EgressNone (Local Execution)

    Violations Detected

    • CRITICAL: Unauthorized subprocess call detected (os.system).
    • HIGH: Attempted filesystem manipulation with root-level intent.
    • MEDIUM: Use of restricted module os without policy override.

    Spend Policy Status

    • Network: N/A (Internal System Call)
    • Current Session Spend: $0.00
    • Daily Limit Remaining: $200.00

    Next steps

    • Review the agent's recent prompt history to identify the source of the injection attempt.
    • Update your local security-gate-x402 policy to explicitly whitelist safe os functions if required.
    • Check the A.GRID dashboard for an aggregated view of blocked threats across your agent fleet.

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

    About this skill

    Autonomous agents are vulnerable to prompt injection and runaway wallet drains that can compromise systems in milliseconds. This skill provides a deterministic defense layer that blocks malicious code and enforces financial guardrails without relying on the LLM to police itself.

    What it does

    • AST Static Inspection analyzes tool calls and code execution in under 2.8ms to detect malicious patterns.
    • Injection Defense prevents jailbreaks and unauthorized system commands from reaching your runtime.
    • Egress Control blocks os.system, subprocess calls, and dynamic imports to stop data exfiltration.
    • Spend Circuit Breakers enforces local and on-chain hard caps on transaction volume and daily limits.
    • Multi-Chain Support validates economic invariants across Solana, Polygon, Base, and Arbitrum.

    How it works

    1. Install the package via npm or pip to add the security layer to your agent environment.
    2. Register the plugin within your runtime, such as ElizaOS, to intercept incoming tool payloads.
    3. Wrap wallet actions with the Spend Policy engine to check against cryptographic state verifications before execution.
    4. Inspect payloads using the AST guard to block unauthorized reflection or network requests locally.

    Frameworks & tools

    This skill supports ElizaOS, LangChain, AutoGPT, and CrewAI. It integrates with Solana (PDA Hard Caps), Polygon (OMS Policy Engine), Base, and Arbitrum.

    Why this beats prompting it yourself

    Prompt-based safety is non-deterministic and easily bypassed by sophisticated injections. This skill uses local AST analysis and on-chain invariants that run independently of the LLM, ensuring security remains intact even if the model is compromised.

    Use cases

    • Prevent agents from executing curl or sh commands during autonomous coding tasks.
    • Limit an agent's daily Solana spend to a specific dollar amount to mitigate risk.
    • Block dynamic imports and reflection attacks in multi-agent Python environments.

    Known limitations

    Requires local installation of the Python or TypeScript package. On-chain spend policies require integration with specific A.GRID contract addresses.

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

    Requires local package installation via npm or pip. Spend policies are limited to Solana, Polygon, Base, and Arbitrum networks.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 7 days ago

    • Free with an Agensi account

    Permissions

    Terminal / Shell
    Network Access
    Listed7 days ago

    What's inside

    Frequently Asked Questions

    Standard LLM safety prompting can be bypassed by "jailbreaks," but this skill uses deterministic AST (Abstract Syntax Tree) inspection to block malicious code at the runtime level before it ever executes.

    Absolutely. You can set specific hard caps on transaction volume and daily limits across Solana, Polygon, Base, and Arbitrum to prevent runaway wallet drains even if the agent's logic fails.

    The security layer is designed for high-performance autonomy, performing static inspection and code analysis in under 2.8ms to ensure your agent's response time remains virtually unchanged.

    The skill includes native support for ElizaOS, LangChain, AutoGPT, and CrewAI, with packages available for both Python and TypeScript environments.

    The purchase includes the full Python/TypeScript package for local installation, documentation for integration, and access to A.GRID contract addresses for on-chain spend policy enforcement.

    While the AST inspection and egress control work locally on any system, the Spend Circuit Breaker requires integration with specific A.GRID contract addresses to verify on-chain economic invariants.

    New in Security

    Free