Five habits that stop a stranger’s code running on your laptop
You do not need to work at a giant exchange to care about this. You only need a laptop with your email, your cloud logins, or a wallet seed you would rather keep.
Microsoft has documented a long-running campaign it calls Contagious Interview: attackers pose as recruiters, run a convincing hiring process, then ask the candidate to clone and run a coding test. The test is the malware. It works because people want the job. They are helpful. They are in a hurry. I wrote about how that pattern showed up in a much bigger story in The hack that started with a job interview. This post is the boring follow-up: habits you can actually keep.
Atlassian has published its own notes on the same pattern, including fake companies with tidy websites and patient LinkedIn pages. The polish is the point. You are not looking for a cartoon villain. You are looking for a process that feels normal.
None of this is legal advice. It is hygiene.
1. Never run a recruiter’s project on your real machine
Use a throwaway virtual machine, or a cloud sandbox you can delete afterwards. No work email signed in. No password manager unlocked. No production keys sitting in environment variables. No “I’ll just use my main laptop because the test is due tonight.”
A real employer will understand “I ran your test in an isolated box.” A fake one will push you to disable the safety rails. That push is information. Soft social pressure is part of the attack, not proof that you are being difficult.
2. Read before you install
Before npm install, before pip install, before you click Trust Workspace, skim the repo. Look at install scripts, GitHub Actions, and editor task files. Contagious Interview has used ordinary-looking packages and editor automation so that opening the folder is enough to start trouble.
If the setup instructions are a wall of “just paste this”, slow down. Paste-and-run is a gift to strangers. So is anything that asks you to turn off warnings “so the assessment works”.
You do not need to become a malware analyst. You need a pause long enough to notice that the repo is brand new, the company page is thin, or the instructions feel oddly urgent.
3. Keep deploy tokens and cloud keys short-lived
A token that lives for a month on a laptop is a token waiting to be found. Prefer keys that expire quickly, with the least access the job needs. If a machine might be dirty, revoke first and ask questions later.
This overlaps with how you should treat agent spending too. Limits and short permissions beat hope. I sketched that split in Agent wallets and agent escrow. The theme is the same: do not leave powerful doors propped open because it is convenient.
4. Give AI coding tools the least reach they need
Helpers that can read your whole disk, every repo, and every browser profile are brilliant until someone else is holding the remote. Scope them. Separate profiles help. So does not pasting secrets into chats “just this once”.
If a tool can act, ask what it can touch. If the answer is “everything you can touch”, that is not a helper. That is a spare you.
5. Treat the hiring channel as an attack surface
It feels rude to say that. Hiring is supposed to be hopeful. Attackers know that. They build fake companies, warm profiles, and patient interview scripts because trust is already half granted.
So write a house rule, even if the house is just you: coding tests run in isolation; unknown repos get reviewed; nobody disables security tools to “make the assessment work”. Put it in the same place you keep the other boring rules, next to backups and two-factor authentication. Tell teammates. Tell juniors twice.
If you think you already ran the wrong thing
Disconnect the machine from the network. From a clean device, revoke sessions, rotate passwords, source-control tokens, SSH keys, cloud credentials and API keys. If crypto keys may have been exposed, move funds from a clean device to a new wallet. Reimage if you can. Deleting the folder is not the same as cleaning the box. Report the recruiter account and the repository to the platforms that host them.
Fear is a poor teacher. Habits are better. You do not have to become a security engineer. You only have to stop giving strangers a free run on the machine that holds your life.
Trust, but escrow.
Do Robots Dream of Getting Paid?
More from the series
Son of Anton ordered the burgers: what Silicon Valley got right about AI agents
An AI that deleted the software to fix the bugs, then ordered 4,000 pounds of meat. What Silicon Valley got right about agents, and why payment should wait.
Read the articleA Copland Road burger and what trust feels like in person
A burger on Copland Road and a hug when Rangers scored. Small human moments that teach what trust feels like, before software ever gets a vote.
Read the article