Layer 3 · Deterministic Information-Flow Containment

Once an AI agent reads untrusted or secret data, its capabilities can only shrink.

NetDIFT is a zero-LLM Rust gateway implementing network-layer Dynamic Information Flow Tracking (DIFT) over HTTP, MCP JSON-RPC, A2A delegation, and UDP DNS. Prompt injection cannot re-escalate capabilities—the only release valve is a single-use, strictly scoped human declassification token.

~5.9 µs
Mean Wire Overhead
100.0%
Attack Containment Recall
0.0%
Clean-Agent FPR
$0.00
LLM Judge Spend
NetDIFT Lattice and Wire Enforcement Architecture
2D Epistemic Lattice (Biba × Bell-LaPadula) enforced across HTTP/MCP/A2A proxy and UDP DNS entropy guard. Open full zero-CDN forensic report →

Enforcement Primitives

2D Epistemic Product Lattice

Monotonic join (⊔) over (Trusted ⊏ SemiTrusted ⊏ Untrusted) × (Public ⊏ Internal ⊏ Confidential) detects the Lethal Trifecta automatically and blocks unauthorized control-plane writes and exfiltration.

Fail-Closed MCP & HTTP Wire Proxy

Inspects MCP JSON-RPC 2.0 single & batch calls, rejects encoded/malformed payloads, enforces SSRF blocks on external origins, and stops CL/TE smuggling and Slowloris attacks.

Cross-Agent Worm Provenance & 1× Declassify

Stamps bidirectional HMAC-SHA256 X-NetDIFT-Provenance headers across A2A delegation to stop taint laundering, paired with nonce-tracked single-use X-NetDIFT-Declassify approvals.

RFC 1035 UDP DNS Entropy Guard

Tracks high-water session taint across active HTTP sessions and returns RCODE=5 REFUSED on high-entropy or multi-label covert DNS tunneling and non-allowlisted Lethal Trifecta egress.

Quickstart

git clone https://github.com/ejames-dev/NetDIFT.git
cd NetDIFT

# Run the live 8-step red-team containment demo + loopback Admin Web Console (127.0.0.1:8091)
cargo run --release -- demo --keep-alive

# Run the reproducible 5-cohort containment & wire-latency benchmark
cargo run --release -- bench --sessions 10
3-Layer Defensive AI-Security Suite
OodaTap (Python) → Passive TLS-free detection of autonomous & hybrid human+agentic OODA loops.
MirageGate (Go) → Zero-LLM OpenAPI near-miss tarpit & HMAC-SHA256 human-handoff attribution proxy.
NetDIFT (Rust) — You are here Network-layer DIFT lattice & monotonic capability-attenuation gateway for internal AI agents.