arp-guard
v0.3.0
Published
Agent Runtime Protection — LLM-assisted behavioral monitoring, anomaly detection, and enforcement for AI agents.
Maintainers
Readme
OpenA2A: Secretless · HackMyAgent · ABG · AIM · ARP · DVAA
arp-guard — Agent Runtime Protection
3-layer intelligent runtime protection for AI agents. Monitors processes, network, filesystem, and AI-layer communications (prompts, MCP tool calls, A2A messages) with rule-based, statistical, and LLM-assisted threat detection.
Install
npm install arp-guardQuick Start
import { AgentRuntimeProtection } from 'arp-guard';
const arp = new AgentRuntimeProtection({ agentName: 'my-agent' });
await arp.start();
// Agent runs normally — ARP monitors in background
// Process spawns, network connections, file access, prompts all monitored
await arp.stop();AI-Layer Scanning
import { scanText, ALL_PATTERNS } from 'arp-guard';
const result = scanText(userInput, ALL_PATTERNS);
if (result.detected) {
console.log('Threats found:', result.matches.map(m => m.pattern.id));
}Detects prompt injection, jailbreaks, data exfiltration, MCP exploitation, and A2A identity spoofing across 19 pattern categories.
Intelligence Stack
| Layer | Cost | Coverage | |-------|------|----------| | L0: Rules | Free | Pattern matching on every event | | L1: Statistical | Free | Z-score anomaly detection | | L2: LLM-Assisted | Budget-controlled | Micro-prompts for ambiguous events |
99% of events resolve at L0/L1. Default L2 budget: $5/month.
Architecture
This package re-exports ARP from HackMyAgent. All implementation lives in hackmyagent/src/arp/. Use this package when you want ARP as a standalone dependency without importing HackMyAgent directly.
Benchmark
Evaluated by OASB — 222 standardized attack scenarios mapped to MITRE ATLAS. 100% detection coverage on the current test suite.
License
Apache-2.0
