Skip to content
OpenAdvisories
Malicious MAL-2026-10218 GHSA-9w58-3cgj-jw7v

pure-folder-three

npm package · versions 0.7.3, 0.7.1, 0.7.0, 0.6.0, 0.5.0

Reported Jul 13, 2026 · Updated Jul 13, 2026

If this package is installed

Remove it, treat the machine (or CI runner) as compromised, and rotate every secret, token and key it could access — from a different, clean machine.

Details

Source: amazon-inspector (6e83bf74d7c84c48a1a478d7bb40bbd899c4fda613f1512b66184d3de478b480)
pure-folder-three@0.7.3 executes attacker-controlled shell commands on install and on import. The postinstall entry (src/build.js) decodes an obfuscated destination via base-45/base-77 fromCharCode arithmetic, resolving to https://rnjkerbf.org/T/ with process.platform appended, and dynamically resolves require('https') through the same decoder. It issues an https request to that host and passes the response's `m` header directly to child_process.execSync, giving the remote server arbitrary command execution on the installer host. The payload is gated by a username check that skips execution when USER/LOGNAME/USERNAME contains 'justin', excluding the author's own machine while running on every other installer. The same chain is also reachable at require/import time: src/index.js imports './build.js' from the package main, so consumers that load the module trigger the fetch-and-exec chain even with npm install --ignore-scripts. The URL, hostname, and the 'https' module name are all reconstructed from numeric arrays, concealing the network destination and the execution sink.

Source: ghsa-malware (887e7a8ffa4cbf636ad2fbeddbcdde33aa6a325c9e033561009be3e1095001d3)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.