mal-2026-5647
Vulnerability from ossf_malicious_packages
Published
2026-06-11 13:19
Modified
2026-06-19 09:53
Summary
Malicious code in ts-ecro (npm)
Details

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

Source: amazon-inspector (37901692194f47c987610aab18ef37d4361e8ab01efd1a8008876920dd8b8aa2)

Package is published as 'ts-ecro' but ships a verbatim copy of big.js v7.0.1 with the original author's copyright, email, and GitHub repository URL — a typosquat/impersonation façade for the upstream big.js library. At module top-level, the entrypoint require()s a sibling attacker-controlled package and immediately invokes its from_str() method, executing arbitrary code from that dependency on every import. The CommonJS variant (big.js:606-608) loads 'websocket-slot' and calls doc.from_str().then(...).catch(...); the ESM variant (big.mjs:606-608) wraps require("parket-slot") + doc.from_str() in a try/catch that swallows errors so the import appears clean. package.json declares 'parket-slot': '^0.0.6' as a runtime dependency, ensuring the loader executes on a default install. The genuine big.js library has no such require call — the loader is appended on top of an otherwise-legitimate codebase to disguise the attack. Any project that installs and imports this package automatically runs whatever code parket-slot / websocket-slot ships, with attacker control over those packages' contents.

Source: ghsa-malware (df2a8949f08aa95cbb792e388cbd5a4e4775ead2606277185203a77264f2389a)

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.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "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"
          },
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ],
        "indicators": {
          "domains": [
            "datasecure-service.vercel.app"
          ],
          "evidence_files": [
            {
              "path": "big.mjs",
              "sha256": "cc4f38d2c43eae53227a80cb79358fe6373f067d82d5b4b9e1cc135a0fbfbcc3",
              "tlsh": "50c2658c3ac67579593363788f4a5088eb38525712c8b186b4ae63b46f78cb107b5fdc"
            },
            {
              "path": "package.json",
              "sha256": "defd0c08e5add03737a0d979034cb5509b86c8a94313789f913f6ab1e66770fb",
              "tlsh": "93210163c9a19da70af85ba4bc6c03aaf1161b2f40a05c5bb07b131c4b3345b2095bbd"
            }
          ],
          "package_integrity": [
            {
              "filename": "ts-ecro-0.0.5.tgz",
              "hashes": {
                "sha1": "617c8e5af9e25937b83a08c10eb962f6701814f2",
                "sha512_sri": "sha512-eVds3vphhGSNiX2T/VtfC+3BaNyes449zUK8RP/oJhl9k9xsBGUo+2j1KuevHsvqSLPmrLvMewDGmVenK5tkjA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "ts-ecro"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "0.0.5",
        "0.0.6"
      ]
    }
  ],
  "aliases": [
    "GHSA-cwjv-7gg4-fp86"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-005741",
        "import_time": "2026-06-11T13:27:21.151877739Z",
        "modified_time": "2026-06-11T13:19:22Z",
        "sha256": "37901692194f47c987610aab18ef37d4361e8ab01efd1a8008876920dd8b8aa2",
        "source": "amazon-inspector",
        "versions": [
          "0.0.5"
        ]
      },
      {
        "id": "IN-MAL-2026-005744",
        "import_time": "2026-06-11T13:27:21.274204488Z",
        "modified_time": "2026-06-11T13:19:25Z",
        "sha256": "6c0bc0efa5cfcc82b1f5b92bdbe69263b1da4cd9430a12c3e115e32002deda7e",
        "source": "amazon-inspector",
        "versions": [
          "0.0.6"
        ]
      },
      {
        "id": "IN-MAL-2026-005743",
        "import_time": "2026-06-11T13:27:21.219174567Z",
        "modified_time": "2026-06-11T13:19:25Z",
        "sha256": "8f2e942dcd86b8cef2bd0eb8809553bdd339bfc9c30b23ed3908df264a28fac0",
        "source": "amazon-inspector",
        "versions": [
          "0.0.6"
        ]
      },
      {
        "id": "IN-MAL-2026-005742",
        "import_time": "2026-06-11T13:27:21.190505859Z",
        "modified_time": "2026-06-11T13:19:23Z",
        "sha256": "f7dba297ddf69a33859e42330e69aefaba884b2893aae47b98d531129c45d212",
        "source": "amazon-inspector",
        "versions": [
          "0.0.5"
        ]
      },
      {
        "id": "GHSA-cwjv-7gg4-fp86",
        "import_time": "2026-06-19T09:51:49.46241081Z",
        "modified_time": "2026-06-19T08:28:32Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "df2a8949f08aa95cbb792e388cbd5a4e4775ead2606277185203a77264f2389a",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (37901692194f47c987610aab18ef37d4361e8ab01efd1a8008876920dd8b8aa2)\nPackage is published as \u0027ts-ecro\u0027 but ships a verbatim copy of big.js v7.0.1 with the original author\u0027s copyright, email, and GitHub repository URL \u2014 a typosquat/impersonation fa\u00e7ade for the upstream big.js library. At module top-level, the entrypoint require()s a sibling attacker-controlled package and immediately invokes its from_str() method, executing arbitrary code from that dependency on every import. The CommonJS variant (big.js:606-608) loads \u0027websocket-slot\u0027 and calls doc.from_str().then(...).catch(...); the ESM variant (big.mjs:606-608) wraps require(\"parket-slot\") + doc.from_str() in a try/catch that swallows errors so the import appears clean. package.json declares \u0027parket-slot\u0027: \u0027^0.0.6\u0027 as a runtime dependency, ensuring the loader executes on a default install. The genuine big.js library has no such require call \u2014 the loader is appended on top of an otherwise-legitimate codebase to disguise the attack. Any project that installs and imports this package automatically runs whatever code parket-slot / websocket-slot ships, with attacker control over those packages\u0027 contents.\n\n## Source: ghsa-malware (df2a8949f08aa95cbb792e388cbd5a4e4775ead2606277185203a77264f2389a)\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-5647",
  "modified": "2026-06-19T09:53:39Z",
  "published": "2026-06-11T13:19:22Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/ts-ecro/v/0.0.5"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/ts-ecro/v/0.0.6"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-cwjv-7gg4-fp86"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in ts-ecro (npm)"
}


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…