mal-2026-4457
Vulnerability from ossf_malicious_packages
Published
2026-05-22 11:39
Modified
2026-06-01 10:05
Summary
Malicious code in @tmecontinue/claude (npm)
Details

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

Source: amazon-inspector (0813d6ca6de1573ab8f99aae08444e589f4c5751931e4b18812140f720b74239)

Package self-describes as a 'Reverse-engineered Anthropic Claude Code CLI' and impersonates the legitimate @anthropic-ai/claude-code (bin name tme-claude, replicated slash commands, OAuth client IDs, and system prompts). When the user runs the CLI, authentication is hardcoded against https://tmeaicoding.tmeoa.com/token (dist/chunk-tvynx1j7.js line 28) and the resulting token is stored as process.env.TME_ANTHROPIC_API_KEY. All prompts, source code excerpts, and other developer-supplied input the user enters into the CLI are relayed through this publisher-controlled endpoint rather than to Anthropic. The English package description does not disclose the alternate destination. Additionally, the bundled auto-updater runs npm install -g @tmecontinue/claude@<version> --registry=https://mirrors.tencent.com/npm (dist/chunk-ass8j5mj.js line 5791), giving the publisher a persistent global-install code-update channel onto the installer's machine. No install-time lifecycle hooks fire on npm install; the harm fires when the operator runs the tme-claude CLI, but the silent-relay of caller-supplied prompt data to a publisher-controlled destination — combined with the impersonation of Anthropic Claude Code — is a supply-chain attack against developers who believed they were running the real Claude Code.

Source: ghsa-malware (5603695227e8b3a34f1e2d31d439168f71e82a7cc7306ae7404e3b46cc858371)

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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits
Amazon Inspector actran@amazon.com

{
  "affected": [
    {
      "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": [
            {
              "path": "dist/chunk-tvynx1j7.js",
              "sha256": "924cb1b89495225999706df5c4b61858da4b71a0b8c9e1f0ea3b7fdece6bb674",
              "tlsh": "d6146c56e3ad363703d392e1a8799212d3b65a582214403bf0bfd6d9279c284d3b7fb4"
            },
            {
              "path": "package.json",
              "sha256": "eeafd1d240e8270edce3f4b3e7bdd2a64977f95269b22e5e71b4d9c40e27b94b",
              "tlsh": "37c101a1ce28cd731ac812a5793a0642d22859378d40f84c33a087fe5f9e66f71bdb1d"
            },
            {
              "path": "dist/chunk-rs5xzvr9.js",
              "sha256": "5c8c6d6513ae94bc3f34f24604b16ee0ac69bbfaae7585f2503f31ae80627d24",
              "tlsh": "78c43ce1e7957130a7ca82e8d0f7d4346775f884b82a8115f0b76a182699302b1f7fb7"
            }
          ],
          "package_integrity": [
            {
              "filename": "claude-2.2.15-test.1.tgz",
              "hashes": {
                "sha1": "dde67df4e65a311ed1782526d6e463443be7dd8f",
                "sha512_sri": "sha512-H2NtSC7W663Zw1O959Ji2cJftwxDPeeQg2uqFYDZ4+CTwtSGOJmzDP5cwNLgtViZW6NigHFobvkLITzJ6Ed3/g=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "@tmecontinue/claude"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "2.2.15-test.1"
      ]
    }
  ],
  "aliases": [
    "GHSA-j689-8wf2-2rj9"
  ],
  "credits": [
    {
      "contact": [
        "actran@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-004194",
        "import_time": "2026-05-26T05:52:07.198667141Z",
        "modified_time": "2026-05-22T11:39:44Z",
        "sha256": "0813d6ca6de1573ab8f99aae08444e589f4c5751931e4b18812140f720b74239",
        "source": "amazon-inspector",
        "versions": [
          "2.2.15-test.1"
        ]
      },
      {
        "id": "GHSA-j689-8wf2-2rj9",
        "import_time": "2026-06-01T10:04:39.156069147Z",
        "modified_time": "2026-06-01T09:04:22Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "5603695227e8b3a34f1e2d31d439168f71e82a7cc7306ae7404e3b46cc858371",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0813d6ca6de1573ab8f99aae08444e589f4c5751931e4b18812140f720b74239)\nPackage self-describes as a \u0027Reverse-engineered Anthropic Claude Code CLI\u0027 and impersonates the legitimate @anthropic-ai/claude-code (bin name `tme-claude`, replicated slash commands, OAuth client IDs, and system prompts). When the user runs the CLI, authentication is hardcoded against https://tmeaicoding.tmeoa.com/token (dist/chunk-tvynx1j7.js line 28) and the resulting token is stored as process.env.TME_ANTHROPIC_API_KEY. All prompts, source code excerpts, and other developer-supplied input the user enters into the CLI are relayed through this publisher-controlled endpoint rather than to Anthropic. The English package description does not disclose the alternate destination. Additionally, the bundled auto-updater runs `npm install -g @tmecontinue/claude@\u003cversion\u003e --registry=https://mirrors.tencent.com/npm` (dist/chunk-ass8j5mj.js line 5791), giving the publisher a persistent global-install code-update channel onto the installer\u0027s machine. No install-time lifecycle hooks fire on `npm install`; the harm fires when the operator runs the `tme-claude` CLI, but the silent-relay of caller-supplied prompt data to a publisher-controlled destination \u2014 combined with the impersonation of Anthropic Claude Code \u2014 is a supply-chain attack against developers who believed they were running the real Claude Code.\n\n## Source: ghsa-malware (5603695227e8b3a34f1e2d31d439168f71e82a7cc7306ae7404e3b46cc858371)\nAny 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.\n",
  "id": "MAL-2026-4457",
  "modified": "2026-06-01T10:05:49Z",
  "published": "2026-05-22T11:39:44Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@tmecontinue/claude/v/2.2.15-test.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-j689-8wf2-2rj9"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in @tmecontinue/claude (npm)",
  "withdrawn": "2026-05-26T21:14:22Z"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…