MAL-2026-10218

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pure-folder-three/MAL-2026-10218.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10218
Aliases
  • GHSA-9w58-3cgj-jw7v
Published
2026-07-13T01:52:55Z
Modified
2026-07-13T05:01:59.954388766Z
Summary
Malicious code in pure-folder-three (npm)
Details

-= Per source details. Do not edit below this line.=-

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "versions": [
                "0.7.3",
                "0.7.1",
                "0.7.0",
                "0.6.0",
                "0.5.0"
            ],
            "id": "GHSA-9w58-3cgj-jw7v",
            "modified_time": "2026-07-13T01:52:56Z",
            "sha256": "887e7a8ffa4cbf636ad2fbeddbcdde33aa6a325c9e033561009be3e1095001d3",
            "import_time": "2026-07-13T01:55:08.932606456Z",
            "source": "ghsa-malware"
        },
        {
            "versions": [
                "0.7.3"
            ],
            "id": "IN-MAL-2026-009788",
            "modified_time": "2026-07-13T04:13:16Z",
            "import_time": "2026-07-13T04:43:12.449519012Z",
            "sha256": "6e83bf74d7c84c48a1a478d7bb40bbd899c4fda613f1512b66184d3de478b480",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / pure-folder-three

Package

Affected ranges

Affected versions

0.*
0.5.0
0.6.0
0.7.0
0.7.1
0.7.3

Database specific

indicators
{
    "evidence_files": [
        {
            "sha256": "7c690a2c3778495185735a17a12a08fd8d216a6f5695ebe992e8cb4919b83b63",
            "tlsh": "d3d02bf1819632f0ed508bf5ea210ab194f7c630b205c1d131cc908f13470180332865",
            "path": "src/tools.js"
        },
        {
            "sha256": "c31a3066f8bdc6ff47de8ce7512ab8a5d4b7b211773198384d444a340c8a0d4a",
            "tlsh": "9a0125c196dd385316f713e2f2e644c5edfa03656209b189bca885ae0f096d88193ff5",
            "path": "src/const.js"
        },
        {
            "sha256": "fe4eea4414f07acf0ce593ba45bc90d8489b0583d8140bc9007bf82f47d89ba9",
            "tlsh": "dde08672c52a551a02e20b9822358559dab6f17227825565325c5246bf71561061292f",
            "path": "src/build.js"
        },
        {
            "tlsh": "08c1dc49846d2625197733b89f024608f75a96772042822dbebc43d57fb341890bafec",
            "sha256": "c51bf168792ea3b6dbe793edaf9c6841357bcf675b70eaf90b4dfc1da7a80b92",
            "path": "src/index.js"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pure-folder-three/MAL-2026-10218.json"