Web isolation is a security technique that “detaches” the user’s browsing session from the endpoint, so that any malicious content downloaded from the Internet is processed in an isolated environment rather than on the user’s local machine. For a small company looking to implement this with free open source software (FOSS), you can build a solution by combining a few well‐known open source tools and some creative architecture. Below are some approaches and steps you can consider:
1. Decide on Your Isolation Strategy
There are two main architectural approaches:
-
Local (Endpoint) Isolation:
Each user runs a sandboxed browser on their workstation. This limits damage if the browser is compromised.
-
Remote (Server-Side) Isolation:
Users connect to a remote browser session running in a highly controlled, isolated environment in the data center or cloud. In this model, only “rendered” safe content (for example, as images or a secured interactive session) is sent to the user’s device.
Your choice will depend on your threat model, network infrastructure, and user workflows. Remote isolation is more “true” web isolation because the endpoint never directly interacts with potentially malicious web content.
2. Implementing Isolation Locally (Endpoint Sandboxing)
If you want to sandbox the browser on each workstation, consider the following FOSS tools:
-
Firejail:
This is a SUID program that uses Linux namespaces and seccomp-bpf to restrict the running environment of untrusted applications. It works well with browsers like Firefox or Chromium.
How to use it:
• Install Firejail (available on most Linux distributions).
• Launch your browser using:
firejail firefox
This confines the browser processes, limiting file system access and network connectivity.
-
AppArmor or SELinux:
Use or further configure your Linux Mandatory Access Control (MAC) solution (if you’re already using Linux) to restrict what the browser can do.
While these measures help reduce the risk from web content, they are not “full” isolation in the sense of remote pop-up “safe” renditions of websites.
3. Implementing Remote Web Isolation with Containers/VMs
For a more robust web isolation setup, you can set up a remote, containerized browser service that users access through a secure web portal. Here’s a common approach:
A. Use Containerization or Virtualization for Isolation
-
Docker or LXC:
Run a dedicated browser (or even a full desktop environment) inside containers. Containers start in a clean state, and when the session is terminated the container can be destroyed.
Example:
• Create a Docker container based on a lightweight Linux distribution (like Alpine or Ubuntu).
• Install a browser (e.g., Firefox, Chromium) inside that container.
-
Virtual Machines:
Tools like VirtualBox or even KVM can be scripted to launch a transient VM that runs a hardened browser session.
B. Provide a Remote Desktop or Browser-Streaming Interface
-
noVNC/x11vnc:
Set up a VNC server within the container and use a web-based VNC client (like noVNC) so that users can connect to their isolated browser session through the browser on their local machine.
How to do it:
• Install a minimal X server inside your container along with the browser.
• Run a VNC server (or x11vnc) that points to that X session.
• Use noVNC on the front end (served via an NGINX reverse proxy, for instance) to deliver the session to the user’s browser via HTML5.
-
RDP Solutions:
Alternatively, if you prefer RDP, you might look into free RDP servers like xrdp although the noVNC path is popular for web isolation.
C. Secure the Connection and Enforce Policy
- Reverse Proxy (NGINX):
Place an NGINX reverse proxy in front of your noVNC interface to manage SSL/TLS, centralize logging, and potentially do user authentication.
- Squid or Other Proxy Servers:
Optionally add a transparent proxy that only allows outbound web traffic from the container. This helps ensure that even if the container is attacked, its network access is restricted.
D. Session Lifecycle Management
- Ephemeral Containers:
Automate the creation and destruction of containers after each session. Tools like Docker Compose or custom scripts can help manage container lifecycles.
- Audit Logging:
Incorporate logging of session activity so that you can audit, if needed, any abnormal behavior.
4. Putting It All Together: An Example Architecture
-
User Connects:
An employee logs into a secure web portal (protected using HTTPS and a strong authentication mechanism).
-
Session Provisioning:
An orchestration script (or lightweight management tool) spins up a new Docker container that includes:
- A minimal Linux OS
- A hardened browser (Firefox/Chromium)
- A VNC server exposing the desktop/browser session
-
Access via noVNC:
The employee’s browser connects via noVNC (using an NGINX reverse proxy) to view and control the isolated session.
-
Containment & Network Controls:
Inside the container, outbound network access is limited (e.g., only HTTP/S traffic through a Squid proxy), and the container is isolated from the host system using Docker’s security features.
-
Session End:
On logout or after a preset time, the container is destroyed, removing any residual risk.
5. Additional Considerations
-
User Experience:
A fully remote session may have slight latency compared to local browsing. Test performance and adjust resource allocation accordingly.
-
Policy Enforcement:
While isolation can greatly reduce risk, combine it with good security practices on endpoints: regular patching, intrusion detection, and user training are all important.
-
Maintenance and Updates:
Keep your base container images updated. Automate rebuilds so that your “clean slate” always includes the latest security patches.
-
Documentation & Community Projects:
Explore community documentation and GitHub projects. Even though there isn’t a single “one-click” open source web isolation solution, several projects demonstrate aspects of this architecture that you can adapt.
6. Conclusion
A small company can implement web isolation using free open source tools by leveraging containerization (Docker/LXC), a remote display technology (noVNC with an X server/VNC server inside the container), and a reverse proxy (NGINX) to securely deliver the isolated session. If you prefer a simpler endpoint solution, Linux sandboxing tools like Firejail can isolate your browser locally. Both approaches can reduce the risk of passive compromise from risky web browsing while using tools that are free and community maintained.
By combining these components—and tailoring them to your environment—you can build a cost-effective, secure web isolation solution that meets your company’s needs.