MAL-2026-6476

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/typedecode/MAL-2026-6476.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6476
Aliases
  • GHSA-wfg2-fj8h-rxj6
Published
2026-06-25T20:32:15Z
Modified
2026-07-08T23:01:55.675572287Z
Summary
Malicious code in typedecode (npm)
Details

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

Source: amazon-inspector (593662d3b4cda901642b713f419417807a33f3dca74e818f66e8d0cf9ebcf6e3)

On require('typedecode') / import 'typedecode', the bundled dist/index.cjs and dist/index.js execute an obfuscated import-time payload. A bootstrap.js IIFE exposes require and module on global, deobfuscates two large strings through a custom permutation (YWG), constructs a function via the Function constructor (AQq(erE, YWG(fvm))), invokes it on a second decoded payload to produce XZs, then calls XZs(7942) and brands global._V = 'A6-Shadow-15'. The deliberate placement of require/module on globals before the IIFE allows the decoded code to dynamically load arbitrary Node modules (fs, http, child_process, etc.) without any static reference. The package's API surface and inline comments are copied verbatim from the legitimate decoders package by nvie (including the email-regex comment and the pojo detection comment), and the README API (object, array, optional, string, number, email, url, uuid, decode/verify/value, formatInline, formatShort) duplicates that library — an impersonation lure to drive installs of the hidden loader. Author is the placeholder-style chavanetsanastasia-netizen.

Source: ghsa-malware (bedd4815e96aa992468ab037dbd2c342b8567f07ece45674dd8a274c4e479912)

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": [
        {
            "sha256": "593662d3b4cda901642b713f419417807a33f3dca74e818f66e8d0cf9ebcf6e3",
            "id": "IN-MAL-2026-007535",
            "source": "amazon-inspector",
            "import_time": "2026-06-25T21:07:19.004164785Z",
            "modified_time": "2026-06-25T20:32:15Z",
            "versions": [
                "1.0.3"
            ]
        },
        {
            "sha256": "bedd4815e96aa992468ab037dbd2c342b8567f07ece45674dd8a274c4e479912",
            "id": "GHSA-wfg2-fj8h-rxj6",
            "source": "ghsa-malware",
            "import_time": "2026-07-06T19:53:47.990136151Z",
            "modified_time": "2026-07-06T18:59:37Z",
            "versions": [
                "1.0.3",
                "1.0.2",
                "1.0.1"
            ]
        },
        {
            "sha256": "94ab8efbe59223ab64fd1866492a3aca182db628a93768e6a558f69fe9675c3e",
            "id": "IN-MAL-2026-008844",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T22:51:27.103752859Z",
            "modified_time": "2026-07-08T22:41:27Z",
            "versions": [
                "1.0.2"
            ]
        },
        {
            "sha256": "94d821385ecc3b8a01df48c17477068a85f0f8ce769cc308ff71d87ed2260c5f",
            "id": "IN-MAL-2026-008845",
            "source": "amazon-inspector",
            "import_time": "2026-07-08T22:51:27.226215208Z",
            "modified_time": "2026-07-08T22:41:38Z",
            "versions": [
                "1.0.1"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / typedecode

Package

Affected ranges

Affected versions

1.*
1.0.1
1.0.2
1.0.3

Database specific

indicators
{
    "evidence_files": [
        {
            "path": "dist/index.cjs",
            "tlsh": "baf2938dbdf661000b5360b9150fd017f8699813a0bcdad8f68d9be02f5247497faace",
            "sha256": "99ead3c789a28a39b4aa58879b16c2903452cf85480b26aca09e111c7ace33ae"
        }
    ],
    "package_integrity": [
        {
            "filename": "typedecode-1.0.3.tgz",
            "hashes": {
                "sha1": "1a0a49666eb3f934152a24c9538fd3a5419f52d4",
                "sha512_sri": "sha512-AYLVDi+jYd/IoL/P9fm4XUfvyWqATSRhWmCDLfbjR5Yikhj/iMyRvnP+4/CkD94PImI51nC2oD1NnpzPm+s4ag=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/typedecode/MAL-2026-6476.json"
cwes
[
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    },
    {
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code"
    }
]