AgentSentry

•
1
•

Secures autonomous AI agents against Remote Code Execution (RCE), prompt injection obfuscations, and resource exhaustion with kernel-level sandboxing, while optimizing token costs through advanced caching.

AgentSentry is an enterprise-grade AI gateway proxy designed to provide kernel-level security and performance optimization for autonomous LLM agents. Unlike traditional LLM security solutions that operate solely at the application layer, AgentSentry intercepts malicious tool calls directly at the Linux kernel level via eBPF and `PR_SET_NO_NEW_PRIVS`, effectively blocking subshell injections and privilege escalation attempts before they can ever execute. It features a robust 4-layer defense model that decodes complex prompt injection obfuscations, normalizes homoglyphs, and enforces strict POSIX resource limits, all while maintaining ultra-low latency. Additionally, its suffix-delta prompt caching layer significantly reduces token costs, making AgentSentry an essential security and efficiency layer for any production LLM agent deployment.

主な機能

01Ultra-low latency recursive AST scanning (13.90 µs median) for malicious subshell syntax nodes.
02Kernel-level security via `PR_SET_NO_NEW_PRIVS` and eBPF syscall interception to block rogue shells and privilege escalation.
03Multi-layer defense against prompt injection, including Base64/Hex decoding and Unicode homoglyph normalization.
04POSIX resource exhaustion guards (`RLIMIT_CPU`, `RLIMIT_AS`, `RLIMIT_NPROC`) to prevent denial-of-service attacks.
05Suffix-delta prompt caching that achieves over 50% token cost reduction with minimal overhead.
061 GitHub stars

ユースケース

01Securing autonomous AI agents in production environments against RCE and prompt injection.
02Implementing kernel-level sandboxing for LLM agent tool execution to prevent privilege escalation.
03Optimizing LLM token costs and reducing API latency for frequent prompt prefill scenarios.