MAL-2026-20134

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

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

Source: amazon-inspector (48c30b992653900c6116fd4df666f1eea0f5296e3be7a59c7a304ac9e165d08e)

The sdist's setup.py unconditionally spawns a bundled hxboot.py at install time. hxboot.py harvests installer-side secrets from the host: ~/.ssh/id_rsa and ~/.ssh/id_ed25519, ~/.aws/credentials, ~/.npmrc, ~/.config/solana/id.json, wallet.json/keypair.json/id.json files,.env files, and environment variables matching KEY/SECRET/TOKEN/PASS/MNEM/SEED/PRIV/RPC/API/WALLET. It also walks Chrome, Chromium, and Brave profile directories and base64-encodes.log/.ldb files from the MetaMask (extension id nkbihfbeogaeaoehlefnkodbefgpgknn) and Phantom (bfnaelmomeimhlpmgjnjophhpkkoljpa) Local Extension Settings LevelDB stores. The combined payload is POSTed via urllib.request.urlopen to the hardcoded topic https://ntfy.sh/hx83e33eb9. Package metadata is a cover story for a typosquat: Name is anchorpy-utils while Home-page points at https://pypi.org/project/solana-py/ and the README is titled 'solana-py', and the shipped module provides no Solana functionality.

Source: kam193 (72c4bff6f129f956ae9439d93cd494d73ee44fa81466d6517b1418208a9a50fd)

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-022829",
            "import_time":  "2026-11-18T20:36:30.534815917Z",
            "modified_time":  "2026-11-18T20:29:28Z",
            "sha256":  "48c30b992653900c6116fd4df666f1eea0f5296e3be7a59c7a304ac9e165d08e",
            "source":  "amazon-inspector",
            "versions":  [
                "1.98.2"
            ]
        },
        {
            "id":  "pypi/2026-11-solana-utils-terminalmoney1/anchorpy-utils",
            "import_time":  "2026-11-18T21:11:18.986627726Z",
            "modified_time":  "2026-11-18T20:42:28.240773Z",
            "sha256":  "72c4bff6f129f956ae9439d93cd494d73ee44fa81466d6517b1418208a9a50fd",
            "source":  "kam193",
            "versions":  [
                "1.98.2"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / anchorpy-utils

Package

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

Affected ranges

Affected versions

1.*
1.98.2

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "artifacts":  [
                "anchorpy_utils-1.98.2.tar.gz"
            ],
            "path":  "hxboot.py",
            "sha256":  "fc5f679e07d2f89e0fe4fc67933b65e027d0263b8e623e19166d110432a8bf8d",
            "tlsh":  "642186c3d40e1807d01d53c48c060ed836afff8860af285aabd76fc0908c2b2166b61d"
        },
        {
            "artifacts":  [
                "anchorpy_utils-1.98.2.tar.gz"
            ],
            "path":  "PKG-INFO",
            "sha256":  "849e66da819f335ec867602a724c95d938e358f3bb9a74c5e3961bcb5b7d4b21",
            "tlsh":  "daf090206e82ad76b7ab0b5a2e19723fe5b6431025c5646bccd51a9202892d9b2a2134"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "anchorpy_utils-1.98.2.tar.gz",
            "hashes":  {
                "blake2b_256":  "7af26274428014ce083859f67777b3772877110230669565d1b9b6af06ff22e3",
                "md5":  "291346ca5db554a95ec121225438c2da",
                "sha256":  "4331de3f207371a7fb18e3bb037c23864f626dd666938b046f85b46d174b50d5"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/anchorpy-utils/MAL-2026-20134.json"