RCE Backdoor: I Almost Got Owned by a Fake Metatheory Job Intervi
A fake recruiter sent a GitHub repository for a take-home assessment that contained a backdoor in the server startup code. If run, the backdoor would fetch and execute obfuscated malware, potentially stealing SSH keys, cloud credentials, and other secrets.
Published on medium.com
How a LinkedIn recruiter’s “take-home project” was actually a malicious GitHub repo with remote code execution
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The repository's server code automatically loaded a configuration file that contained a base64-encoded URL, which was then fetched and executed as JavaScript via Function.constructor, giving the attacker remote code execution.
Impact
If the author had run the project, the backdoor would have executed remote code, potentially exfiltrating SSH keys, cloud credentials, npm tokens, and shell history, and allowing the attacker to pivot to production deployments.
What the attacker needed
Victim clones and runs the repo; no sandbox environment variables set
The fix
The repository and organisation were taken down by GitHub after the author reported it.
How it was found
- The recruiter sent a GitHub repository link and asked the author to review it locally.
- The author read the source code instead of running npm install or npm run dev.
- The author found a suspicious function in server/errorHandler.cjs that used Function.constructor and atob on an environment variable.
- The author decoded the COOKIE_VALUE from .env.example and found it pointed to a JSONKeeper URL.
- The author fetched the remote payload in a browser and saw it was heavily obfuscated JavaScript.
- The author compressed the repository for evidence and deleted the working copy.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a report about a malicious job interview. A person pretending to be a recruiter asked the author to review some code. The code was booby-trapped so that if the author ran it, it would secretly download and run harmful software on his computer. The author spotted the trap before running anything.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.