Skip to content
.ca
4 minhigh

What happens when a fake coding test reaches a security company?

North Korean groups use fake coding interviews to deliver BeaverTail and InvisibleFerret malware to developer laptops via malicious GitHub assignments opened in VS Code. A hidden command in VS Code workspace settings executes when a terminal opens, loading BeaverTail and InvisibleFerret within two minutes. The Binance $6.3 billion theft used a similar fake interview lure but replaced pyenv in Homebrew with a malicious version. Multiple overlapping North Korean groups share this employment-themed social engineering playbook.

Sens:▲ 24hConf:highAnalyzed:2026-11-05Z.ai

Authors: Ross McKerchar

ActorsNICKEL ALLEYNICKEL TAPESTRYNickel GladstoneBeaverTailInvisibleFerretFamous ChollimaLazarus Group

Source:Sophos

Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

Detection / HunterZ.ai

Immediate Actions

  • Audit all macOS endpoints for working endpoint protection agents
  • Correlate identity sign-in data with endpoint telemetry to find unmanaged devices
  • Block known BeaverTail and InvisibleFerret indicators if available
  • Isolate any developer machine that opened unverified coding assignments

Key Takeaways

  • Sophos endpoint agent was broken on the compromised Mac, allowing the chain to proceed
  • First dropped script was already detected as Troj/Dloadr-EJE by SophosLabs
  • Binance attacker swapped legitimate pyenv in Homebrew for a malicious version
  • Contagious Interview compromised 30,000+ devices across 100+ countries between Dec 2025 and Jul 2026
  • NICKEL GLADSTONE linked to Binance attack via FBI's TraderTraitor designation

Attack Chain

  1. Initial Access: Fake employer sends GitHub coding assignment link to developer via job platform
  2. Execution: Hidden command in VS Code workspace settings runs when terminal opens
  3. Installation: BeaverTail loader drops within two minutes of terminal opening
  4. C2: InvisibleFerret backdoor establishes communication with attacker infrastructure
  5. Lateral Movement: Binance attacker used internal AI tool to compromise additional engineers
  6. Exfiltration: Credentials and cryptocurrency stolen from compromised systems

Affected Systems

  • macOS developer endpoints
  • VS Code with workspace settings
  • Homebrew pyenv installations
  • Developer workstations with source code access
  • Cryptocurrency exchange infrastructure
  • Internal AI tools accessible to engineers

Detection Engineering Assessment

Hunting Hypotheses

copy:
HypothesisTelemetryStageFP Risk
VS Code workspace settings files containing terminal auto-run shell commands execute when a developer opens a terminal (T1059.004)EDR process telemetryExecutionLow — legitimate workspace settings rarely auto-run shell commands
Homebrew-managed binaries such as pyenv modified or replaced with versions contacting external servers (T1574)File integrity monitoringPersistenceLow — Homebrew binary replacement is unusual
Cryptocurrency wallet credential files accessed by non-wallet processes after developer opens coding assignment (T1005)EDR file access logsExfiltrationMedium — wallet tools may access files via subprocesses

Required Log Sources

  • EDR process telemetry
  • Identity provider sign-in logs
  • Device compliance logs
  • File integrity monitoring
  • Endpoint coverage console reports

Control Gaps

  • Broken endpoint agent on Mac went undetected by compliance checks
  • Gap between device compliance and endpoint coverage monitoring not correlated
  • Internal AI tool allowed lateral movement between engineers at Binance

Recommendations

Infrastructure Hardening

  • Implement firebreak between corporate and product development environments
  • Restrict internal AI tool access scopes and permissions
  • Monitor for unauthorized changes to Homebrew-managed binaries
  • Require human approval for irreversible AI tool actions

User Protection

  • Train developers on fake recruitment social engineering tactics
  • Warn employees about opening coding assignments from unverified sources
  • Require HR verification of any recruiter-initiated coding tests
  • Disable VS Code workspace settings auto-run features where possible

MITRE ATT&CK Mapping