{"id":2360,"date":"2025-08-19T00:57:57","date_gmt":"2025-08-19T00:57:57","guid":{"rendered":"http:\/\/ft365.org\/index.php\/2025\/08\/19\/popular-npm-package-compromised-in-phishing-attack\/"},"modified":"2025-08-19T00:57:57","modified_gmt":"2025-08-19T00:57:57","slug":"popular-npm-package-compromised-in-phishing-attack","status":"publish","type":"post","link":"http:\/\/ft365.org\/index.php\/2025\/08\/19\/popular-npm-package-compromised-in-phishing-attack\/","title":{"rendered":"Popular npm Package Compromised in Phishing Attack"},"content":{"rendered":"<div id=\"cphContent_pnlArticleBody\" data-layout-id=\"2\" data-edit-folder-name=\"text\" data-index=\"0\">\n<p>A significant security incident involving the widely used npm package \u201ceslint-config-prettier\u201d has been uncovered.<\/p>\n<p>The package, downloaded more than 3.5 billion times, was compromised on July 18 after its maintainer fell victim to a phishing campaign. ReversingLabs\u2019\u00a0automated detection system and the Socket research team reported the attack the same day.<\/p>\n<p>Malicious versions of the package, along with others maintained by the same developer, were published using stolen credentials. The tampered files contained a script designed to drop the Scavenger remote access Trojan (RAT) on Windows systems.<\/p>\n<p>Although the compromised versions were available for less than two hours, the package\u2019s 36 million weekly downloads meant the potential impact was significant.<\/p>\n<h2>How the Attack Spread<\/h2>\n<p>According to an advisory published by ReversingLabs last week, the phishing campaign targeted npm maintainers through emails spoofing the official support address.<\/p>\n<p>Victims were lured to a fake npm site with tokenized URLs \u2013 an indication of deliberate targeting.<\/p>\n<p>Once the maintainer\u2019s\u00a0credentials were stolen, attackers released infected versions of several related packages, including eslint-plugin-prettier and synckit.<\/p>\n<p><em>Read more on supply chain security in open source software: Novel Open Source Supply Chain Attacks Target Banking Sector<\/em><\/p>\n<p>Complications arose because many projects declare eslint-config-prettier as a direct dependency rather than a devDependency. ReversingLabs identified more than 14,000 such cases, which created an avenue for downstream compromises.<\/p>\n<h2>The Role of Automated Updates<\/h2>\n<p>Automated tools, such as GitHub\u2019s Dependabot, amplified the damage. These systems can open and merge pull requests to update dependencies without human review.<\/p>\n<p>Several repositories, including one managed by the European e-bike company Dott, were found to have automatically pulled in malicious versions.<\/p>\n<p>While GitHub-hosted runners limit persistence, organizations using self-hosted runners may have faced greater risks.<\/p>\n<p>ReversingLabs detected 46 projects that installed the compromised version during the attack window, including one hosted on a Microsoft-owned repository.<\/p>\n<p>\u201cEven a narrow exposure window can have large repercussions,\u201d\u00a0the researchers noted.<\/p>\n<h2>Lessons for Developers<\/h2>\n<p>The incident highlights the challenges of dependency management in modern software development. Automated updating reduces risks from outdated code but can introduce threats when malicious versions slip through.<\/p>\n<p>ReversingLabs recommended several practices:<\/p>\n<ul>\n<li>\n<p>Delay non-critical updates to allow time for detection of malicious versions<\/p>\n<\/li>\n<li>\n<p>Separate dependencies from devDependencies<\/p>\n<\/li>\n<li>\n<p>Configure build workflows to prevent unnecessary installations in production<\/p>\n<\/li>\n<li>\n<p>Avoid merging automated pull requests without manual review<\/p>\n<\/li>\n<\/ul>\n<p>As supply chain attacks increase, researchers emphasize that dependency hygiene and cautious automation are crucial safeguards.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A significant security incident involving the widely used npm package \u201ceslint-config-prettier\u201d has been uncovered. The package, downloaded more than 3.5 billion times, was compromised on July 18 after its maintainer fell victim to a phishing campaign. ReversingLabs\u2019\u00a0automated detection system and the Socket research team reported the attack the same day. Malicious versions of the package<\/p>\n","protected":false},"author":2,"featured_media":2361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2360","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"featured_image_urls":{"full":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"thumbnail":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0-150x150.jpg",150,150,true],"medium":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"medium_large":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"large":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"1536x1536":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"2048x2048":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"morenews-featured":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"morenews-large":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"morenews-medium":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0.jpg",300,300,false],"crawlomatic_preview_image":["http:\/\/ft365.org\/wp-content\/uploads\/2025\/08\/2360-2c2a3ab2-5f87-4062-bd33-634402cba9e0-146x146.jpg",146,146,true]},"author_info":{"display_name":"henry","author_link":"http:\/\/ft365.org\/index.php\/author\/henry\/"},"category_info":"<a href=\"http:\/\/ft365.org\/index.php\/category\/uncategorized\/\" rel=\"category tag\">Uncategorized<\/a>","tag_info":"Uncategorized","comment_count":"0","_links":{"self":[{"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/posts\/2360","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/comments?post=2360"}],"version-history":[{"count":0,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/posts\/2360\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/media\/2361"}],"wp:attachment":[{"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/media?parent=2360"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/categories?post=2360"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ft365.org\/index.php\/wp-json\/wp\/v2\/tags?post=2360"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}