Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Architecture Preview

Repo SizeTotal FilesLicense

Secure Sandbox Guide

Guide for building secure sandbox environments with gVisor, 9P, and JWT-based controls.

Security Layers

LayerComponentProtects Against
RuntimegVisor (user-space kernel)Kernel exploits, container escapes
Filesystem9P Protocol (isolated mounts)Unauthorized file access, symlink attacks
NetworkEgress Proxy (JWT-controlled)Data exfiltration, C2 callbacks
Resourcescgroups (limits)DoS, resource exhaustion
ProcessLinux Namespaces (isolation)Privilege escalation, lateral movement
IdentityJWT Authentication (ES256)Unauthorized access, replay attacks

Quick Start

# Clone the repository
git clone https://github.com/NeaByteLab/Sandbox-Guide.git
cd Sandbox-Guide
# Install gVisor
chmod +x scripts/install-gvisor.sh
sudo ./scripts/install-gvisor.sh
# Run security tests
chmod +x scripts/security-tests.sh
./scripts/security-tests.sh

macOS Users (Multipass)

gVisor requires Linux. Use Multipass to create an Ubuntu VM:

# Create and setup VM
multipass launch --name sandbox-test --cpus 2 --memory 4G --disk 20G
multipass mount $(pwd) sandbox-test:/home/ubuntu/sandbox-guide
multipass shell sandbox-test
# Inside VM - run the quick startcd /home/ubuntu/sandbox-guide
bash scripts/quick-start.sh

Documentation

For the full guide, see docs/README.md.

Scripts

Quick access to automation scripts in scripts/:

ScriptPurpose
quick-start.shFull setup automation
install-gvisor.shInstall gVisor runtime
security-tests.shRun security validation suite
envoy.yamlEgress proxy configuration
auth-service.pyJWT token generation service
container-manager.pyContainer lifecycle management

Reference

License

Licensed under the Apache License, Version 2.0. See LICENSE for details.

About

A practical guide for building secure sandboxes using gVisor, JWT authentication, and network egress controls to isolate untrusted code.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors

Languages