MAL-2026-11657

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/time-interpreter/MAL-2026-11657.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-11657
Aliases
  • GHSA-397w-wmpp-x7x9
Published
2026-08-04T15:19:34Z
Modified
2026-08-05T08:50:30.375365750Z
Summary
Malicious code in @onereach/time-interpreter (npm)
Details

npm/@onereach/time-interpreter is affected by the large-scale, self-propagating npm supply-chain worm of 2026-08-04 (the "Shai-Hulud: Here We Go Again" wave) — the same campaign that began with the compromise of the keyv and cacheable maintainer account. The listed version(s) were trojanized and republished by the worm after it reached an npm publish token belonging to a maintainer in this namespace; the payload enumerates every package a stolen token controls and republishes each with the same hook, so many packages under this scope were poisoned in the same short window. Every poisoned release adds a preinstall hook ("preinstall": "node setup.mjs") that runs on a bare npm install, before any project code. setup.mjs downloads a standalone Bun runtime and runs a byte-identical, heavily obfuscated ~728 KB second-stage credential stealer (shipped as MathSymbol.js / mathinit.js). It harvests GitHub, npm, AWS, GCP, Azure, HashiCorp Vault and Kubernetes credentials plus generic secrets and private keys (TruffleHog-style sweep), reads CI/CD secrets and identifies build runners, then republishes further packages the stolen token can reach. Rather than a fixed command-and-control host, it exfiltrates stolen findings to attacker-created GitHub repositories (descriptions reading "Shai-Hulud: Here We Go Again") and over DNS. Treat any environment that installed an affected version (with install scripts enabled) as compromised: rotate and revoke all reachable credentials (npm and GitHub tokens, cloud keys, Vault/Kubernetes secrets, and CI org/repo secrets). Part of the August 2026 npm worm that poisoned 400+ packages across many organizations.


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

Source: amazon-inspector (b61b0801d2c8440881af997d904522e0c11ecb67187ca3636e14811069a72803)

The package declares scripts.preinstall = "node setup.mjs". setup.mjs is itself written with obfuscator.io-style identifier and string-array obfuscation (_0x488df8, _0x52943e, per-function lookup objects hiding trivial constants). At install time it downloads the Bun runtime binary from github.com/oven-sh/bun/releases (v1.3.13) into a temp directory, marks it executable, and invokes it via execFileSync against the package-local mathinit.js. mathinit.js is a ~727KB single-line file tagged // @bun @bun-cjs with heavy string-array-shift obfuscation (rotator function WV8StW, giant mixed number/string array n7gIxM, mangled identifiers), meaning it will not execute under Node and is intended to run only under the freshly dropped Bun runtime. The advertised purpose is date/duration parsing, which requires neither an alternate language runtime nor an opaque bundled payload. The combination — obfuscated lifecycle script + alternate-runtime download + execution of an opaque bundled blob under that alternate runtime on every npm install — is an alternate-runtime dropper that runs attacker-controlled, unreviewable code on the installer's machine before any application code sees it, and it is structured to evade Node-based static and dynamic review.

Source: ghsa-malware (4f34d293ee5a9816e61d3db0be22e45070ff34ccc045a7c6377a77c27b905cdc)

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
{
    "iocs": {
        "files": [
            {
                "paths": [
                    "setup.mjs"
                ],
                "note": "Stage 1 loader added to the package tarball and run via the preinstall script 'node setup.mjs'. Downloads a standalone Bun runtime and executes the second stage under it.",
                "source": "PACKAGE_ARCHIVE"
            },
            {
                "paths": [
                    "Math_Symbol.js",
                    "math_init.js"
                ],
                "note": "Stage 2 payload: byte-identical, heavily obfuscated ~728 KB Bun-bundle credential stealer, shipped in the tarball as Math_Symbol.js and executed at runtime as math_init.js.",
                "source": "PACKAGE_ARCHIVE"
            }
        ]
    },
    "malicious-packages-origins": [
        {
            "source": "ghsa-malware",
            "modified_time": "2026-08-04T16:36:18Z",
            "sha256": "4f34d293ee5a9816e61d3db0be22e45070ff34ccc045a7c6377a77c27b905cdc",
            "id": "GHSA-397w-wmpp-x7x9",
            "versions": [
                "1.0.32",
                "1.0.31",
                "1.0.30"
            ],
            "import_time": "2026-08-05T00:10:17.852421145Z"
        },
        {
            "import_time": "2026-08-05T07:06:59.612706752Z",
            "sha256": "554cee2778c6373ebc457c0d6de2d772dea9572355f3fa7455b6a2d72a71f783",
            "modified_time": "2026-08-05T07:00:41Z",
            "id": "IN-MAL-2026-013692",
            "versions": [
                "1.0.31"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:38.178984208Z",
            "modified_time": "2026-08-05T08:21:03Z",
            "sha256": "7e400effc6daef1538720fd446bb39902ccec0c85d71dbc2d95049e2589e132b",
            "id": "IN-MAL-2026-014236",
            "versions": [
                "1.0.30"
            ],
            "source": "amazon-inspector"
        },
        {
            "import_time": "2026-08-05T08:22:08.163326028Z",
            "modified_time": "2026-08-05T07:19:13Z",
            "sha256": "b61b0801d2c8440881af997d904522e0c11ecb67187ca3636e14811069a72803",
            "id": "IN-MAL-2026-013816",
            "versions": [
                "1.0.32"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / @onereach/time-interpreter

Package

Name
@onereach/time-interpreter
View open source insights on deps.dev
Purl
pkg:npm/%40onereach/time-interpreter

Affected ranges

Affected versions

1.*
1.0.30
1.0.31
1.0.32

Database specific

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."
    },
    {
        "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."
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-1wJxBAUQookVEA3efhbGiNfhee3RBxS3VD+18Soqfl4vMpWkrqxOL5JXIe1cTKB3fsV0IFczM+GT1BFYpQ9+OA==",
                "sha1": "1dced9e3dbf7ccd4ee3a9118977eba477882b8b4"
            },
            "filename": "time-interpreter-1.0.31.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.mjs",
            "sha256": "fd3ca4007b225fdf8de7af4345a19179d5efa8c4bb9205f88cda806e5684b1eb",
            "tlsh": "9a32640912f63210736765e6f54fa0e8f237094b2498dd47795cb188ef49c2ce9e25be"
        },
        {
            "path": "math_init.js",
            "sha256": "9fc2570b7cef51c1b8df116d144d11ff4096357be7d2c4c6367cfc2509cf1bcc",
            "tlsh": "59f493746ec2786982736b5f2199e372e2652e11c27e73fb57e0e432a54c22c30eb51d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@onereach/time-interpreter/MAL-2026-11657.json"