https://www.sonatype.com/blog/counterfeit-eslint-and-node-types-libraries-downloaded-thousands-of-times-abuse-pastebin

Cybersecurity researchers have discovered a wave of malicious npm packages and Visual Studio Code (VSCode) extensions targeting developers. These packages, disguised as legitimate tools for cryptocurrency development and productivity, secretly download and execute malicious payloads.

The Attack:

  • Typosquatting: Attackers created malicious packages with names that closely resemble legitimate ones, such as “@typescript_eslinter/eslint” instead of “typescript-eslint.”
  • Fake Reviews and Inflated Downloads: These packages were promoted with fake reviews and artificially inflated download counts to appear legitimate.
  • Malicious Functionality: The packages contain code that downloads and executes malicious payloads, including trojans and cryptocurrency miners.
  • VSCode Marketplace Compromise: Several malicious extensions were also found on the VSCode Marketplace, targeting cryptocurrency developers and Zoom users.

Impact:

  • Data Theft: The malicious payloads can steal sensitive data, including credentials and source code.
  • Supply Chain Attacks: These attacks highlight the growing threat of supply chain attacks, where malicious code is introduced into the software development process.
  • Compromised Development Environments: The compromise of development environments can lead to the spread of malware throughout an organization.

Recommendations:

  • Thorough Vetting: Developers should carefully vet all packages and extensions before installing them, checking the source and reputation of the developer.
  • Regular Security Audits: Regular security audits of development environments are crucial to identify and mitigate potential threats.
  • Strong Password Practices: Use strong, unique passwords for all accounts, including those used for development tools and repositories.

This incident underscores the importance of maintaining a strong security posture throughout the entire software development lifecycle.