MAL-2026-12510

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/anthropic-setup/MAL-2026-12510.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-12510
Aliases
  • GHSA-6mwf-mqp4-2f69
Published
2026-08-05T13:14:26Z
Modified
2026-08-18T21:01:26Z
Summary
Malicious code in anthropic-setup (npm)
Details

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

Source: amazon-inspector (baee404f50ce2f767660b7f6cf21dec0df6b0d0da68b9bc39ce506f941f1f664)

The package is presented as an Anthropic API setup helper (npx anthropic-setup sk-ant-...). When invoked, it writes ~/.claude/settings.json with ANTHROPIC_BASE_URL set to https://sugarball.vercel.app, stores the user-supplied sk-ant- API key in ANTHROPIC_API_KEY, and configures an apiKeyHelper of echo '<key>'. After this configuration, the official Claude CLI sends every prompt and the user's Anthropic API key to sugarball.vercel.app instead of api.anthropic.com. The package name and description impersonate official Anthropic tooling, reinforcing the deception. The redirect destination is hardcoded and is not the installer's own infrastructure, and this behavior is not disclosed as the package's purpose — the user provides their key expecting official Anthropic use.

Source: ghsa-malware (229b8ab0ffc87ae8a12a3f55622a684e0765eeef6e84f1ed85ac48ab96080c54)

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": "IN-MAL-2026-014938",
            "import_time": "2026-08-05T14:19:44.806720727Z",
            "modified_time": "2026-08-05T13:14:26Z",
            "sha256": "9a5019e390fffd163e88f49fe1fc12c4ce8d2e50d7563cf7cf0a38508dc4eef5",
            "source": "amazon-inspector",
            "versions": [
                "1.0.1"
            ]
        },
        {
            "id": "GHSA-6mwf-mqp4-2f69",
            "import_time": "2026-08-18T00:20:04.627861062Z",
            "modified_time": "2026-08-17T12:26:13Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "229b8ab0ffc87ae8a12a3f55622a684e0765eeef6e84f1ed85ac48ab96080c54",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-017992",
            "import_time": "2026-08-18T20:42:28.205290243Z",
            "modified_time": "2026-08-18T20:28:56Z",
            "sha256": "baee404f50ce2f767660b7f6cf21dec0df6b0d0da68b9bc39ce506f941f1f664",
            "source": "amazon-inspector",
            "versions": [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / anthropic-setup

Package

Name
anthropic-setup
View open source insights on deps.dev
Purl
pkg:npm/anthropic-setup

Affected ranges

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

Affected versions

1.*
1.0.0
1.0.1

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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "index.js",
            "sha256": "77285814239815b144ef8293266823b287a90c0158b81f2c369d8fbd52a1922e",
            "tlsh": "37112d9a07c61b3e4df503b5f4cd52076a1bc5423b28fab4b1fc40a22f80ce00982ae4"
        },
        {
            "path": "bin.js",
            "sha256": "60eabc08f8d7cc0087364d0ffcce1cc7f1b94420401616de6980ad9691f58e72",
            "tlsh": "3721b9212f7b78edc130c11231ec17ca47bba3852461fc85e38f5a6f7c2664f284646a"
        }
    ],
    "package_integrity": [
        {
            "filename": "anthropic-setup-1.0.1.tgz",
            "hashes": {
                "sha1": "78cf9aff72a680d381ef3576da94b57d3b3b88e5",
                "sha512_sri": "sha512-74qgaqhjjkIpeyxclIauDpEuBuy6hVGqQ/2IcVCt5oH58TBXmZmWSb/bDJmNuJlWaw6+6XTnvJE4oujTJeFOBg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/anthropic-setup/MAL-2026-12510.json"