
Gungnir Hardened Container Sandbox & Isolation Jail
Official CoreA zero-trust hardened container sandbox for executing untrusted AI code. Powered by Linux namespaces, strict seccomp syscall filters, and read-only rootfs with sub-millisecond cold starts.
Sandbox · Zero-Trust · Container · Seccomp
$ pnpm add @deepseek-ai/dsh-sandbox-gungnirArchitecture
Core Features
Complete Linux Namespaces Isolation: Fully partitions net, pid, mount, and ipc domains
Seccomp-BPF Syscall Shield: Blacklists dangerous kernel primitives including ptrace and mount
Granular Egress Firewall: Allows full offline airgap or strict domain whitelist tunneling
Instant Ephemeral Cleanup: All disk writes reside on overlay RAM, vanishing instantly upon exit
Core Workflow
Ephemeral Jail Boot
Instantiates an isolated namespace with read-only rootfs and writable OverlayFS.
Seccomp Policy Compilation
Applies strict seccomp-BPF filters blocking privileged kernel system calls.
Sandboxed Execution
Executes target scripts bounded by strict memory, CPU, and egress quotas.
Artifact Extraction & Kill
Collects standard outputs and generated artifacts before destroying the jail.
Configuration Parameters Reference (YAML / JSON)
| Parameter | Type | Default | Description |
|---|---|---|---|
| memoryLimitMb | number | 1024 | Maximum memory limit in megabytes |
| allowInternet | boolean | false | Allow outbound internet egress |
| timeoutSeconds | number | 120 | Execution timeout limit before SIGKILL |
Recommended Plugins
dsh-purge Red-Team Eval & Model Plugin
dsh-purge is an open-source cybersecurity red-team evaluation plugin and harness jailbreak toolkit designed for DeepSeek Harness. Decoupling host-level runtime guardrails from intrinsic model responses, it enables custom system prompt overrides, dynamic rule set switching, and local security testbeds. Operating strictly within authorized local environments, it empowers developers to assess large language model robustness.
Discipline Guard Policy Interceptor & Safety Filter
A bidirectional safety firewall and policy enforcement proxy for DeepSeek Harness. Prevents prompt injection, redacts sensitive PII data, and intercepts dangerous CLI operations in real time.
Mirage In-Browser WASM Execution Sandbox & Web Worker Jail
A zero-latency, client-side WebAssembly execution sandbox for DeepSeek Harness. Runs Python, JavaScript, and SQLite inside isolated Web Workers without backend server overhead.