{"id":1508,"date":"2025-05-23T20:37:41","date_gmt":"2025-05-23T17:37:41","guid":{"rendered":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/"},"modified":"2025-05-23T20:37:41","modified_gmt":"2025-05-23T17:37:41","slug":"identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection","status":"publish","type":"post","link":"https:\/\/trustcrypt.com\/ar\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/","title":{"rendered":"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" alt=\"Dozens of malicious packages on NPM collect host and network data\" height=\"900\" src=\"https:\/\/www.bleepstatic.com\/content\/hl-images\/2022\/07\/05\/NPM<em>head<\/em>pic.jpg&#8221; width=&#8221;1600&#8243;><\/p>\n<p>Recent analysis has revealed the presence of 60 malicious packages within the NPM index, which are designed to collect sensitive host and network data to transmit it to a Discord webhook controlled by malicious actors.<\/p>\n<p>The packages were identified by the Threat Research team at Socket, who noted that these malicious uploads began on May 12 from three distinct publisher accounts.<\/p>\n<p>Each of the identified packages includes a post-install script that executes automatically during the installation process (<code>npm install<\/code>). This script is capable of gathering the following information:<\/p>\n<ul>\n<li>Hostname<\/li>\n<li>Internal IP address<\/li>\n<li>User home directory<\/li>\n<li>Current working directory<\/li>\n<li>Username<\/li>\n<li>System DNS servers<\/li>\n<\/ul>\n<p>The script actively probes for hostnames linked to cloud service providers and attempts to identify reverse DNS strings, ostensibly to discern whether it is operating within a secure analysis environment.<\/p>\n<p>Although the Socket team did not observe the deployment of second-stage payloads or privilege escalation mechanisms, the nature of the information gathered poses a significant risk for targeted network attacks.<\/p>\n<h2>Malicious Packages Still Present on NPM<\/h2>\n<p>Despite reporting the findings, as of the time of writing, these malicious packages remained accessible on the NPM repository with a total download count of approximately 3,000. However, subsequent to the publishing of this article, they have been removed from the repository.<\/p>\n<p>In a bid to deceive developers into utilizing their packages, the threat actors employed package names that closely resemble legitimate ones available in the index, such as \u2018flipper-plugins,\u2019 \u2018react-xterm2,\u2019 and \u2018hermes-inspector-msggen.\u2019 These names were crafted to evoke a sense of trust, with some hinting at testing purposes, which may target Continuous Integration\/Continuous Deployment (CI\/CD) pipelines.<\/p>\n<p>A comprehensive list of the 60 malicious packages is available through Socket\u2019s detailed report.<\/p>\n<p>For any developers who may have inadvertently installed these packages, it is crucial to remove them immediately and conduct a thorough system scan to eliminate any traces of infection.<\/p>\n<h2>Data Wipers on NPM<\/h2>\n<p>In a separate malware campaign identified by Socket, eight malicious packages mimicking legitimate tools through typosquatting have been discovered. These packages possess the capability to delete files, corrupt data, and cause system failures.<\/p>\n<p>Targeting ecosystems including React, Vue.js, Vite, Node.js, and Quill, these malicious packages have existed on the NPM platform for the past two years, accumulating around 6,200 downloads.<\/p>\n<p>Their longevity can be attributed to the activation of their malicious payloads based on hardcoded system dates, and they were designed to systematically delete framework files, corrupt core JavaScript methods, and sabotage browser storage systems.<\/p>\n<div style=\"text-align:center\">\n<figure class=\"image\" style=\"display:inline-block\"><img loading=\"lazy\" decoding=\"async\" alt=\"Script designed to delete Vue.js-related files on June 19\u201330, 2023\" height=\"501\" src=\"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.jpg\" width=\"609\"><figcaption><strong>Script designed to delete Vue.js-related files on June 19\u201330, 2023<\/strong><br \/><em>Source: Socket<\/em><\/figcaption><\/figure>\n<\/div>\n<p>The threat actor responsible for this campaign, operating under the pseudonym \u2018xuxingfeng\u2019, also published several legitimate packages to enhance the credibility of their account and evade detection.<\/p>\n<p>While the immediate threat may have diminished due to the reliance on hardcoded dates, it remains imperative to uninstall these packages. The author could potentially issue updates that re-initiate destructive payloads in the future.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1509,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"Default","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[28],"tags":[632,631,630],"class_list":["post-1508","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","tag-files","tag-packages","tag-scripts"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection - Trustcrypt<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/trustcrypt.com\/ar\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/\" \/>\n<meta property=\"og:locale\" content=\"ar_AR\" \/>\n<meta property=\"og:locale:alternate\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection\" \/>\n<meta property=\"og:url\" content=\"https:\/\/trustcrypt.com\/ar\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/\" \/>\n<meta property=\"og:site_name\" content=\"Trustcrypt\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-23T17:37:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.jpg\" \/>\n<meta name=\"author\" content=\"Trustscrypt\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u0643\u064f\u062a\u0628 \u0628\u0648\u0627\u0633\u0637\u0629\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trustscrypt\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u0648\u0642\u062a \u0627\u0644\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u064f\u0642\u062f\u0651\u0631\" \/>\n\t<meta name=\"twitter:data2\" content=\"\u062f\u0642\u064a\u0642\u062a\u0627\u0646\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/\",\"url\":\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/\",\"name\":\"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection\",\"isPartOf\":{\"@id\":\"https:\/\/trustcrypt.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp\",\"datePublished\":\"2025-05-23T17:37:41+00:00\",\"author\":{\"@id\":\"https:\/\/trustcrypt.com\/#\/schema\/person\/469b1cf97b9f7ea4e4d7fa31689dfa9f\"},\"inLanguage\":\"ar\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ar\",\"@id\":\"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage\",\"url\":\"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp\",\"contentUrl\":\"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp\",\"width\":1792,\"height\":1024,\"caption\":\"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection\"},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/trustcrypt.com\/#website\",\"url\":\"https:\/\/trustcrypt.com\/\",\"name\":\"Trustcrypt\",\"description\":\"\u0627\u0644\u0623\u0645\u0646 \u0647\u0648 \u0627\u0633\u0645\u0646\u0627 \u0627\u0644\u062b\u0627\u0646\u064a\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/trustcrypt.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ar\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/trustcrypt.com\/#\/schema\/person\/469b1cf97b9f7ea4e4d7fa31689dfa9f\",\"name\":\"Trustscrypt\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ar\",\"@id\":\"https:\/\/trustcrypt.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c36ff3376565a0f4981e9397667feb08d5e09acacce32a52ea4a3f628e03692?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c36ff3376565a0f4981e9397667feb08d5e09acacce32a52ea4a3f628e03692?s=96&d=mm&r=g\",\"caption\":\"Trustscrypt\"},\"sameAs\":[\"http:\/\/trustcrypt.com\"],\"url\":\"https:\/\/trustcrypt.com\/ar\/author\/trustscrypt\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection - Trustcrypt","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/trustcrypt.com\/ar\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/","og_locale":"ar_AR","og_type":"article","og_title":"[:en]Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection[:] - Trustcrypt","og_url":"https:\/\/trustcrypt.com\/ar\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/","og_site_name":"Trustcrypt","article_published_time":"2025-05-23T17:37:41+00:00","og_image":[{"url":"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.jpg","type":"","width":"","height":""}],"author":"Trustscrypt","twitter_card":"summary_large_image","twitter_misc":{"\u0643\u064f\u062a\u0628 \u0628\u0648\u0627\u0633\u0637\u0629":"Trustscrypt","\u0648\u0642\u062a \u0627\u0644\u0642\u0631\u0627\u0621\u0629 \u0627\u0644\u0645\u064f\u0642\u062f\u0651\u0631":"\u062f\u0642\u064a\u0642\u062a\u0627\u0646"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/","url":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/","name":"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection","isPartOf":{"@id":"https:\/\/trustcrypt.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage"},"image":{"@id":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage"},"thumbnailUrl":"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp","datePublished":"2025-05-23T17:37:41+00:00","author":{"@id":"https:\/\/trustcrypt.com\/#\/schema\/person\/469b1cf97b9f7ea4e4d7fa31689dfa9f"},"inLanguage":"ar","potentialAction":[{"@type":"ReadAction","target":["https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/"]}]},{"@type":"ImageObject","inLanguage":"ar","@id":"https:\/\/trustcrypt.com\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection\/#primaryimage","url":"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp","contentUrl":"https:\/\/trustcrypt.com\/wp-content\/uploads\/2025\/05\/identification-of-numerous-malicious-packages-on-npm-engaging-in-host-and-network-data-collection.webp","width":1792,"height":1024,"caption":"Identification of Numerous Malicious Packages on NPM Engaging in Host and Network Data Collection"},{"@type":"WebSite","@id":"https:\/\/trustcrypt.com\/#website","url":"https:\/\/trustcrypt.com\/","name":"Trustcrypt","description":"\u0627\u0644\u0623\u0645\u0646 \u0647\u0648 \u0627\u0633\u0645\u0646\u0627 \u0627\u0644\u062b\u0627\u0646\u064a","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/trustcrypt.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ar"},{"@type":"Person","@id":"https:\/\/trustcrypt.com\/#\/schema\/person\/469b1cf97b9f7ea4e4d7fa31689dfa9f","name":"Trustscrypt","image":{"@type":"ImageObject","inLanguage":"ar","@id":"https:\/\/trustcrypt.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c36ff3376565a0f4981e9397667feb08d5e09acacce32a52ea4a3f628e03692?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c36ff3376565a0f4981e9397667feb08d5e09acacce32a52ea4a3f628e03692?s=96&d=mm&r=g","caption":"Trustscrypt"},"sameAs":["http:\/\/trustcrypt.com"],"url":"https:\/\/trustcrypt.com\/ar\/author\/trustscrypt\/"}]}},"_links":{"self":[{"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/posts\/1508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/comments?post=1508"}],"version-history":[{"count":0,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/posts\/1508\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/media\/1509"}],"wp:attachment":[{"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/media?parent=1508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/categories?post=1508"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/trustcrypt.com\/ar\/wp-json\/wp\/v2\/tags?post=1508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}