Install Linters, Get Malware — DevSecOps Speedrun Edition
Recommend song to listen to while reading.
If you find something off with what I say, please let me know. I’ll gladly amend my content and credit you for the fix.
Some thanks in alphabetical order for all those who supported this blog post:
- Bakki & Deluks for supporting my insane rambling.
- Rad for helping me ID the initial phish as a Device Code phishing
- Struppigel for helping us associate this sample to others.
- Rajnikanth for the last second memes
- cxiao for pointing us towards the second stage payload
- And most importantly: Josh from InvokeRe for being an exceptional partner and a great mentor. Couldn’t have done this one without his big ol’ brain.
Preface
This blog post was written as a partnership with Josh at InvokeRE. Josh is an absolute beast and a fantastic teacher. If you’re curious about reverse engineering, binary ninja or IDA, he’s your guy. In a bind and need a team of cracked nerds to assess malware, create detection rules and reverse it? InvokeRE is there for you! Interested in some onsite or virtual training? You get the idea.
You can find more about what InvokeRE offers on their website: https://invokere.com/.

This article won’t be touching on the actual phishing campaign. Rad was able to document and reproduce what went on in his writeup called “From Phish to Package: NPM Supply Chain Attacks” in which he dives into the technical details of this novel phishing tactic.
Due to multiple references to the string “SCVNGR” and “Scavenger” in most variants we found, we decided to name it “Scavenger”.
On Friday July 18th, a number of GitHub users reported a popular NPM package eslint-config-prettier having releases published despite code changes not being reflected within their Github repository. The maintainer later acknowledged that their NPM account had been compromised via a phishing email (Figure 1).

They later acknowledged the following NPM packages had been affected:
- eslint-config-prettier
- 8.10.1
- 9.1.1
- 10.1.6
- 10.1.7
- eslint-plugin-prettier
- 4.2.2
- 4.2.3
- snyckit
- 0.11.9
- @pkgr/core
- 0.2.8
- napi-postinstall
- 0.3.1
This blog covers the infection vector used with the compromised package eslint-config-prettier for the Scavenger loader, the Scavenger infostealer and an overview of both of their functionalities.
Oh and obviously all of this had to happen on a Friday. Because who needs to enjoy their weekend anyways right?

Infection Vector
The eslint-config-prettier package shipped an install.js file with the function logDiskSpace() that is executed upon the NPM package’s installation. On Windows the package launched the shipped node-gyp.dll via rundll32.exe.
Scavenger Loader
Hash: c68e42f416f482d43653f36cd14384270b54b68d6496a8e34ce887687de5b441
The DLL is a loader malware variant written in Microsoft Visual Studio C++ that was compiled on 2025-07-18 08:59:38 UTC - the same day that the malicious package was distributed. The DLL contains the export name loader.dll.
The functionality is largely within a monolithic function that contains a number of anti-analysis techniques, including:
- anti-VM detection
- antivirus detection
- dynamically resolved runtime functions
- XOR string decryption
- indirect syscalls to bypass antivirus and endpoint detection and response (EDR) technologies
Editor’s note: The installer code, anti-analysis checks, hook and syscall routines, and decryption scripts and screenshots have been omitted.
One of the first things analysts might notice is the perceived heaviness of the sample. From a debugger’s perspective, much of the loader appears to reside within a single, expansive function. This complexity is likely compounded by the fact that the sample seems to compute the CRC32 hash of each import function every time it’s needed, rather than caching and reusing the result.
It’s also important to note that, besides the statically linked imports, Scavenger was also found to dynamically load ole32.dll and shell32.dll for COM operation purposes.
Josh was also kind enough to create a Binary Ninja script to decrypt all encrypted strings. The XOR routine used was later on identified as being xorstr. S/O to hexamine22 for pointing this out to me!
C2 communications
Encryption
The encryption algorithm used by Scavenger was found to be using XXTEA which is a somewhat simple block cipher. All payloads exchanged between the C2 and the victim are found to be using this block cipher.
General notes
- Scavenger leverages
libcurlto communicate with the C2 - All encrypted payloads were found to be sent as base64 encoded
Scavenger Stealer
The second stage that gets dropped is extremely similar to the loader. It employs the same debugging tricks, the same function hashing algorithm, the same embedded string obfuscation and the same C2 communication block-cipher.
Additional samples
Thanks to Twitter user Malware Utkonos I was able to run our scripts on multiple other sample found in the previously mentioned infected NPM packages. This ended up providing very valuable IOCs such as additional C2s that weren’t reported (for this specific attack) just yet.

Chromium is targeted
While analyzing Scavenger, several encrypted strings stood out due to their strong association with Chrome internals: Extensions, ServiceWorkerCache, DawnWebGPUCache, and Visited Links. These artifacts suggest the malware is specifically aware of, or targeting, browser-level data. Here’s what each component does and why it might matter. The second stage of Scavenger is almost certainly a stealer.
Extensions
Chrome extensions can hold sensitive data such as authentication tokens, private keys, or browsing behavior. Malware targeting this area may attempt to extract data from security-related extensions (e.g., password managers) or manipulate installed extensions for persistence or exfiltration.
ServiceWorkerCache
This is used to store background worker scripts and cached responses for Progressive Web Apps (PWAs). Access to it could allow malware to extract session data, cached web app resources, or tamper with offline content, especially for services like messaging or productivity platforms.
DawnWebGPUCache
This refers to cached data from Chrome’s WebGPU implementation, “Dawn.” While not typically targeted, its presence suggests GPU feature detection or fingerprinting. It may also point to preparation for rendering-based exploits or optimized browser-based crypto mining.
Visited Links
This is part of Chrome’s browsing history mechanism. Access to it would allow the malware to recover visited URLs—potentially identifying high-value targets such as banking, cloud portals, or internal enterprise tools—for follow-on phishing or credential theft.
Slip ups & connection to BeamNG?
Interestingly enough, the sample c3536b736c26cd5464c6f53ce8343d3fe540eb699abd05f496dcd3b8b47c5134 was found to be slightly different from the rest. Everything from the XTEA encryption routine to the XOR static string obfuscation was identical but this one also contained a full blown curl command. This second stage was also much lighter than the others, sitting at a lean 70KiB.
Upon closer inspection, we also find a leftover PDB path that allows us to confirm the “real” name of this malware strain! Scavenger!!
C:\Users\user\Desktop\X\scavenger\scavenger-main\scavenger-client\x64\Release\dropper-cmd.pdb

At the time of analysis, the C2 endpoint returned a 502 (Connection Timed Out). That said, if you Google the domain, it leads to a great blog post (special thanks to Struppigel for pointing this out to me): https://lemonyte.com/blog/beamng-malware. The specific malware strain we are reviewing was also seen within a BeamNG executable. I highly recommend you go and read this blog post by Lemonite, it contains a ton more interesting information. Finally, the WinExec we saw in the sloppy payload is also visible in the infected BeamNG sample.
These two campaigns are most definitely linked.
IOCs
Here are the indicators we found.
Editor’s note: C2 request details, the variant’s download command and corresponding screenshots, and the list of live URLs have been omitted. The sample hashes are retained below.
Hashes
- 877f40dda3d7998abda1f65364f50efb3b3aebef9020685f57f1ce292914feae
- 9ec86514d5993782d455a4c9717ec4f06d0dfcd556e8de6cf0f8346b8b8629d4
- 0254abb7ce025ac844429589e0fec98a84ccefae38e8e9807203438e2f387950
- dd4c4ee21009701b4a29b9f25634f3eb0f3b7f4cc1f00b98fc55d784815ef35b
- c4504c579025dcd492611f3a175632e22c2d3b881fda403174499acd6ec39708
- 1aeab6b568c22d11258fb002ff230f439908ec376eb87ed8e24d102252c83a6e
- c3536b736c26cd5464c6f53ce8343d3fe540eb699abd05f496dcd3b8b47c5134
- 90291a2c53970e3d89bacce7b79d5fa540511ae920dd4447fc6182224bbe05c5
- 8c8965147d5b39cad109b578ddb4bfca50b66838779e6d3890eefc4818c79590
- 75c0aa897075a7bfa64d8a55be636a6984e2d1a5a05a54f0f01b0eb4653e9c7a
- 30295311d6289310f234bfff3d5c7c16fd5766ceb49dcb0be8bc33c8426f6dc4
- c68e42f416f482d43653f36cd14384270b54b68d6496a8e34ce887687de5b441
- 80c1e732c745a12ff6623cbf51a002aa4630312e5d590cd60e621e6d714e06de
- d845688c4631da982cb2e2163929fe78a1d87d8e4b2fe39d2a27c582cfed3e15