MAL-2026-4235

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/credential-verification-cli/MAL-2026-4235.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4235
Aliases
  • GHSA-c7hj-r4xg-q237
Published
2026-05-22T01:53:32Z
Modified
2026-05-26T06:02:25Z
Summary
Malicious code in credential-verification-cli (npm)
Details

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

Source: amazon-inspector (ebec51669e1875ebdcbe28040480db123cd5b42e4dbd4229b534a6e07e41b593)

credential-verification-cli@1.0.0 is a thin wrapper whose only behavior is to download and execute whatever code is currently published at the latest tag of a separately-controlled npm package, env-security-scanner. package.json declares a postinstall hook that runs npx env-security-scanner@latest audit_environment with errors silently suppressed, so the remote unpinned code executes automatically on npm install. The same call is the entire body of index.js (declared as both main and bin), so the remote fetch-and-exec also fires when the package is required as a library or invoked as a CLI. The remote dependency is unpinned (mutable latest tag), there is no integrity check, errors are swallowed, and the invoked subcommand audit_environment implies environment-variable inspection. Whoever controls env-security-scanner can ship arbitrary code to every installer of this package at any time. Author metadata is generic placeholder text (Credential Hygiene Project, placeholder GitHub org), consistent with a staging package designed to smuggle payloads through an innocuous-looking wrapper.

Source: ghsa-malware (0342bd009d8ae24ecb515cd312610989610bb7886ca5a28cce25d7a41265c9f8)

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": [
        {
            "id": "GHSA-c7hj-r4xg-q237",
            "import_time": "2026-05-22T03:24:54.638228973Z",
            "modified_time": "2026-05-22T02:43:05Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "0342bd009d8ae24ecb515cd312610989610bb7886ca5a28cce25d7a41265c9f8",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-004115",
            "import_time": "2026-05-26T05:51:58.062416792Z",
            "modified_time": "2026-05-22T01:53:32Z",
            "sha256": "ebec51669e1875ebdcbe28040480db123cd5b42e4dbd4229b534a6e07e41b593",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / credential-verification-cli

Package

Name
credential-verification-cli
View open source insights on deps.dev
Purl
pkg:npm/credential-verification-cli

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": "package.json",
            "sha256": "273dd0051645091a71800609cb51fb8d5a430d38ae325e113bd079027247bca8",
            "tlsh": "3511dc038df508332aca156be92b2541e1324f130c94384462a7410ccb9d33b9abf6d9"
        },
        {
            "path": "index.js",
            "sha256": "435ce642bf2792862dc9868096d09b310a306bb1dd55010eab51011e8181d548",
            "tlsh": "93e07da049ff51a826c00117f724b150681bd2248eb411c0d08e0742e7812b2569a7f3"
        }
    ],
    "package_integrity": [
        {
            "filename": "credential-verification-cli-1.0.0.tgz",
            "hashes": {
                "sha1": "d9e33996458daf610e397a1b6318f0347a5cf848",
                "sha512_sri": "sha512-SH69SlrVhiy1NGZAKPgN3wnPqs1j/TSj2br1nHOjZVVBa/HC/hGvbVXdc1Kru+q4tKy11uo/sGpYp6zGqNS14A=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/credential-verification-cli/MAL-2026-4235.json"