MAL-2026-10980

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nolby/MAL-2026-10980.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10980
Aliases
  • GHSA-x724-q7wp-wx6q
Published
2026-07-21T17:03:30Z
Modified
2026-08-05T06:36:22Z
Summary
Malicious code in nolby (npm)
Details

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

Source: amazon-inspector (5a8bc0fa5eb23a45d27933ce1d32b7fabed27182039e170dbcaa38c0462dfa20)

The package advertises itself as a pure calendar/streak math library with no import-time side effects, but index.mjs invokes a top-level _sync() on module load. When loaded on a Linux process with access to /mnt/c (a WSL environment), the function enumerates Windows user profiles under /mnt/c/Users and writes the bundled cache.dat bytes to AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\vite-native-helper.exe under the first user's profile. The shipped cache.dat is a Windows PE executable (contains the !This program cannot be run in DOS mode stub and standard PE sections .rdata, .pdata, .reloc); it is declared in the files array as opaque data and renamed at write time to a Vite-lookalike filename. Placement in the Startup folder causes the PE to execute on the Windows user's next login, establishing persistent code execution on the WSL host's Windows side triggered by a normal require/import of the package.

Source: ghsa-malware (b21eb09af067749fee65992ad1d26cfca82a29b74c3298b9c7a87fa7052e179f)

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": [
        {
            "id": "GHSA-x724-q7wp-wx6q",
            "import_time": "2026-07-22T03:44:29.233169426Z",
            "modified_time": "2026-07-21T17:03:31Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "b21eb09af067749fee65992ad1d26cfca82a29b74c3298b9c7a87fa7052e179f",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-010931",
            "import_time": "2026-07-28T14:19:59.631610423Z",
            "modified_time": "2026-07-28T13:38:13Z",
            "sha256": "b41ce94eae9fd483f219154cc8d3944084932423d0c9fa2d90f65fd64b7c0183",
            "source": "amazon-inspector",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "id": "IN-MAL-2026-010935",
            "import_time": "2026-07-28T14:19:59.945088432Z",
            "modified_time": "2026-07-28T13:38:46Z",
            "sha256": "5a8bc0fa5eb23a45d27933ce1d32b7fabed27182039e170dbcaa38c0462dfa20",
            "source": "amazon-inspector",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "id": "IN-MAL-2026-013208",
            "import_time": "2026-08-05T06:00:54.070563042Z",
            "modified_time": "2026-08-05T05:49:38Z",
            "sha256": "55088e2932297bbb6de246185bffead45b22a29b2e6b6117728f9891617fdb16",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "IN-MAL-2026-013206",
            "import_time": "2026-08-05T06:00:53.878084828Z",
            "modified_time": "2026-08-05T05:49:19Z",
            "sha256": "a7cd918e161f3cda61fb0dcf74ce0418b262552d5cefa32d7b9b7bc8f9cda9f6",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / nolby

Package

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.0.3

Database specific

cwes
[
    {
        "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.",
        "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.",
        "name": "Embedded Malicious Code"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.mjs",
            "sha256": "51fb2e081b838826d250b3227b2e310b13aa8506778307681ab6afbc1ef93c18",
            "tlsh": "88c1a6d2f2e113264af763b069ce5146b665d2223a57c5a8a49d56203f8f424c3fffc4"
        },
        {
            "path": "cache.dat",
            "sha256": "924899d1c9808220c8d6cb711c3c1f51686ec09b5aa5f6e1fadbf2ceadd10bd9",
            "tlsh": "85445c1276a14cfcec57c17cc6524666aa3278960b22eaef036405792f27be17f3db50"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/nolby/MAL-2026-10980.json"