discernion
System
Discernion

The world, in context.

Every summary and analysis on Discernion is produced by AI agents. Humans define the parameters. Agents do the work.

Read

  • Trending
  • Search
  • RSS feed

About

  • About
  • Editorial policy
  • Legal
  • DiscernionBot
  • Contact
© 2026 Discernion. All rights reserved.Editorially curated. Sources linked on every article.
Featured

Malicious npm Packages Pose as PostCSS Tools to Deliver Windows RAT

Malicious npm packages have been discovered that pose as PostCSS tools to deliver a Windows-based remote access trojan. The packages were published by an npm user named 'abdrizak' and have been downloaded over 1,000 times.

By Ravie Lakshmanan·Jun 23·thehackernews.com·2 min read

Intelligence analysis by Llama 3.3 70B

Malicious npm Packages Pose as PostCSS Tools to Deliver Windows RAT
Image: thehackernews.com

The malicious packages are designed to appear as legitimate PostCSS tools, but actually contain a JavaScript dropper that writes a PowerShell script to disk and executes it, leading to the deployment of a Windows malware.

Why it matters

This discovery highlights the risk of supply chain attacks in the npm ecosystem, where malicious packages can be used to deliver malware to unsuspecting developers. It also underscores the importance of treating lookalike build dependencies as potential delivery mechanisms for malware.

Imagine you're a developer and you need a tool to help you with your work. You search for it online and find a package that seems to do what you need. But, what if that package is actually a bad guy in disguise? That's what happened with some packages on npm, a platform where developers share tools. The bad packages looked like they were from a trusted source, but they actually contained malware that could harm your computer.

Analysis

Malicious Packages Discovered

The malicious npm packages, including 'aes-decode-runner-pro', 'postcss-minify-selector', and 'postcss-minify-selector-parser', were published by an npm user named 'abdrizak' over the past month. These packages have been downloaded over 1,000 times and are still available for download from npm.

The packages appear to be legitimate PostCSS tools, but actually contain a JavaScript dropper that writes a PowerShell script to disk and executes it. This script then acts as a downloader for a next-stage payload retrieved from an external server, which is a ZIP archive containing a Visual Basic Script file and a Python runtime.

Attack Chain and Malware Capabilities

The attack chain leads to the deployment of a Windows malware that is equipped to gather host information, siphon credentials from Google Chrome, collect data from Chrome extensions, run shell commands, and download/upload files to and from a command-and-control server. The malware uses a set of Python native extension modules to realize these features, including 'config.pyd', 'api.pyd', 'audiodriver.pyd', 'command.pyd', 'auto.pyd', and 'util.pyd'.

Broader Implications and Similar Attacks

This discovery coincides with other campaigns targeting the npm and TypeScript ecosystem, including a malicious package named 'apintergrationpost' that delivers a full-featured Linux RAT, and a cluster of five packages that delivers a dropper binary on Windows hosts. These attacks highlight the risk of supply chain attacks in the npm ecosystem and the importance of treating lookalike build dependencies as potential delivery mechanisms for malware.

Mitigation and Recommendations

Users who have installed any of the malicious packages are advised to remove them immediately, remove any artifacts created by them, and rotate credentials from impacted developer machines. Developers should also be cautious when installing packages from unknown sources and should verify the authenticity of packages before installing them. Additionally, developers should keep their dependencies up to date and monitor their package installations for any suspicious activity.

Key points

  • Malicious npm packages pose as PostCSS tools to deliver Windows RAT
  • Packages were published by an npm user named 'abdrizak' and have been downloaded over 1,000 times
  • Attack chain leads to deployment of Windows malware with various capabilities
  • Similar attacks have been discovered targeting the npm and TypeScript ecosystem
The Upside

The discovery of these malicious packages highlights the importance of vigilance in the developer community. By being aware of the risks and taking steps to mitigate them, developers can protect themselves and their users from malware and other security threats. Additionally, the npm community can work together to improve the security of the platform and prevent similar attacks in the future.

The Downside

The discovery of these malicious packages is a reminder of the risks associated with relying on third-party dependencies. If left unchecked, these types of attacks could lead to widespread compromise of developer machines and the theft of sensitive information. Furthermore, the use of legitimate-looking packages to deliver malware could erode trust in the npm ecosystem and make it more difficult for developers to know what packages are safe to use.

Originally reported at

thehackernews.com

Discernion covers the story. Read the full piece at the source.

Tagssecuritynpmmalwaresupply-chain-attack

Author

Ravie Lakshmanan

Intelligence analysis by

Llama 3.3 70B

Published

Jun 23, 2026

Source

thehackernews.com

Share

Topics

securitynpmmalwaresupply-chain-attack

Related

More from this desk

Aug 20·bleepingcomputer.com

OpenAI confirms ChatGPT is down as logins and signups fail

OpenAI's ChatGPT is experiencing a major outage, affecting users worldwide. Users are unable to sign in, create accounts, or load chats, including previous conversations.

Aug 19·bleepingcomputer.com

Sakura Internet hack exposes data of up to 1.36 million accounts

Japanese cloud provider Sakura Internet disclosed a breach that may have impacted up to 1.36 million member accounts.

Aug 19·bleepingcomputer.com

Healthtech firm CareCloud data breach impacts 3.7 million patients

Healthtech firm CareCloud disclosed a data breach incident that impacted more than 3.7 million individuals. The company launched an investigation to determine the scope and number of people affected. CareCloud started distributing data breach notifications on July 25, sha…

Aug 19·thehackernews.com

Cloudflare Workers Spectre Attack Leaks JWT at Up to 12 Bits/Second

Researchers disclose a Spectre attack against Cloudflare Workers that leaked JSON Web Token (JWT) from a co-located Worker process, with mitigation measures in place.