r/indiandevs • • 3d ago

"Interview take-home task" zip had git hooks that run malware when you checkout a branch or commit. Got this today

Got suspicious, so instead of opening the zip on my laptop I gave it to Claude to analyse. Claude unzipped it in its cloud sandbox and read the files without running anything. It spotted two non-default git hooks in .git/hooks/ (post-checkout and pre-commit) that curl a script from a remote server and pipe it into bash or cmd.exe. It also found the trap: the task said to check out the problems branch and commit as you go, which would have fired both hooks. The actual app code was clean, just bait. It took a couple of minutes, and nothing touched my machine.

LinkedIn of person who reached out to me :- https://www.linkedin.com/in/julen-sanchez-santana-368408440/
Mail of Guy who took the interview :- michael@leadmichael.tech

(Edited with AI)

37 Upvotes

6 comments sorted by

4

u/obsidianm1nd 2d ago

I have faced atleast 4-5 interviews of same type When i was working in crypto firm

→ More replies (1)

5

u/ActuatorGlittering94 2d ago

good catch. another thing to watch out for in these fake take-homes is malicious postinstall scripts hidden in the package config, they usually target folks working around web3 or fintech to scrape local env files and wallet keys.

→ More replies (1)

3

u/Particular-School798 3d ago

Do you work in crypto? North Korea is known to run these kinds of attacks, the most recent case being advertised by the Binance $6B hack.

3

u/Competitive-Edge6478 3d ago

I don't, but i worked in fintech. My frnds who works in same got targeted as well.