MAL-2026-16483
Vulnerability from ossf_malicious_packages
Published
2026-09-23 22:12
Modified
2026-09-23 22:18
Summary
Malicious code in @rixxcodex/baileys (npm)
Details

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

Source: amazon-inspector (58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2)

This package is a fork of the Baileys WhatsApp library that adds three undocumented channels which use the installer's authenticated WhatsApp session to perform account actions chosen by the author at runtime. In lib/Socket/socket.js around line 334, a base64-encoded URL decodes to https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json; loadBase is invoked unconditionally from makeNewsletterSocket on every socket creation and, for each id returned by that mutable list, calls newsletterWMexQuery(id, QueryIds.FOLLOW) on the connected account. A second helper (socketConnect, called from validateConnection when the WebSocket opens) reconstructs the URL https://raw.githubusercontent.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json from a numeric char-code array (String.fromCharCode(...)) and, for each returned newsletter_id, issues a w:mex query with hardcoded query_id 7871414976211147 against the installer's session. A third helper, generateMessageV, is exposed on the socket API and, after a 40 second delay, invokes its callback with a hardcoded @newsletter JID obfuscated as a base64 blob XORed with the constant 23, again paired with query_id 7871414976211147. None of these behaviors are described in the README, and both remote lists are runtime-mutable by the author. In addition, package.json declares the cryptographic dependency "@rixxcodex/libsignal": "github:RixxCode/libsignal" with no tag or commit SHA, so npm install resolves whatever HEAD of that repository currently contains and executes it inside the Signal session-encryption path with no integrity check.

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.
  • 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"
          },
          {
            "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": "lib/Socket/socket.js",
              "sha256": "ea57a6770cf2c246e27a5ffe85ffeb496624f9b1582868d5dff184fd6369a394",
              "tlsh": "ffd2b41b46f3053aab777476562b6021333580073a48dca57bac8254af8e778e6e77cc"
            },
            {
              "path": "lib/Utils/messages-media.js",
              "sha256": "657662b2ae2e8cc1808715d8219d4e7ca7182f6eacda8d79b1cee4b721c88939",
              "tlsh": "34a2c81a2cf711210277b1e55717692ab264e007350ecde9bb8ca710af86728e8f37dd"
            },
            {
              "path": "package.json",
              "sha256": "ebce33ca065d75689eeb102a7930dddde30d1023800756d0f670243bbe40c6fc",
              "tlsh": "f941ce21cf6a4d3305d62595d9a9400269b808f3ae587c2c33d5467c4f4f22f67fa5ed"
            }
          ],
          "package_integrity": [
            {
              "filename": "baileys-8.1.0.tgz",
              "hashes": {
                "sha1": "b4c6b0eeba0d4ab6c8ae0394773947c7774f8d37",
                "sha512_sri": "sha512-1uN3khcm/1z7WLqSxMPEIMwjoKeo2/3T+SKekU2cn/P6Kh75owpPA0I5y6QC2O3wURCgEe8a5a6wiFjP2NHsIA=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "@rixxcodex/baileys"
      },
      "versions": [
        "8.1.0",
        "8.2.0",
        "8.0.16",
        "8.0.15"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-020501",
        "import_time": "2026-09-23T22:16:59.362396745Z",
        "modified_time": "2026-09-23T22:13:15Z",
        "sha256": "276a57485a06d9d1d3ff8df8393ecffaa7d78f1d83c4e4964b53f14c58de7fa3",
        "source": "amazon-inspector",
        "versions": [
          "8.1.0"
        ]
      },
      {
        "id": "IN-MAL-2026-020502",
        "import_time": "2026-09-23T22:16:59.418756267Z",
        "modified_time": "2026-09-23T22:13:23Z",
        "sha256": "8222bb9b13299dd38f26091a058cd44d0d572e81a77394fb14a7851d0772c124",
        "source": "amazon-inspector",
        "versions": [
          "8.2.0"
        ]
      },
      {
        "id": "IN-MAL-2026-020499",
        "import_time": "2026-09-23T22:16:59.240082761Z",
        "modified_time": "2026-09-23T22:12:59Z",
        "sha256": "58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2",
        "source": "amazon-inspector",
        "versions": [
          "8.0.16"
        ]
      },
      {
        "id": "IN-MAL-2026-020500",
        "import_time": "2026-09-23T22:16:59.300419802Z",
        "modified_time": "2026-09-23T22:13:07Z",
        "sha256": "7b0dbc2dcacd94b03ada3e4eb57692604b7e073c98474752c00faa31aac891a2",
        "source": "amazon-inspector",
        "versions": [
          "8.0.15"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2)\nThis package is a fork of the Baileys WhatsApp library that adds three undocumented channels which use the installer\u0027s authenticated WhatsApp session to perform account actions chosen by the author at runtime. In lib/Socket/socket.js around line 334, a base64-encoded URL decodes to https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json; loadBase is invoked unconditionally from makeNewsletterSocket on every socket creation and, for each id returned by that mutable list, calls newsletterWMexQuery(id, QueryIds.FOLLOW) on the connected account. A second helper (socketConnect, called from validateConnection when the WebSocket opens) reconstructs the URL https://raw.githubusercontent.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json from a numeric char-code array (String.fromCharCode(...)) and, for each returned newsletter_id, issues a w:mex query with hardcoded query_id 7871414976211147 against the installer\u0027s session. A third helper, generateMessageV, is exposed on the socket API and, after a 40 second delay, invokes its callback with a hardcoded @newsletter JID obfuscated as a base64 blob XORed with the constant 23, again paired with query_id 7871414976211147. None of these behaviors are described in the README, and both remote lists are runtime-mutable by the author. In addition, package.json declares the cryptographic dependency \"@rixxcodex/libsignal\": \"github:RixxCode/libsignal\" with no tag or commit SHA, so npm install resolves whatever HEAD of that repository currently contains and executes it inside the Signal session-encryption path with no integrity check.\n",
  "id": "MAL-2026-16483",
  "modified": "2026-09-23T22:18:48Z",
  "published": "2026-09-23T22:12:59Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@rixxcodex/baileys/v/8.1.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@rixxcodex/baileys/v/8.2.0"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.16"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.15"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in @rixxcodex/baileys (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…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…