X402 Git

agent-workspace-guard-sdk

In-process filesystem confinement and command-policy guardrails for autonomous coding agents.

Top level of the repository
SizeFolderInside
15.3 kBsrc/4 source files
11.8 kBtests/2 test files
2.5 kBexamples/1 example
30.4 kB(root)15 docs · 2 config files
26 files · 59.9 kB · computed 2026-09-16
SizePath
30 B.gitignore
3.9 kBADVERSARIAL_TEST_MATRIX.md
1.4 kBAGENT_EVAL.md
3 kBARCHITECTURE.md
570 BCHANGELOG.md
506 BDEPENDENCIES.md
1.7 kBLICENSE.md
1.3 kBLIMITATIONS.md
2.5 kBPREVIEW.md
1.9 kBQUICKSTART.md
2.6 kBREADME.md
632 BSECURITY_EVIDENCE.md
775 BSUPPORT.md
1.7 kBTEST_REPORT.md
213 BTHIRD_PARTY_NOTICES.md
3.6 kBTHREAT_MODEL.md
417 BVERIFICATION.md
1.1 kBcommercial-manifest.json
2.5 kBexamples/agent-runner-example.mjs
2.5 kBrelease-manifest.json
5.1 kBsrc/command-policy.mjs
6.8 kBsrc/filesystem-shield.mjs
1.1 kBsrc/index.d.ts
2.3 kBsrc/index.mjs
7.1 kBtests/adversarial-red-team.test.mjs
4.6 kBtests/adversarial-security.test.mjs
computed 2026-09-16 21:07 UTC · analyzer 0.1.0

Already bought this?

View your purchases

README

Agent Workspace Guard SDK

Filesystem confinement and command-policy guardrails for autonomous coding agents.

Tests License Zero Runtime Deps


1. WHAT IS THIS?

The Agent Workspace Guard SDK is a lightweight, zero-dependency Node.js developer security library that prevents autonomous AI coding agents (such as tool-calling LLMs, Cursor extensions, Claude Code tools, or custom agents) from escaping their designated working directory or running dangerous host commands.

2. WHO IS IT FOR?

  • Developers building autonomous coding agent workflows.
  • DevSecOps engineers integrating AI agent tools into developer machines.
  • SaaS platforms allowing AI agents to read and modify project files locally.

3. WHAT PROBLEM DOES IT SOLVE?

AI agents given shell and file-access tools can be tricked via prompt injection or unexpected planning into reading .env credentials, following symlinks outside the workspace, escaping with ../../, or executing destructive commands like rm -rf / or sudo. Heavy cloud microVMs (E2B, Modal) introduce 200ms+ network latency and $50–$200/mo cloud bills. This SDK provides in-process, sub-millisecond confinement directly in your Node.js runtime.

4. WHY PAY FOR IT INSTEAD OF BUILDING IT?

Writing ad-hoc regex or path checks fails on real-world edge cases: symlink race conditions (TOCTOU), Windows backslash traversal evasion (..\..\), multi-dot evasion (....//), shell chaining metacharacters (;, &&, |, $()), and command redirection (<, >). This SDK includes an independently verified, 110-case adversarial red-team test suite covering these exact attack vectors.

5. WHAT IS VERIFIED?

  • 110 / 110 Adversarial Attack Cases Passed: Covering path traversal, symlink escapes, secret files, command chaining, and destructive command patterns.
  • Zero External Runtime Dependencies: Built strictly on Node.js standard library (node:fs, node:path, node:crypto).
  • Cryptographic Audit Log: Every command evaluation is chained using SHA-256 digests.

6. HOW DO I RUN IT?

# 1. Run the 110-case adversarial security test suite
node --test tests/adversarial-red-team.test.mjs

# 2. Run the interactive agent runner demonstration
node examples/agent-runner-example.mjs

Security scan report

Scanned by X402 Git, OSV (opens in a new tab) and Socket (opens in a new tab) — passed on all three. Findings from X402 Git are listed below.

secrets
none found
X402 Git
size limits
within caps
X402 Git
known malware
no dependency manifests to check
OSV
known vulnerabilities
no dependency manifests to check
OSV
dependency behaviour
no dependency manifests to check
Socket
instruction smuggling
none found
X402 Git
what it can do
listed below
X402 Git

What this can do

Tools
none
Runs
nothing
Talks to
  • attacker.com
  • malicious.org
  • malicious.sh
Reads
no environment variables
At install
nothing runs
Links to
  • attacker.com
  • img.shields.io
  • malicious.sh
Findings (3)
  • LOWtests/adversarial-red-team.test.mjs — Talks to attacker.com
  • LOWtests/adversarial-security.test.mjs — Talks to malicious.org
  • LOWtests/adversarial-red-team.test.mjs — Talks to malicious.sh

Releases 1

  1. v1.0.02026-09-16

    release: v1.0.0 commercial source edition

$149updates $39

Buy — go to the order block