mal-2026-13459
Vulnerability from ossf_malicious_packages
Published
2026-08-06 15:31
Modified
2026-08-10 00:30
Summary
Malicious code in streak-map-cache (npm)
Details

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

Source: amazon-inspector (d6ae48e032b5494c8939d41973598b9dd35d5954ccf6850cd633e7992995cc6b)

The package advertises itself as a dependency-free day/streak math library, but its main entrypoint (dist/index.mjs) contains a top-level async IIFE that unconditionally chmods 0755 and spawns a bundled Linux ELF at dist/internal/calc-map.bin as a detached child process on every import/require. The JavaScript day-math logic in dist/internal/daymath.mjs is pure JS and never invokes the binary; a placeholder _ensureEngine() simply returns true, and code comments acknowledge the binary is cosmetic. The ELF is a RedShell C2 implant: it beacons to hardcoded C2 217.60.77.63 over plain HTTP, treats received input as shell commands, and implements reverse-shell, SOCKS5 proxy, TCP port-forwarding, memfd_create-based ELF/shellcode download-and-exec from http://217.60.77.63/Others/ and /SC/, chunked file exfiltration to http://217.60.77.63/api/extract-receive, operator commands for SSH-key/credential/database harvesting (/ssh_keys, /creds, /dbfind, /env, /clipboard, /download, /dataextract), and systemd --user persistence. Cover-story framing (README, log strings, sha256 'integrity gate') labels the binary a 'native math accelerator' to defeat cursory review.

Source: ghsa-malware (b177c03c762501864b5b883d86f29137ebf6e03d516a338c31655434d3195c09)

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": "dist/index.mjs",
              "sha256": "c753b7cbd2ffb89ad51dc6f48714204df8955d000520174329dd3785aede4562",
              "tlsh": "82413466afbd572997fc0782ce38b193252d84431f96dc95d94e473861c0b98d3c0979"
            },
            {
              "path": "dist/internal/calc-map.bin",
              "sha256": "4537b1189ce419f1a595cf47216c03f80e9170ce80dad8d9227a1e52f9cb3466",
              "tlsh": "83531a2bbdc28e3fc084d53087dfd42269b5705aaa33712f26111f293d59a69473f72a"
            },
            {
              "path": "dist/internal/daymath.mjs",
              "sha256": "c61a136ac79d294bd83bf01be5e9093a22ae721a7a37d85f25e3918247ca785e",
              "tlsh": "063144f5e2d85374d7b992509e0ad54aa32cf6373f56c541504c25e02483811f37dfd9"
            }
          ],
          "package_integrity": [
            {
              "filename": "streak-map-cache-1.0.0.tgz",
              "hashes": {
                "sha1": "c82af2395c9e14a5a42afe0af52521c38589e0ed",
                "sha512_sri": "sha512-swusKqc89ExBLEWouro3oQ35H9UJp53fG4NDNwq95emd+wqr5VOnOmHCOJQYjqaUUOn8j2vzGjj79D032XzBOw=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "streak-map-cache"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.0.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-v2fj-c673-2gjm"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-016652",
        "import_time": "2026-08-06T18:09:01.640154801Z",
        "modified_time": "2026-08-06T15:31:13Z",
        "sha256": "d6ae48e032b5494c8939d41973598b9dd35d5954ccf6850cd633e7992995cc6b",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      },
      {
        "id": "GHSA-v2fj-c673-2gjm",
        "import_time": "2026-08-09T23:21:54.558675Z",
        "modified_time": "2026-08-07T17:48:31Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "b177c03c762501864b5b883d86f29137ebf6e03d516a338c31655434d3195c09",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d6ae48e032b5494c8939d41973598b9dd35d5954ccf6850cd633e7992995cc6b)\nThe package advertises itself as a dependency-free day/streak math library, but its main entrypoint (dist/index.mjs) contains a top-level async IIFE that unconditionally chmods 0755 and spawns a bundled Linux ELF at dist/internal/calc-map.bin as a detached child process on every import/require. The JavaScript day-math logic in dist/internal/daymath.mjs is pure JS and never invokes the binary; a placeholder _ensureEngine() simply returns true, and code comments acknowledge the binary is cosmetic. The ELF is a RedShell C2 implant: it beacons to hardcoded C2 217.60.77.63 over plain HTTP, treats received input as shell commands, and implements reverse-shell, SOCKS5 proxy, TCP port-forwarding, memfd_create-based ELF/shellcode download-and-exec from http://217.60.77.63/Others/* and /SC/*, chunked file exfiltration to http://217.60.77.63/api/extract-receive, operator commands for SSH-key/credential/database harvesting (/ssh_keys, /creds, /dbfind, /env, /clipboard, /download, /dataextract), and systemd --user persistence. Cover-story framing (README, log strings, sha256 \u0027integrity gate\u0027) labels the binary a \u0027native math accelerator\u0027 to defeat cursory review.\n\n## Source: ghsa-malware (b177c03c762501864b5b883d86f29137ebf6e03d516a338c31655434d3195c09)\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-13459",
  "modified": "2026-08-10T00:30:53.881422152Z",
  "published": "2026-08-06T15:31:13Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/streak-map-cache/v/1.0.0"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-v2fj-c673-2gjm"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in streak-map-cache (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…