New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

arp-guard

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arp-guard

Agent Runtime Protection — LLM-assisted behavioral monitoring, anomaly detection, and enforcement for AI agents.

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

OpenA2A: Secretless · HackMyAgent · ABG · AIM · ARP · DVAA

arp-guard — Agent Runtime Protection

npm License: Apache-2.0 OASB

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-guard

Quick 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

LayerCostCoverage
L0: RulesFreePattern matching on every event
L1: StatisticalFreeZ-score anomaly detection
L2: LLM-AssistedBudget-controlledMicro-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

Keywords

ai

FAQs

Package last updated on 23 Mar 2026

Related posts