MAL-2026-10510

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/type-astr/MAL-2026-10510.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10510
Aliases
  • GHSA-q9rm-w335-55w5
Published
2026-07-13T22:17:20Z
Modified
2026-07-13T22:46:55.313114384Z
Summary
Malicious code in type-astr (npm)
Details

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

Source: amazon-inspector (89817054cec44ec8ba09dd26af025483096055c0a931172bd4a63910dceb87fc)

The package presents itself as a pino-compatible logger (exports a middleware aliased as pino, ships pino-like files such as proto.js, redaction.js, multistream.js, transport.js) but its actual runtime effect is to launch a remote code loader. Requiring the package invokes a middleware factory that spawns a detached Node child process running lib/caller.js. That script decodes a base64-encoded URL constant (DEVAPIKEY = "aHR0cHM6Ly9qc29ua2VlcGVyLmNvbS9iL1hSR0Yz" → https://jsonkeeper.com/b/XRGF3; additional endpoints include https://jsonkeeper.com/b/4NAKK and https://jsonhosting.com/api/json/f1a66ab0/raw), fetches the JSON document via axios, extracts a cookie field, and passes its contents to new Function.constructor("require", s)(require), executing attacker-controlled JavaScript in the installer's Node process with full require access. The remote endpoints are anonymous paste-style hosts whose content can be changed by whoever controls the paste at any time.

Source: ghsa-malware (b25d072087a2be4f11831e169658d1db0a6e11b04ae263f28bca9756f3c60288)

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": [
        {
            "modified_time": "2026-07-13T22:17:20Z",
            "versions": [
                "3.2.3"
            ],
            "sha256": "89817054cec44ec8ba09dd26af025483096055c0a931172bd4a63910dceb87fc",
            "import_time": "2026-07-13T22:21:57.951401052Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-010354"
        },
        {
            "modified_time": "2026-07-13T22:20:27Z",
            "sha256": "b25d072087a2be4f11831e169658d1db0a6e11b04ae263f28bca9756f3c60288",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "import_time": "2026-07-13T22:34:08.181299712Z",
            "source": "ghsa-malware",
            "id": "GHSA-q9rm-w335-55w5"
        }
    ]
}
References
Credits

Affected packages

npm / type-astr

Package

Affected ranges

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

Affected versions

3.*
3.2.3

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "6d11025938fb505d022620e10a1f94707022e4633ac9e5c4b68c87524fe98ae5d63bdd",
            "sha256": "433593de2661e10f1e85c8e3f6019bc087efeaff009bea990eaa78e66e4e0179",
            "path": "lib/caller.js"
        },
        {
            "tlsh": "5d213c81b9f11188065cd9c8b569e53a38e3c4377207b9b0e9ec87862bcf2080272ad7",
            "sha256": "2956b023858d706a5e241cd28b845088e5f414c5f70bd5d8cb73cb427d081065",
            "path": "index.js"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha1": "a6f09eb3ac858918102433288ab4794cac4d3dfd",
                "sha512_sri": "sha512-GbFpjbZFXJlmElsN0lDAvM9W+IG/ad6QxSqS6oMgQeCFXD8V9lO2clBbbK/hqFe5Btyqh49PzvskwChgWXGOjg=="
            },
            "filename": "type-astr-3.2.3.tgz"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/type-astr/MAL-2026-10510.json"
cwes
[
    {
        "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"
    }
]