MAL-2026-6062

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sodel-pych/MAL-2026-6062.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6062
Aliases
  • GHSA-4cgm-w872-8q5g
Published
2026-06-17T13:04:18Z
Modified
2026-07-09T22:17:06.826161958Z
Summary
Malicious code in sodel-pych (npm)
Details

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

Source: amazon-inspector (c7d67bcaf42f4ef050a6b824dfbc2f711d6820f7b3b1140d211110f390e512fa)

The package ships several files whose names and contents suggest a non-trivial install-time and runtime footprint: a postinstall script (scripts/postinstall-agent.mjs) that performs network I/O including a ping/GET against an identifier-bearing endpoint, a relay server (dist/relayServer.js) with multiple ping invocations, a Discord relay upload module (dist/discordRelayUpload.js) combining base64 decoding with POST calls, a Hugging Face credentials module (dist/hfCredentials.js) using base64-decoded values, and a secret-scan startup audit (dist/secretScan/agentStartupAudit.js) that fetches huggingface.co endpoints. The combination of a postinstall agent, a Discord upload path, base64-encoded data in deployment defaults, and credential/secret handling is consistent with either (a) a legitimate ML/agent tooling package that talks to Hugging Face and uses Discord for notifications, or (b) a credential-relay/exfiltration tool. The evidence available here is keyword-level pattern matches without traced execution paths, so intent cannot be determined from this data alone. A human reviewer should inspect scripts/postinstall-agent.mjs to confirm what runs on npm install, dist/discordRelayUpload.js to confirm whether installer-side data is shipped to Discord, and dist/hfCredentials.js to confirm whose credentials are read.

Source: ghsa-malware (95b8b8f54c9c2a4fa965e4a7fe7ea9c8f8ef1b5bcdd4cc1da7354d0ce2e8842f)

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": [
        {
            "sha256": "95b8b8f54c9c2a4fa965e4a7fe7ea9c8f8ef1b5bcdd4cc1da7354d0ce2e8842f",
            "id": "GHSA-4cgm-w872-8q5g",
            "import_time": "2026-06-17T13:31:49.218315759Z",
            "modified_time": "2026-06-17T13:04:19Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "source": "ghsa-malware"
        },
        {
            "sha256": "c7d67bcaf42f4ef050a6b824dfbc2f711d6820f7b3b1140d211110f390e512fa",
            "id": "IN-MAL-2026-009441",
            "import_time": "2026-07-09T22:02:32.028873871Z",
            "modified_time": "2026-07-09T21:56:14Z",
            "versions": [
                "1.0.121"
            ],
            "source": "amazon-inspector"
        },
        {
            "versions": [
                "1.0.122"
            ],
            "id": "IN-MAL-2026-009442",
            "modified_time": "2026-07-09T21:56:26Z",
            "sha256": "e4271fff06c918ff0843a3ecbe8b91ef905d89625bde23a47c44d0ca6f3a829d",
            "import_time": "2026-07-09T22:02:32.096371311Z",
            "source": "amazon-inspector"
        }
    ]
}
References
Credits

Affected packages

npm / sodel-pych

Package

Affected ranges

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

Affected versions

1.*
1.0.121
1.0.122

Database specific

indicators
{
    "evidence_files": [
        {
            "tlsh": "e1f16549b8e7b0100663b5f8861bc8973bdcad07260ed444b35e93956f1f831a3b76e6",
            "sha256": "cbf70b0d8654138a0b4dfcb152824c85fecab500e1a5fade53c2049da4c0dc48",
            "path": "dist/deploymentDefaults.js"
        },
        {
            "sha256": "debe8ff010dd0e4bec0af85cbd8708ba345158fc103b9fe68eb12b4d68539c19",
            "tlsh": "d4e296fab5f724311162b6698b5bd0057328b147741eeca47a8ca29c9f9c025c2f7fc6",
            "path": "dist/discordRelayUpload.js"
        },
        {
            "tlsh": "cae184062ef6902001779079912be01576b0703f6ae1d5f2f69ddec9af12c768ae3dc1",
            "sha256": "bf0091702bbc62eff2319360ab7103a33fee8f5bfad4e63aa359175285de7f49",
            "path": "dist/hfCredentials.js"
        },
        {
            "tlsh": "0793b68a69f360324763f2bd5b5b8001b339d1077558ddd4fa9c8258af8d92883f1be9",
            "sha256": "024421a8440c0be2c52b262254c782b5d2d20b857ad7fe0943f2f637ef011013",
            "path": "dist/relayServer.js"
        },
        {
            "sha256": "185e5a9b6387d3791464f4ade86a394af49115e826ddc1cd5e206e573b0ef7eb",
            "tlsh": "b6e2fb9a69f32432826371be5a4f5005f660b4272148e8e47a5cc299ff454b8d3f7fd8",
            "path": "dist/secretScan/agentStartupAudit.js"
        },
        {
            "sha256": "5f983523fea613c052e726cf94f86c894e72c34261a538e6e6f3999cd76191a5",
            "tlsh": "7212824a6af320514d2330fe1b8b8500b97aa847351cdd28be9c83906f5597c9af7bdc",
            "path": "dist/secretScan/contentScanner.js"
        },
        {
            "sha256": "36c301a61abec8b3658aa278f9cdcdfa0edf6409f4eec68449724d68ef222ea8",
            "tlsh": "34b1b70368e9947041fee3d25953b90b7afdf7153302acc5766e46b90b6bc31026be0a",
            "path": "scripts/encode-deployment.mjs"
        },
        {
            "sha256": "f637df68b8c097e238ae81473a6a5c3f4ace636044356f7dbb01fef6ca5f579c",
            "tlsh": "1d92d88ce6e71a7606a1e79d7a1f150267a0d1070648e4b4f0dd82887f2d13d83b7ebe",
            "path": "scripts/postinstall-agent.mjs"
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "cweId": "CWE-506",
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature."
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sodel-pych/MAL-2026-6062.json"