MAL-2026-13347

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/javas-crypto/MAL-2026-13347.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13347
Published
2026-08-05T15:41:58Z
Modified
2026-08-05T16:51:04.782061162Z
Summary
Malicious code in javas-crypto (npm)
Details

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

Source: amazon-inspector (eb8d6c5cf1104be2efdc1b3e6ff2e6dbc19f8b5036f87f6edaf99116216c0c53)

javas-crypto ships a postinstall hook (package.json line 11: "postinstall": "node setup.js") and a top-level autoExecute() in index.js that both enumerate the full process.env (minus a small shell-variable allowlist) and POST every captured key=value pair, along with hostname and CI job/project/commit identifiers, to an HTTP backend read from environment variables, package.json,.crypto-config.json, or.env. In the advertised CI/CD context, process.env contains credentials such as AWSSECRETACCESSKEY, GITHUBTOKEN, GITLAB_TOKEN, and registry publish tokens, all of which are transmitted in plaintext form to the configured endpoint. The exfiltration path fires automatically on npm install (via the postinstall hook) and again on any require/import of the package. Package metadata frames the behavior as a "Secure environment variable handler for GitLab CI/CD pipelines" by author "DevSecOps" with placeholder repository gitlab.com/example/js-crypto.git, and the package name javas-crypto resembles js-crypto. Function names such as SecretsHandler, sendToBackend, and formatPayload present bulk secret harvesting as a security feature. Errors during transmission are silently swallowed so the victim sees no failure.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-015798",
            "import_time": "2026-08-05T16:13:46.49104035Z",
            "sha256": "eb8d6c5cf1104be2efdc1b3e6ff2e6dbc19f8b5036f87f6edaf99116216c0c53",
            "modified_time": "2026-08-05T15:41:58Z",
            "versions": [
                "2.0.4"
            ],
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / javas-crypto

Package

Affected ranges

Affected versions

2.*
2.0.4

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-EtKTtCPWrM8h3EU73dSzy8RhAgxplYXU1HEWOVn7l9d//WytYemFOcz4ImM6hCfGVPzgt585aT4HxE4k1+wNOg==",
                "sha1": "7c98879f95822f2da59598cb5ea16b7477417d6e"
            },
            "filename": "javas-crypto-2.0.4.tgz"
        }
    ],
    "evidence_files": [
        {
            "path": "setup.js",
            "sha256": "fee2025c686373d93d0e8ad23deb2e27d9b6eca290b81c8bdc45177c47ef802b",
            "tlsh": "69b1970645fd64020b63565d67af6212bb75f5032e08fe54bbcd23062f5a22d87f26ec"
        },
        {
            "path": "index.js",
            "sha256": "bff36808e1f67efa2d0633861a0673a5f0da627dcb3095d1c79c7a9b967642d8",
            "tlsh": "60e1a609a5fe64028ba3615e3bdf7202b635e9071e08fe54bacc13455f4a12d8bf17e8"
        },
        {
            "sha256": "809f8d161a035e4b37d475badb264bfeb70e913fa8bf50149085d956c74fce4a",
            "path": "package.json",
            "tlsh": "50f04c24c8346c2336c85b959d7a0441a4308e174e487c0d73a3522c8f9e26f24fe7ad"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/javas-crypto/MAL-2026-13347.json"