MAL-2026-18696

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solidity-map/MAL-2026-18696.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18696
Published
2026-10-26T00:00:00Z
Modified
2026-11-13T04:30:07Z
Summary
Malicious code in solidity-map (npm)
Details

solidity-map ships index.js and lib/config.js, byte-identical to the hardhat-roof and chai-foundry payloads: a pino copy whose entry point loads an obfuscated dropper. It is a new name for the hardhat-roof (MAL-2026-17509) and chai-foundry (MAL-2026-13356) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.


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

Source: amazon-inspector (2f1fb5c9d4a046b5e536a449062bf29191d69ca83ab311cb75c889e6cc828354)

Package published as 'solidity-map' with a description about vulnerability management ships code copied from the pino logging library (lib/levels.js, lib/proto.js, lib/tools.js, lib/transport.js, lib/worker.js are upstream pino sources; index.js exports middleware labeled 'pino'; keywords are ['fast','logger','stream','json']). The author 'Robert King hello@jsonspack.com' is unrelated to pino's maintainers, and the published name does not correspond to the shipped functionality. Alongside this cover-story mismatch, lib/config.js is a ~4.3MB single-line IIFE heavily obfuscated with obfuscator.io-style transforms: a 26,185-element rotating string array, two decoder functions (Y/k), hex-escaped object keys, control-flow flattening, and ~44,484 inlined decoded-string operations. Legitimate pino contains no such file. The combination of a trojaned cover identity (pino clone republished under an unrelated package name by an unrelated author) with a large obfuscated module that executes when the package is loaded is the structural shape of a supply-chain trojan whose runtime behavior is deliberately hidden from static review.

Database specific
{
    "iocs":  {
        "domains":  [],
        "files":  [
            {
                "digests":  {
                    "sha256":  "4e6c4e61a7019ab0affe9c2d20e36701b330ec357be205930355bac1464f9316"
                },
                "paths":  [
                    "index.js"
                ]
            },
            {
                "digests":  {
                    "sha256":  "7e4c6d76f1d845f752e37876a2d3f773996719f33c2d1c282e0a84b04444efeb"
                },
                "paths":  [
                    "lib/config.js"
                ]
            }
        ],
        "ips":  [],
        "urls":  []
    },
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022739",
            "import_time":  "2026-11-13T04:13:28.105319741Z",
            "modified_time":  "2026-11-13T03:39:06Z",
            "sha256":  "2f1fb5c9d4a046b5e536a449062bf29191d69ca83ab311cb75c889e6cc828354",
            "source":  "amazon-inspector",
            "versions":  [
                "2.21.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / solidity-map

Package

Affected ranges

Affected versions

2.*
2.21.0

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"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "lib/config.js",
            "sha256":  "7e4c6d76f1d845f752e37876a2d3f773996719f33c2d1c282e0a84b04444efeb",
            "tlsh":  "bf1694889194e02b96df1753bf052afdd13aa876d0cca747c2d4be9d29ac80be475cd0"
        },
        {
            "path":  "package.json",
            "sha256":  "2e98fa96ff996936869d4d5ccba2df83c335b7f8b4922fa18637078667e01906",
            "tlsh":  "32017620dab88e2300ed25824c2a4643b6b58c179628fc2932dba12c0f9d5fb01ff21d"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "solidity-map-2.21.0.tgz",
            "hashes":  {
                "sha1":  "8714aef41d031313094d64e2a0b96048a1ff1566",
                "sha512_sri":  "sha512-m8jZRLimtLlI/t86oKfwIwFCHpGKRi99JUtGG60o68S3KoYMoxa9ejOV+DXWz5IisFQoWcBi5gQq0sHH98K2bw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/solidity-map/MAL-2026-18696.json"