Contents

I've been seeing posts on LinkedIn about malicious code disguised as take-home assignments. Developers are asked to clone a project, install its dependencies, and get it running, much as they would for a legitimate interview.

I looked into these attacks and found a recruitment scam documented by Fireblocks in January 2026. Their report describes candidates running ordinary setup commands, including npm install, that executed malicious code from the project.

That concerned me because I use my personal computer for development too. I'm signed into personal accounts in my browser, and I have files, SSH keys, and environment variables that I wouldn't want an unfamiliar project to access. A malicious script could reach whatever files and credentials were available to the account running it.

I wanted to limit that access, so I decided to run my development environment inside an Ubuntu VM. I could continue using my usual applications while keeping project code and dependencies in a separate environment. I also wanted a setup I could rebuild when needed.

Architecture

My personal computer is the host, and Ubuntu runs as the guest. I connect to the VM through VS Code Remote - SSH or an SSH-connected Codex project. The interface stays on the host. Project files are stored in the VM, and terminal commands and agent tasks run there.

The host runs the editor interface and database clients, while code, runtimes, and services run inside a disposable VM

The runtimes, databases, and containers also run in the VM. When I want to preview an application, I forward its port over SSH and open it in a browser on the host. Database clients can connect to guest services in the same way.

The same setup could run on a remote cloud VM, with access over SSH through WireGuard or Tailscale. With a provider that stops compute billing when the VM is stopped, running it only when needed could also keep costs down, though storage charges would remain. For daily development, connection quality would matter too.

What Does This Architecture Offer?

A Clean Host

I can install runtimes, try services, and change configurations inside Ubuntu without changing my host setup. These experiments still leave packages and files behind. If cleaning them up becomes more work than rebuilding the guest, I can create a new VM.

Better Isolation Against Malicious Code

The guest doesn't need my personal files to run a project, so I don't share my home directory with it. This limits what project code can reach on the host, although anything I copy into the VM becomes available within that environment.

Network access needs similar care. A VM may still be able to connect to host applications or internal services. I need to restrict those connections when setting up the VM. Moving project files into a guest doesn't restrict its network access.

Native Playground

Ubuntu gives me a consistent Linux environment for development. I can keep the tools I use across projects installed there and let each repository define its own dependencies and commands.

But What About Configuring the VM?

I wanted to be able to rebuild the VM without setting everything up by hand. I use Ansible to configure my shell, runtimes, and development tools. I keep that configuration in version control so I don't have to remember every change I made inside the guest.

If you'd like to build a similar setup, you can use my Workstation repository as a starting point and adapt it to your own workflow.

What Rebuilding Can't Fix

Before deleting a VM, I still need to back up unpushed code and local data. Reinstalling the tools won't recover work that existed only in the old guest.

I also need to be careful about the credentials I put inside it. Code and agents running there may be able to access them, so I wouldn't assume my everyday development VM is safe for an unfamiliar interview assignment. The FBI's guidance for recruitment attacks targeting the cryptocurrency sector recommends a VM on a device without a company connection when such tests require code execution.

Deleting a compromised VM won't undo data theft or revoke stolen credentials. I still need to limit access before running unfamiliar code and keep the hypervisor updated.

There's another operating system to maintain, and the VM takes up memory and storage. For me, that's a reasonable trade-off: I can rebuild my development environment without starting over on my personal computer.