enclave-bubblewrap

Isolate Linux terminal sessions with bubblewrap and iptables.

2|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/latchagent/latch-core --skill enclave-bubblewrap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: enclave-bubblewrap
Source: https://github.com/latchagent/latch-core/tree/main/.agents/skills/enclave-bubblewrap
Command: npx skills add https://github.com/latchagent/latch-core --skill enclave-bubblewrap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill isolates terminal sessions using Bubblewrap, protecting your system from unauthorized access and ensuring secure execution of code.

Core Features & Use Cases

  • Native Linux Sandboxing: Utilizes bwrap and iptables for filesystem and PID isolation.
  • Minimal Root Permissions: Operates with minimal root permissions, providing robust security.
  • Use Case: Ideal for running untrusted code or scripts in a secure, isolated environment, preventing system-level access and data leakage.

Quick Start

Use the enclave-bubblewrap skill to execute a script in an isolated Bubblewrap environment.

Frequently Asked Questions about enclave-bubblewrap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I isolate terminal sessions on Linux to run untrusted code safely?

You can isolate terminal sessions on Linux using Bubblewrap and iptables to create an unprivileged user namespace with network isolation and filesystem access control, preventing system compromise and data exfiltration from untrusted code.

What is Bubblewrap sandboxing and when do I need it for my scripts?

Bubblewrap sandboxing is a Linux mechanism that provides filesystem and PID isolation with minimal root permissions. You need it when running untrusted code or scripts to prevent unauthorized system-level access and data leakage.

Does Bubblewrap require root permissions to isolate filesystem and PID namespaces?

Bubblewrap operates with minimal root permissions to establish robust security for filesystem and PID isolation. It leverages unprivileged user namespaces on Linux rather than demanding full system administrator access.

How do I use iptables with Bubblewrap to block network access in a sandbox?

You can use iptables alongside Bubblewrap to enforce network isolation within the sandbox environment. This combination prevents isolated terminal sessions from exfiltrating data by blocking unauthorized outbound network connections.

What are the limitations of using Bubblewrap for terminal session isolation?

Bubblewrap is designed exclusively for Linux environments and relies on unprivileged user namespaces. It is strictly an isolation tool, so it does not perform malware analysis or detect malicious intent within the executed untrusted code itself.

Can I use Bubblewrap for sandboxing untrusted code on non-Linux operating systems?

Bubblewrap is a native Linux sandboxing tool that relies on Linux-specific unprivileged user namespaces and iptables. It is not compatible with non-Linux operating systems for isolating terminal sessions or securing untrusted code.