mal-2026-12289
Vulnerability from ossf_malicious_packages
Published
2026-08-05 09:15
Modified
2026-08-25 17:27
Summary
Malicious code in twork-data-services-counterfree (npm)
Details

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

Source: amazon-inspector (d2736d9321d2c88c7c2ba7202eefb1c7d0f24106f97480043483ee47ca7d19f9)

index.js unconditionally requires./init on load. _init.js selects a platform-specific binary path, fetches an opaque payload over HTTPS from attacker-controlled Cloudflare Workers hosts whose hostnames are assembled at runtime by joining short string fragments (e.g. 'oob-worker.cf102' + '-baf.work' + 'ers.' + 'dev' → oob-worker.cf102-baf.workers.dev; sibling hosts oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev). If HTTPS mirrors are unreachable, the loader falls back to a DNS-TXT covert channel: it resolves TXT on c. under *.dl.well1.site (tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site) to obtain a chunk count, resolves numbered subdomains to collect base64 chunks, and reassembles the payload. The bytes are written to /tmp or %TEMP% under deceptive names masquerading as system tooling (dotnet_diag.exe on Windows,.cache_ /.analytics_state on POSIX), chmod 0o755 is applied on POSIX, and the binary is spawned detached via cp.spawn('/bin/sh', ['-c', fp+' &'], {detached:true}).unref() or the Windows cmd equivalent. Fires on require() of the package, so any consumer that installs and loads twork-data-services-counterfree executes attacker-controlled code with the installer's privileges.

Source: ghsa-malware (49fa97e8b4aabf0feff8df0102a3ef0cdf74cd492286830435a4d2bbdfef86de)

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.

{
  "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": "_init.js",
              "sha256": "f6dfcb35519ccbe0723eb7363b2361bf88ed745cb274ee99655ac1af4a790b16",
              "tlsh": "33a1a69a156a711847b0a7e4c7174415f65bf6633380c294f79ca5980fb312482b2ffc"
            }
          ],
          "package_integrity": [
            {
              "filename": "twork-data-services-counterfree-20.1.3.tgz",
              "hashes": {
                "sha1": "7e20fdef9fb6c2c99b313961d7432d828b5f8ca0",
                "sha512_sri": "sha512-hgl2DYi+OPkX0VSlKnKet9iK7K7DLOdmnPXKHwsm08IfdhPSOReoJomf56dASvNd+RPbn7ccueS1lpG6XpSStg=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "twork-data-services-counterfree"
      },
      "versions": [
        "20.1.3"
      ]
    }
  ],
  "aliases": [
    "GHSA-5g8h-2mx8-cxhm"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-014609",
        "import_time": "2026-08-05T09:28:30.238253944Z",
        "modified_time": "2026-08-05T09:15:13Z",
        "sha256": "d2736d9321d2c88c7c2ba7202eefb1c7d0f24106f97480043483ee47ca7d19f9",
        "source": "amazon-inspector",
        "versions": [
          "20.1.3"
        ]
      },
      {
        "id": "GHSA-5g8h-2mx8-cxhm",
        "import_time": "2026-08-25T17:25:28.087818797Z",
        "modified_time": "2026-08-25T16:31:31Z",
        "sha256": "49fa97e8b4aabf0feff8df0102a3ef0cdf74cd492286830435a4d2bbdfef86de",
        "source": "ghsa-malware",
        "versions": [
          "20.1.3"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d2736d9321d2c88c7c2ba7202eefb1c7d0f24106f97480043483ee47ca7d19f9)\nindex.js unconditionally requires./_init on load. _init.js selects a platform-specific binary path, fetches an opaque payload over HTTPS from attacker-controlled Cloudflare Workers hosts whose hostnames are assembled at runtime by joining short string fragments (e.g. \u0027oob-worker.cf102\u0027 + \u0027-baf.work\u0027 + \u0027ers.\u0027 + \u0027dev\u0027 \u2192 oob-worker.cf102-baf.workers.dev; sibling hosts oob-worker.cf103-070.workers.dev, oob-worker.cf101-adf.workers.dev, oob-worker.cf99-9b3.workers.dev). If HTTPS mirrors are unreachable, the loader falls back to a DNS-TXT covert channel: it resolves TXT on c.\u003cdomain\u003e under *.dl.well1.site (tin.dl.well1.site, tina.dl.well1.site, ldr.dl.well1.site, win.dl.well1.site) to obtain a chunk count, resolves numbered subdomains to collect base64 chunks, and reassembles the payload. The bytes are written to /tmp or %TEMP% under deceptive names masquerading as system tooling (dotnet_diag_\u003crnd\u003e.exe on Windows,.cache_\u003crnd\u003e /.analytics_state on POSIX), chmod 0o755 is applied on POSIX, and the binary is spawned detached via cp.spawn(\u0027/bin/sh\u0027, [\u0027-c\u0027, fp+\u0027 \u0026\u0027], {detached:true}).unref() or the Windows cmd equivalent. Fires on require() of the package, so any consumer that installs and loads twork-data-services-counterfree executes attacker-controlled code with the installer\u0027s privileges.\n\n## Source: ghsa-malware (49fa97e8b4aabf0feff8df0102a3ef0cdf74cd492286830435a4d2bbdfef86de)\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-12289",
  "modified": "2026-08-25T17:27:31.701018258Z",
  "published": "2026-08-05T09:15:13Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/twork-data-services-counterfree/v/20.1.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-5g8h-2mx8-cxhm"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in twork-data-services-counterfree (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…

Loading…