Lazarus Group Hides Malware in Git Hooks Used in Fake Coding Assessments

· Original article ↗

Summary

OpenSourceMalware reports that Lazarus-linked fake coding-assessment repositories use Git hooks to fetch OS-specific payloads, potentially leading to credential and crypto-wallet theft. It shares infrastructure and a GitHub hunt query.

Key points

  • The report attributes the activity to the DPRK Lazarus Group’s Contagious Interview/TaskJacker campaign.
  • Fake coding-assessment repositories reportedly use pre-commit hooks as loaders; the article also notes use of post-checkout hooks.
  • The loader fingerprints the operating system, then downloads a platform-specific script from precommit[.]vercel.app and runs it through a shell or cmd.exe.
  • The article says the campaign’s multi-stage loader delivers InvisibleFerret-style implants associated with credential and crypto-wallet theft.
  • The same pre-commit hook content, with reported Git blob SHA 3ebd9bb57d155cc7c3353660f54c153a094cdfbd, was found across several repositories matching the described lure pattern.
  • The report provides a GitHub code-search query to hunt for hooks referencing vercel.app.
  • For interview repositories, the article recommends inspecting Git hook and setup files and using a disposable VM without access to SSH credentials or wallets.

Article Details

Attack Vectors
  • Fake recruiters use crypto-, DeFi-, or web3-themed coding-assessment repositories to persuade candidates to clone and run code locally.
  • A malicious .githooks/pre-commit script fingerprints the operating system with uname -s, downloads a platform-specific payload, and pipes it to sh or cmd.exe. The article also reports use of post-checkout hooks, which trigger when users change branches.
  • The loader runs silently and exits successfully so the commit appears to work normally.
Defensive Notes
  • Treat interview-assessment repositories as hostile until verified; inspect .githooks/, .husky/, .vscode/tasks.json, and postinstall scripts before running code.
  • Run untrusted assessment code in a disposable VM without browser profiles, SSH credentials, or mounted cryptocurrency wallets.

Indicators of compromise

TypeIndicatorContext
DOMAINprecommit[.]vercel[.]appReported attacker-used payload server serving platform-specific scripts.
URLhxxps[:]//precommit[.]vercel[.]app/settings/linux?flag=5Article-identified C2 URL serving the Linux payload.
URLhxxps[:]//precommit[.]vercel[.]app/settings/mac?flag=5Article-identified C2 URL serving the macOS payload.
URLhxxps[:]//precommit[.]vercel[.]app/settings/windows?flag=5Article-identified C2 URL serving the Windows payload.

MITRE ATT&CK

Threat Actors

Malware

Countries

Industries

Related Articles