state_actors • Rapid7 Blog: DPRK APTs Deploy Ted Backdoor & curlRAT

North Korean Lazarus Infiltrates Developer Ecosystems: Ted Backdoor and curlRAT Targeting Supply Chains

North Korea's state-sponsored Lazarus Group is executing aggressive supply chain intrusions against software developers, deploying novel Ted and curlRAT backdoors via weaponized packages and deceptive recruitment.

#T1195.001#T1059.004#T1041
North Korean Lazarus Infiltrates Developer Ecosystems: Ted Backdoor and curlRAT Targeting Supply Chains

North Korea's premier cyber warfare unit, Lazarus Group (subordinate to the Reconnaissance General Bureau, RGB), has sharply escalated targeted supply chain intrusion campaigns against software developers, decentralized finance organizations, and technology enterprises across North America and Europe. According to detailed telemetry from threat researchers, the syndicate is actively weaponizing two novel, highly evasive backdoors—designated Ted and curlRAT—by poisoning open-source dependency ecosystems and manipulating developer talent through fraudulent recruitment operations.

The campaign advances dual strategic objectives: generating illicit revenue through cryptocurrency theft and proprietary source code exfiltration to finance North Korea's military programs, while simultaneously infiltrating software build pipelines to execute widespread **supply chain compromises** across enterprise consumer bases.

Weaponized Talent Acquisition: Deceptive Technical Assessments

The adversaries' primary vector relies on sophisticated social engineering orchestrated over LinkedIn and GitHub:

  • Fictitious Headhunters: Operatives construct convincing recruiter personas claiming to represent Tier-1 technology companies or venture capital firms, enticing candidates with premium compensation packages.
  • Malicious Technical Challenges: Candidates are directed to download and review a software repository (frequently structured as a legitimate Node.js or Python repository) presented as an interview assessment.
  • Stealthy Execution Hooks: When the developer executes standard setup commands like `npm install` or `pip install`, embedded package lifecycle hooks (e.g., `preinstall` or `postinstall`) execute obfuscated code in the background, staging the primary payload without throwing compiler errors.

Dissecting the Ted and curlRAT Backdoor Ecosystem

Both newly uncovered payloads demonstrate rigorous operational hardening tailored specifically against developer endpoints:

  • Ted Backdoor: A modular C2 framework establishing encrypted communications with adversary infrastructure. It systematically crawls local directory trees to harvest private SSH keys, active cloud provider credentials (AWS, GCP, Azure), cryptocurrency wallet keys, and `.env` configuration files.
  • curlRAT: A lightweight operational utility that abuses the ubiquitous, legitimate `curl` command-line tool to transmit exfiltrated environment data and retrieve secondary shell commands. Because `curl` is standard across macOS and Linux environments and constantly leveraged by developers, its network signatures routinely bypass egress monitoring.

Critical Defense Steps for Software Developers

Developers operating in high-assurance or cloud environments should enforce the following operational controls: 1. Never Execute Untrusted Repositories on Primary Workstations: Isolate all third-party code evaluations within non-persistent, network-segmented virtual machines (VMs) or containerized sandbox environments with zero access to personal host directories. 2. Audit Build Hooks Prior to Installation: Inspect `package.json`, `Makefile`, and `setup.py` files for suspicious network calls or pre/post-install lifecycle triggers before invoking package managers. 3. Transition to Hardware-Backed Secrets: Store private SSH signing and access keys on hardware security tokens (e.g., FIDO2/PIV YubiKeys), preventing memory-scraping utilities from harvesting keys from `~/.ssh/`. 4. Implement Short-Lived Credential Scopes: Cease storing static cloud access credentials in plaintext configuration files. Enforce short-lived, role-assumed tokens.

Actionable Guidance for Corporate Security Leadership

  • Segment Build Pipelines from Developer Workstations: Ensure code committed to CI/CD pipelines undergoes automated software composition analysis (SCA) and sandbox detonation prior to deployment.
  • Monitor Terminal and Egress Telemetry: Configure Endpoint Detection and Response (EDR) agents to detect anomalous process lineages, such as runtime engines (`node.exe`, `python`) invoking shell utilities (`curl`, `bash`, `powershell`) against unclassified foreign IP addresses.
  • Enforce Private Package Repositories: Mandate that internal development builds route through a strictly audited, private package proxy (e.g., Artifactory, Nexus) that quarantines newly published public packages.

Sources & References

← All News Tools