MAL-2026-15595

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/generate-schema-viem/MAL-2026-15595.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-15595
Aliases
  • GHSA-72cf-ghpg-mj8h
Published
2026-08-30T07:59:20Z
Modified
2026-09-03T06:00:06Z
Summary
Malicious code in generate-schema-viem (npm)
Details

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

Source: amazon-inspector (82b43ea1e723ebd0c0ef5c4cd564b106089f9b5f9fd119dcac26dc1e130a14bf)

Package publishes as generate-schema-viem but exposes a bin named generate-schema-ethers (a dependency-confusion / typosquat shape against the generate-schema-* namespace). On CLI invocation, bin/cli.js executes whoami, reads os.hostname() and platform, and POSTs {pkg, whoami, hostname, platform} to the hardcoded endpoint https://oobme.kunalsharma0553.workers.dev/r/7bq6fz3l15r9. The manifest's own description self-labels the package as an OOB callback. Installer identity is leaked to an external attacker-controlled endpoint whenever the tool is invoked on a developer machine or CI runner.

Source: ghsa-malware (3596a322804d1a06706535be278de7c35e3b15c323a59c03cccc5b1b3ba143f2)

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.

Source: ossf-package-analysis (6300576c16b112520e6a4cde256e38ce14736ec575b8c94e58a0a9163c7dad78)

The OpenSSF Package Analysis project identified 'generate-schema-viem' @ 1.0.0 (npm) as malicious.

It is considered malicious because:

  • The package communicates with a domain associated with malicious activity.

  • The package executes one or more commands associated with malicious behavior.

Database specific
{
    "malicious-packages-origins":  [
        {
            "import_time":  "2026-08-30T23:14:55.816051728Z",
            "modified_time":  "2026-08-30T07:59:20Z",
            "sha256":  "6300576c16b112520e6a4cde256e38ce14736ec575b8c94e58a0a9163c7dad78",
            "source":  "ossf-package-analysis",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-019179",
            "import_time":  "2026-08-31T17:16:14.737254419Z",
            "modified_time":  "2026-08-31T16:49:50Z",
            "sha256":  "82b43ea1e723ebd0c0ef5c4cd564b106089f9b5f9fd119dcac26dc1e130a14bf",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        },
        {
            "id":  "GHSA-72cf-ghpg-mj8h",
            "import_time":  "2026-09-03T05:28:34.444282Z",
            "modified_time":  "2026-09-01T22:42:25Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "3596a322804d1a06706535be278de7c35e3b15c323a59c03cccc5b1b3ba143f2",
            "source":  "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / generate-schema-viem

Package

Name
generate-schema-viem
View open source insights on deps.dev
Purl
pkg:npm/generate-schema-viem

Affected ranges

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

Affected versions

1.*
1.0.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":  "bin/cli.js",
            "sha256":  "7bb9e78369c5381ad92a3997176d860469dcbd35fef2d80123dadf978eb15649",
            "tlsh":  "94112dea50f553b0bfa22c944d2f50003297c7673c09fcc0faac0359af4ea5c41325a8"
        },
        {
            "path":  "package.json",
            "sha256":  "f23feca4d93248ab69c00d5158cbbe7c0049c09b0874a43015fadbd499bf9923",
            "tlsh":  "05e061508a201db314cc5ef12c3aa5175131d8571178fc7532df631d9349571017b37d"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "generate-schema-viem-1.0.0.tgz",
            "hashes":  {
                "sha1":  "8fb9d86b9620229e21ef1709e8722a74d25e7e37",
                "sha512_sri":  "sha512-KgZjs7v/T61g09tc/grBYNECe4XmEvM0X4+OexYuNkidcv6X1de1mQPrRWoFW2YkMu1okvjed2Aad5FjwxNoOQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/generate-schema-viem/MAL-2026-15595.json"