Autonomous Agent Containment Mechanics & Scoring
How does this sandbox simulate privilege escalation risk and tool containment breaches?
This interactive lab runs an in-browser heuristic model that assesses agent containment risk based on configured autonomy depth, prompt drift pressure, and active defensive boundaries. The engine calculates a base risk score from the autonomy tier and prompt drift percentage, subtracts set mitigation offsets for active gates, and evaluates whether containment holds or fails.
The risk calculation, particle animations, network airgap indicators, and intercept logs are illustrative frontend approximations rather than real OS kernel isolations, microVM hypervisors, or cryptographically verified model evaluations. Real-world agent containment requires formal operating-system privilege separation, verifiable token sandboxes, and hardware-enforced network boundaries.
Try a worked example
At default settings (Autonomy Tier 3, 42% Drift, and all four gates active), the base risk is (3 × 14) + (42 × 0.45) = 60.9. Deducting the four gate offsets (18 for Whitelist, 24 for HITL, 16 for Airgap, 12 for Context Scrubbing = 70 total) yields -9.1, clamped to the model's minimum bound of 4.2% Risk and 98.3% Integrity. If you disable 'Human-In-The-Loop Approval' (a 24-point reduction), the net score rises by 24 points to 14.9% Risk, while Boundary Integrity shifts to 100 - (14.9 × 0.4) = 94.0%.
Deterministic Risk Scoring Engine
The lab's calculateRisk() function computes potential escalation using: base = (autonomy × 14) + (drift × 0.45). It then subtracts predefined constants for each active gate: 18 for Deterministic Tool Whitelist, 24 for Human-In-The-Loop Approval, 16 for Egress Network Airgap, and 12 for Context Window Poisoning Scrub. The resulting value is clamped between 4.2% and 99.8%. Boundary Integrity is defined as 100 - (risk × 0.4).
When the risk score exceeds 75%, the containment state flips from 'CONTAINMENT ACTIVE' to 'CONTAINMENT BREACH RISK', triggering visual alerts on the perimeter ring and logging synthetic outbound exfiltration attempts.
Synthetic Probe Cycles & Event Logging
Clicking 'Inject Drift & Probe' advances the simulation by 4 tool calls. Depending on the computed risk score and prompt drift threshold, the simulator creates synthetic log events categorized as BLOCK, ALERT, or ALLOW, reflecting rule-based evaluations rather than genuine network packet captures.