Cybersecurity news

Jessica Doner

Back to the list

MALFEX npm Package 'imgdecode' Hides Shellcode Loader in Windows Native Addon

The Hacker News,

A malicious npm package named imgdecode, part of the MALFEX campaign, hides a shellcode loader in a Windows native addon.

Malware and ransomwareEncryption and certificates

Overview

Researchers found a malicious npm packageA reusable web code library published to the public npm registry for developers to install named imgdecode that hides a loaderA stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads inside a compiled Node.js addon. When a Windows program calls this package, it downloads encryptedTurn plaintext into ciphertext with a key shellcodeRaw machine instructions injected during an exploit to open a command shell or download malware from GitHub and injects it into a new dllhost.exe process. This package is part of a long-running campaign called MALFEX that has been publishing malicious packages to npm since August 6, 2023. The threat actorA person or group that carries out cyberattacks, whether for money, spying, or disruption has used five publisher handles to distribute eight identified packages that target Windows systems. Some of these packages act as a loader for Overlord RATMalware disguised as a normal file that gives an attacker remote control over the victim's computer, while others work together to download and run a Node.js stealerMalware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. The package has been downloaded 979 times and remains available on npm as of the time of writing.

Terms in this story

npm Package
A reusable web code library published to the public npm registry for developers to install. Web developers pull in dozens of npm packages when building a site, and attackers frequently publish malicious packages with lookalike names to steal developer credentials during installation. Security+ objective 2.2 lists the term
Loader
A stage of malware that runs first on an infected machine to fetch, decrypt, and launch other payloads. Criminal groups specialize in spreading a stealthy loader through spam or fake downloads and then charge ransomware and infostealer operators to deliver their malware onto those infected PCs. Security+ objective 2.4 lists the term
encrypted
Turn plaintext into ciphertext with a key. News stories use this verb when a defense scrambles sensitive records before storing them, or when ransomware locks a company's files so staff cannot open them without paying for the key. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
Shellcode
Raw machine instructions injected during an exploit to open a command shell or download malware. When an attacker exploits a buffer overflow, they often place compact shellcode into memory so the hijacked program immediately connects back to their server.
DLL
A shared code library file that multiple programs on a computer can load while running. Instead of baking every helper function into one huge program, software loads DLL files as needed, which attackers abuse by swapping in a malicious DLL of the same name.
threat actor
A person or group that carries out cyberattacks, whether for money, spying, or disruption. Security researchers use the term threat actor to refer to a criminal gang, state spy unit, or solo hacker behind a series of intrusions. Security+ objective 2.1 lists the term
RAT
Malware disguised as a normal file that gives an attacker remote control over the victim's computer. Once installed, a remote access trojan lets the attacker watch the screen, record keystrokes, browse files, and run commands as if sitting at the keyboard. Security+ objective 2.4 lists the term
stealer
Malware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. Victims often download an infostealer through a fake game crack or malicious ad, and the stolen login cookies are then sold to ransomware crews on criminal markets. Security+ objective 2.4 lists the term
software supply chain
All the open-source libraries, build tools, code repositories, and update servers that go into making a program. Protecting the software supply chain means making sure no attacker has tampered with the third-party packages, build pipelines, or signing keys used to ship an application.
registry
A central database of system settings on a computer or a public catalog that hosts software packages. In security news, the registry means either the operating system settings database where malware adds startup entries or a public package registry where developers download code libraries.
supply chain attack
Breaking into a software maker or vendor so their trusted product or update infects their customers. Instead of attacking a hundred companies one by one, an intruder compromises a single software library or update server that all of those companies already trust. Security+ objective 2.2 lists the term
JavaScript
The programming language that web browsers run to make web pages interactive, and that also runs on servers. Because every browser runs JavaScript automatically when loading a page, attackers use malicious JavaScript in cross-site scripting, fake browser updates, and compromised software packages.

This page is a short description made for this site. The article itself, with its author's name and its own link, is on the The Hacker News website. Cite the article, not this page.

Read the full article on The Hacker News (opens in a new tab)

Course connections

Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.

How a story is connected to the course, and every objective, week and job role

Related