Skip to content
Heist/ feed
Unrated

Malicious code in tanksync (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (45dcd24fc5596e9273938687d6878a8927fcdf9ffd63982034556e84c3339065) The package's advertised API downloads a JavaScript file over HTTPS and executes it via spawn('node', [payloadPath], {detached: true}).unref(), leaving the worker running after client.close(). The default fetch target is hardcoded to https://api.helloworld.com/api/realtime-data?key=abc, which is a placeholder-shaped host that does not match the publisher's declared domain (spawnrealm.com). The purported integrity check computes HMAC-SHA256 using a symmetric key ('tanksync-secret-key') baked into the shipped source, so any party who reads the package can produce a valid signature for arbitrary payloads; the default expected signature is the placeholder 'abc123def456'. The trigger is a user-invoked API call rather than an install or import lifecycle hook, but fetching and executing arbitrary remote JavaScript is the package's entire declared purpose, and the detached worker continues running after the client is closed. ## Source: ghsa-malware (f372677522463b96bc07edb8801faa745412fd42431192c488a67e8feddd4e4c) 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 guar

Announced Source revision 1
Original source ↗

MAL-2026-17209

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-17209

tanksync

Source reference: /affected/0/package/name

Affected versions
1.0.7

Source reference: /affected/0/versions

1.0.4

Source reference: /affected/0/versions

1.0.5

Source reference: /affected/0/versions

1.0.8

Source reference: /affected/0/versions

1.0.3

Source reference: /affected/0/versions

1.0.1

Source reference: /affected/0/versions

1.0.6

Source reference: /affected/0/versions

1.0.2

Source reference: /affected/0/versions

1.0.0

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": "tanksync",
      "purl": "pkg:npm/tanksync",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.7",
      "1.0.4",
      "1.0.5",
      "1.0.8",
      "1.0.3",
      "1.0.1",
      "1.0.6",
      "1.0.2",
      "1.0.0"
    ],
    "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."
        },
        {
          "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."
        },
        {
          "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."
        },
        {
          "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/tanksync/MAL-2026-17209.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "dist/config.js",
            "tlsh": "3491eeaa8fd9d5028900539c4f3dd96217b4b69b3d499c983b3e3388ef5e1247186db3",
            "sha256": "56e7b19625107adb7e8831e3734ffb85aa034290866549b5981e485d76ea2bce"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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