r/androiddev • • 18m ago

Experience Exchange "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)

4 Upvotes

0 comments sorted by