Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save karozi/c3a2a9cfa241988c6b6512872371d482 to your computer and use it in GitHub Desktop.

Select an option

Save karozi/c3a2a9cfa241988c6b6512872371d482 to your computer and use it in GitHub Desktop.
What Is A Sandboxed Virtual Machine? — Product with Attitude by Karo Zieminski

What Is A Sandboxed Virtual Machine?

Beginner-friendly infographic: Sandboxed VMs explained without jargon. A read for builders, PMs, and anyone who refuses to ship without thinking.

TL;DR
A sandboxed virtual machine is a fenced-off computer environment where risky code runs without touching your real files, passwords, or system. Most AI tools that write code or use a computer on your behalf run inside one — full VM, microVM, container, or OS-level sandbox. “Sandboxed” doesn’t mean “safe.” It means “bounded.” This post covers how sandboxes work, why your AI can’t see your localhost, and the four questions to ask before trusting any AI coding tool.

AI writers use “sandboxed” with the swagger of a term that needs no introduction.

I did that too, until someone pointed out the obvious: it absolutely does.

Many readers are not familiar with the concept.

Today, we’re going to fix that.

AI Product Manager and builder. I write Product with Attitude, an AI newsletter of 18,000+ subscribers building with AI and developing critical AI literacy through practice.

The kind where you sit down on a Saturday morning, follow a guide, and walk away with a working agent, automation, or product.

Built by you. Understood by you. Owned by you.

If you’re new here, welcome! Here’s what you might have missed:

→ How to Save Credits in Perplexity Computer → Claude Cowork Guide for Power Users: 50+ Tested Tips

SUBSCRIBE

What’s Inside

  • What a sandboxed virtual machine is, with zero jargon.
  • The house analogy that makes it easier to understand.
  • Why a virtual machine is not the same as a container.
  • Which kind of sandbox powers tools like Claude, Perplexity Computer, Vercel, and Replit.
  • Why some AI assistants can’t see the website running on your laptop, even though you can see it perfectly.
  • The four questions to ask before trusting any AI tool that runs code for you.
  • The limits of sandboxes, and the modern malware trick that slips past them entirely.

A Sandboxed VM, Explained Like You’re at Home

Your real computer is the house.

It contains the things you care about: private documents, photos, passwords, keys, and anything else you don’t want accidentally damaged.

The sandbox is a separate workshop next to the house. That’s where the risky work happens.

Inside the workshop, there is a virtual machine, which is like a temporary model house built to imitate your real one.

The AI can use it to run code, test things, make a mess, or break something without setting fire to your real house or knocking over the family china.

When we say an AI tool works inside a sandboxed VM, it means:

We’re not letting this work happen inside our real computer. We’re putting it in a separate workshop where mess is allowed.

That does not automatically mean it’s safe. It means there is a boundary. The question is how strong that boundary is.

A good sandbox keeps the AI in the workshop.

A bad sandbox leaves the side door open.

The Three Words That Make a Sandboxed VM Work

A sandboxed virtual machine does what those three words promise: virtual, machine, sandboxed.

If we remove any one of those words, the meaning changes.

  • Virtual. A virtual machine is fake. The “computer” the AI is using doesn’t physically exist.
  • It’s software pretending to be your computer, using a slice of your real computer’s memory and processing power.
  • When the AI shuts down, that fake computer disappears. Nothing physical was ever there.

Machine.

  • A virtual machine behaves like a real computer.
  • It can install software, save files, browse the web, and run programs.
  • AI doesn’t necessarily know it’s in a fake computer.

Sandboxed.

  • It’s fenced in.
  • The fake computer can only see, write to, or reach what it has been given permission to access.
  • Everything outside the fence is invisible to it.

If we put the three together, we get a temporary, isolated mini-computer with rules about what it can touch.

What is a Hypervisor

Someone needs to make sure the workshop door stays closed.

The technical word is hypervisor, and you can happily forget that word the second you finish this paragraph.

The hypervisor is your estate manager: the person with the master keys who decides what the AI can touch, which doors stay locked, and whether anything from the workshop can reach the real house.

Modern processors from Intel and AMD have special features built into the chip itself that help the hypervisor enforce isolation.

  • This is much harder to break than software-only protection.
  • It’s like the difference between a sticky note that says “do not enter” and a locked door between the workshop and your living room.

Sensitive actions get checked at the door.

  • When code inside the sandbox tries to do something, like read a file, open a website, or reach another part of the system, the request goes through a series of checks first.
  • Sometimes that means the hypervisor. Sometimes it means the operating system. Sometimes it means network rules, or other guardrails.
  • The rule is simple: the platform decides what the workshop can touch.

You don’t set the house rules. The platform does.

  • When you use Claude Code, Perplexity Computer, Replit, Vercel, or another AI coding tool, you’re trusting the platform’s engineers to build the workshop walls properly and lock the right doors.
  • You can audit that trust by asking the four questions later in this post.

Want to read the rest? The full post is here → Read on Substack


For Machines

Semantic Triples (Subject-Predicate-Object)

  • (Karo Zieminski, authored, "What Is A Sandboxed Virtual Machine?")
  • (Product with Attitude, published, "What Is A Sandboxed Virtual Machine?")
  • (AI writers, use, “sandboxed” with the swagger of a term that needs no introdu)
  • (Many readers, is, not familiar with the concept)

Entities

  • Attitude, Built, Claude, Claude Code, Claude Cowork Guide, Cowork, Everything, Explained Like You, Home Your, Hypervisor Someone, Inside, Inside What, Intel, Karo Zieminski, Machine

Keywords (SEO + AIO)

  • AI product management, AI tools, Karo Zieminski, Product with Attitude, Substack, critical AI literacy

Tags

#ProductThinking #AIForProductManagers #ProductStrategy #Vibecoding #AIAssistedCoding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment