MAL-2026-20135

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/solana-py-utils/MAL-2026-20135.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20135
Published
2026-11-18T20:29:34Z
Modified
2026-11-18T21:15:03Z
Summary
Malicious code in solana-py-utils (PyPI)
Details

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

Source: amazon-inspector (dc8b7ddf366b6a8802ad0f189a30e59d76e2a9d779227ec155d7f53a6d130490)

The sdist's setup.py unconditionally runs the bundled hxboot.py via subprocess under the current Python interpreter during pip install. hxboot.py reads installer-owned secrets including ~/.aws/credentials, ~/.ssh/id_* keys, ~/.netrc, ~/.pypirc, /.npmrc, kube/docker/gh/gcloud configuration, Solana keypair files (/.config/solana/id.json, wallet.json),.env files, and .pem/.key material, and scrapes environment variables matching KEY/SECRET/TOKEN/PASS/MNEM/SEED/PRIV/API/WALLET. It additionally enumerates Chromium/Chrome/Brave/Edge user profiles for the MetaMask (nkbihfbeogaeaoehlefnkodbefgpgknn), Phantom (bfnaelmomeimhlpmgjnjophhpkkoljpa), and another wallet extension (bhhhlbepdkbapadjdnnojkbgioiodbic) Local Extension Settings, and base64-encodes the leveldb.log/.ldb contents. The aggregated data is POSTed via urllib to the hardcoded topic https://ntfy.sh/hx83e33eb9. The package name mimics legitimate Solana tooling (typosquat of solana-py), and the stealer fires automatically on pip install on every platform that builds the sdist.

Source: kam193 (7106643886b94c7d16d9e66e601c05cc8a05bb775d75d006fcd06e733ac1892c)

During installation package exfiltrates sensitive environment variables, files and data from browser extensions, focusing on cryptocurrency-related informations.


Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-11-solana-utils-terminalmoney1

Reasons (based on the campaign):

  • exfiltration-env-variables

  • exfiltration-credentials

  • exfiltration-browser-data

  • exfiltration-crypto

  • crypto-related

  • typosquatting

  • The package overrides the install command in setup.py to execute malicious code during installation.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-022830",
            "import_time":  "2026-11-18T20:36:30.64073955Z",
            "modified_time":  "2026-11-18T20:29:34Z",
            "sha256":  "6792d58c87bc86a313a03ceeb2d18e6bfe5666a649a93c06c16cf649069bc2e7",
            "source":  "amazon-inspector",
            "versions":  [
                "1.98.2"
            ]
        },
        {
            "id":  "IN-MAL-2026-022832",
            "import_time":  "2026-11-18T20:36:30.968913499Z",
            "modified_time":  "2026-11-18T20:29:46Z",
            "sha256":  "dc8b7ddf366b6a8802ad0f189a30e59d76e2a9d779227ec155d7f53a6d130490",
            "source":  "amazon-inspector",
            "versions":  [
                "1.98.3"
            ]
        },
        {
            "id":  "pypi/2026-11-solana-utils-terminalmoney1/solana-py-utils",
            "import_time":  "2026-11-18T21:11:19.007384089Z",
            "modified_time":  "2026-11-18T20:38:00.877819Z",
            "sha256":  "7106643886b94c7d16d9e66e601c05cc8a05bb775d75d006fcd06e733ac1892c",
            "source":  "kam193",
            "versions":  [
                "1.98.2",
                "1.98.3"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / solana-py-utils

Package

Name
solana-py-utils
View open source insights on deps.dev
Purl
pkg:pypi/solana-py-utils

Affected ranges

Affected versions

1.*
1.98.2
1.98.3

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":  [
        {
            "artifacts":  [
                "solana_py_utils-1.98.2.tar.gz"
            ],
            "path":  "hxboot.py",
            "sha256":  "fc5f679e07d2f89e0fe4fc67933b65e027d0263b8e623e19166d110432a8bf8d",
            "tlsh":  "642186c3d40e1807d01d53c48c060ed836afff8860af285aabd76fc0908c2b2166b61d"
        },
        {
            "artifacts":  [
                "solana_py_utils-1.98.2.tar.gz"
            ],
            "path":  "setup.py",
            "sha256":  "e3d24f43d65463ff021b32fd75e3f2c2e7fe19e3e439aae75fa403773e6f7702",
            "tlsh":  "c0f090068f032c00c3eae03c6f0216ef8ceb3b206f638c9e98e8912232887d05207220"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "solana_py_utils-1.98.2.tar.gz",
            "hashes":  {
                "blake2b_256":  "c0afd8e4cd5c78547dc3a8f65011e0d46a5131792e679183d43c75d668796d40",
                "md5":  "a1a68fc4f54ca58bb15ea54001c4ae77",
                "sha256":  "810cc85d7438721ab5bb9243c0c5b2593c82e0a83a7e5fd6b2666490b675b349"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/solana-py-utils/MAL-2026-20135.json"