Skip to content
Heist/ feed
Unrated

Malicious code in txs-lib-sdk (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (5575013ead36c1ebb523009215200be0a1bf61d21285ca8515573963a63e3aa5) The package's advertised getTransactions() API invokes an internal loader that reads database.js — a file disguised as a product catalog — extracts each record's `mark` field, base64-decodes it and applies a per-byte Caesar shift, concatenates the result into a code string, and passes it to the Function constructor together with Buffer, require, and process. This yields arbitrary Node.js execution with full filesystem, network, and child_process capabilities on the caller's host whenever the documented API is used. index.js hides the sink by reconstructing the identifiers 'setTimeout', 'Function', 'Buffer', 'require', and 'process' from a split string-array and by resolving the Function constructor indirectly via globalThis.constructor.constructor. The multi-layer obfuscation (identifier reassembly, indirect constructor lookup, base64+Caesar-encoded payload, JSON-shaped carrier file, deferred setTimeout) has no legitimate purpose for a package presented as a transactions helper and is the concealment layer of a supply-chain loader. ## Source: ghsa-malware (be8fdee0fed990fd22edd1188e06d7601d45db4031bd545667852f91b8120395) 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 pack

Announced Group revision 1
Original source ↗

MAL-2026-14198

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-14198

txs-lib-sdk

Source reference: /affected/0/package/name

Affected versions
1.0.2

Source reference: /affected/0/versions

1.0.1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "txs-lib-sdk",
      "purl": "pkg:npm/txs-lib-sdk",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.2",
      "1.0.1"
    ],
    "database_specific": {
      "cwes": [
        {
          "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",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/txs-lib-sdk/MAL-2026-14198.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "0ef10f6839f930248857b07c67eb9449612de0576e9a6ca87f4d83101f7d13ce1f6ba8",
            "sha256": "c0a1a7e54e1c759e62e48cfa835d79494163da3b37b30c1bd55c5875d9dd24f0"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "50ecafed1e2e1dc44734289055f64dc1bebb3a5e",
              "sha512_sri": "sha512-O97tStb5/aXDgBuTUVQLYbI6BX5nj+cisfAkuQ6MTL23XjWrZfEarSObUHANOFCqLZp3u1lukB1WwixbEcWcew=="
            },
            "filename": "txs-lib-sdk-1.0.2.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#33422 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement