Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@rixxcodex/baileys

Latest version: v9.0.3

Overview

Last scanned
23 Sep 2026
Published
2 Oct 2026
AI: Malicious npm package Publisher: rixxcodex
0 Stars
0 Forks
6 Versions
1.9K Downloads
JavaScript Repo language

Scan summary

@rixxcodex/baileys was last scanned on 23 Sep 2026 at version 8.2.0. Risk score 100 of 100 (critical). Confirmed as malicious by OX Research. The AI review also flagged it as malicious.

  • Releases: 6 versions; the latest was published on 2 Oct 2026.
  • Findings: 2 rules fired in version 8.2.0 (3 instances: 1 critical, 2 high). The score reflects OX Research's verdict, not this version's rules.
  • Downloads: 1,863 downloads.

Advisory

The package contains a WhatsApp group join logic without the user's knowledge or consent. While not malicious in terms of stealing data, it falls under the definition of PUP (Potentially Unwanted Program). OX Research confirmed the whole package as malicious. The findings shown are from version 8.2.0.

reviewed by OX Research

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
9.0.3 LATEST 2 Oct 2026 Malicious Not shown
9.0.0 24 Sep 2026 Malicious Not shown
8.2.0 23 Sep 2026 Malicious 2 rules fired
8.1.0 23 Sep 2026 Malicious Not shown
8.0.16 23 Sep 2026 Malicious Not shown
8.0.15 23 Sep 2026 Malicious Not shown

Rules fired in 8.2.0: 2 Malicious

Findings

1 Critical 2 High

Findings for v8.2.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

AI review assessed the package as likely malicious

An automated AI review assessed the package's behavior as likely malicious, based on code excerpts, package metadata and the other findings for this package. It is an automated assessment, not a confirmed result on its own, and should be reviewed.

CRITICAL

WhatsApp channel follow or mute with a fixed target

HIGH
Checking access…

🔒 Create a free account to see all 3 findings with descriptions and instance counts

The score reflects OX Research's verdict, not this version's rules. Other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@rixxcodex/baileys

Open-source WhatsApp automation library 2014 no browser required.\ Built on WebSocket for speed, stability, and full multi-device support.

Installation Documentation Features Telegram


What is @rixxcodex/baileys?

@rixxcodex/baileys is a powerful, open-source library for developers who need reliable WhatsApp automation without the overhead of a browser. Powered by WebSocket technology, it supports message management, group administration, interactive messages, and action buttons all in a lightweight and modular package.

Actively maintained with continuous improvements to pairing stability, session management, and WhatsApp multi-device compatibility.

Perfect for:

  • Business bots & chat automation
  • Customer service systems
  • Broadcast & notification tools
  • E-commerce integrations

Main Features

Feature Description
Custom Pairing Stable pairing with your own codes no disconnection issues
Interactive Messages Buttons, menus, native flows, and more
Session Management Automatic, efficient, and long-term stable
Multi-Device Support Fully compatible with WhatsApp's latest multi-device API
Lightweight & Modular Easy to integrate into any Node.js project
Rich Documentation Comprehensive guides and example code included
Secure Auth Improved authentication flow with fixed prior vulnerabilities

Getting Started

Install via npm or yarn:

npm install @rixxcodex/baileys
# or
yarn add @rixxcodex/baileys

Then import and initialize:

const { makeWASocket, useMultiFileAuthState } = require("@rixxcodex/baileys");

const { state, saveCreds } = await useMultiFileAuthState("auth_info");
const sock = makeWASocket({ auth: state });

sock.ev.on("creds.update", saveCreds);

Additional Functions

Get Channel ID
await sock.newsletterId(url);
Check Banned Number
await sock.checkWhatsApp(target);

SendMessage Documentation

await sock.sendMessage(target, {
    groupStatusMessage: {
        text: "Hello World"
    }
});
await sock.sendMessage(target, {
    albumMessage: [
        { image: cihuy, caption: "First photo" },
        { image: { url: "IMAGE_URL" }, caption: "Second photo" }
    ]
}, { quoted: m });
await sock.sendMessage(target, {
    eventMessage: {
        isCanceled: false,
        name: "Event Name",
        description: "Event description here",
        location: {
            degreesLatitude: 0,
            degreesLongitude: 0,
            name: "Location Name"
        },
        joinLink: "https://call.whatsapp.com/video/example",
        startTime: "1763019000",
        endTime: "1763026200",
        extraGuestsAllowed: false
    }
}, { quoted: m });
await sock.sendMessage(target, {
    pollResultMessage: {
        name: "Poll Title",
        pollVotes: [
            { optionName: "Option A", optionVoteCount: "112233" },
            { optionName: "Option B", optionVoteCount: "1" }
        ]
    }
}, { quoted: m });
await sock.sendMessage(target, {
    interactiveMessage: {
        header: "Hello World",
        title: "Hello World",
        footer: "telegram: @Xskycode",
        buttons: [
            {
                name: "cta_copy",
                buttonParamsJson: JSON.stringify({
                    display_text: "Copy Code",
                    id: "123456789",
                    copy_code: "ABC123XYZ"
                })
            }
        ]
    }
}, { quoted: m });
await sock.sendMessage(target, {
    interactiveMessage: {
        header: "Hello World",
        title: "Hello World",
        footer: "telegram: @Xskycode",
        image: { url: "https://example.com/image.jpg" },
        nativeFlowMessage: {
            messageParamsJson: JSON.stringify({
                limited_time_offer: {
                    text: "Limited offer text",
                    url: "https://t.me/Xskycode",
                    copy_code: "PROMO2024",
                    expiration_time: Date.now() * 999
                },
                bottom_sheet: {
                    in_thread_buttons_limit: 2,
                    divider_indices: [1, 2, 3, 4, 5, 999],
                    list_title: "List Title",
                    button_title: "Button Title"
                },
                tap_target_configuration: {
                    title: "Title",
                    description: "Description text",
                    canonical_url: "https://t.me/Xskycode",
                    domain: "shop.example.com",
                    button_index: 0
                }
            }),
            buttons: [
                {
                    name: "single_select",
                    buttonParamsJson: JSON.stringify({ has_multiple_buttons: true })
                },
                {
                    name: "call_permission_request",
                    buttonParamsJson: JSON.stringify({ has_multiple_buttons: true })
                },
                {
                    name: "single_select",
                    buttonParamsJson: JSON.stringify({
                        title: "Select an Option",
                        sections: [
                            {
                                title: "Section Title",
                                highlight_label: "Label",
                                rows: [
                                    {
                                        title: "Row Title",
                                        description: "Row description",
                                        id: "row_1"
                                    }
                                ]
                            }
                        ],
                        has_multiple_buttons: true
                    })
                },
                {
                    name: "cta_copy",
                    buttonParamsJson: JSON.stringify({
                        display_text: "Copy Code",
                        id: "123456789",
                        copy_code: "ABC123XYZ"
                    })
                }
            ]
        }
    }
}, { quoted: m });
await sock.sendMessage(target, {
    interactiveMessage: {
        header: "Hello World",
        title: "Hello World",
        footer: "telegram: @Xskycode",
        image: { url: "https://example.com/image.jpg" },
        buttons: [
            {
                name: "cta_copy",
                buttonParamsJson: JSON.stringify({
                    display_text: "Copy Code",
                    id: "123456789",
                    copy_code: "ABC123XYZ"
                })
            }
        ]
    }
}, { quoted: m });

✨ Extra helpers (enhance)

Opt-in bot helpers built into the library — no extra dependency:

const { makeWASocket } = require("@rixxcodex/baileys");
const { enhance } = require("@rixxcodex/baileys/enhance");

const sock = makeWASocket(config);

enhance(sock, {
  antiCall: true,        // auto-reject calls
  autoRead: true,        // mark incoming messages as read
  autoTyping: true,      // show "typing..." indicator
  antiDelete: { resend: true }, // detect & resend deleted messages
  alwaysOnline: true,    // keep presence "available"
});

// events emitted for you
sock.ev.on("rix.messageDeleted", ({ chat, by, text, original }) => {
  console.log(`deleted in ${chat} by ${by}: ${text}`);
});

// extra helper
await sock.sendContact("628xxxxxxxxxx@s.whatsapp.net", {
  name: "Rixx", number: "628xxxxxxxxxx",
});
Option Type What it does
antiCall bool or { allow: [jids] } Auto-reject incoming calls
autoRead bool or { exceptGroups: bool } Mark messages as read
autoTyping bool or { delay: ms } Typing indicator on new messages
antiDelete bool or { cacheSize, resend } Detect deleted messages, optional resend
alwaysOnline bool Keep presence "available"

💎 Hidden gems (gems)

Rare helpers most libraries never expose:

const { gems } = require("@rixxcodex/baileys/gems");
gems(sock);

// 1. edit a message you already sent
await sock.editMessage(jid, sentMessageKey, "new text");

// 2. decrypt a poll vote (votes arrive as encrypted blobs!)
const { selected } = sock.decodePollVote(voteMsg, {
  pollEncKey: pollMessage.messageContextInfo.messageSecret,
  pollCreatorJid: pollMsg.key.remoteJid,
  pollMsgId: pollMsg.key.id,
});

// 3. quoted message through any wrapper (view-once, ephemeral...)
const q = sock.getQuoted(msg); // → { key, text, message } | null

// 4. disappearing message in one call
await sock.sendEphemeral(jid, { text: "byeee" }, { seconds: 86400 });

// 5. view-once in one call
await sock.sendViewOnce(jid, { image: { url } , caption: "peek 👀" });

📢 Channel Suite (channel)

Post, react, moderate and read WhatsApp Channels:

const { channel } = require("@rixxcodex/baileys/channel");
channel(sock);

await sock.channelCreate("My Channel", "Daily updates");     // create
await sock.channelPost(jid, { text: "Hello!" });             // post (also media)
await sock.channelReact(jid, serverId, "🔥");                // react to a post
await sock.channelFollow(jid);                               // follow/unfollow/mute/unmute
await sock.channelUpdateName(jid, "New Name");               // rename / desc / picture
const { posts } = await sock.channelFetchPosts(jid, 10);     // read posts
await sock.channelLiveUpdates(jid);                          // subscribe to live updates
// live events: sock.ev.on("newsletter.view" | "newsletter.reaction", ...)

🛡 Group Guard (guard)

Group security suite — turns system stubs into events, auto-approves join requests, detects nuking:

const { guard } = require("@rixxcodex/baileys/guard");
guard(sock, {
  autoApprove: { whitelist: ["628xx@s.whatsapp.net"] }, // approve list, reject rest
  antiNuke: { threshold: 4, windowMs: 60000, lockdown: true }, // auto announcement+approval on burst
});

sock.ev.on("rix.group.event", (e) => console.log(e.type, e.chat, e.actor));
// types: member_add, member_remove, promote, demote, join_request,
//        admin_revoke, invite_link_locked, group_deactivated, ...
sock.ev.on("rix.group.nukeDetected", ({ chat, actor, count }) => { /* alert */ });

⏳ Time Machine (pdo)

On-demand history sync & server-side link previews via companion data ops:

const { pdo } = require("@rixxcodex/baileys/pdo");
pdo(sock);

await sock.requestHistory("628xx@s.whatsapp.net", { count: 50 });
// → history arrives via "messaging-history.set"

const preview = await sock.requestLinkPreview("https://example.com/post");
// → { url, title, description, ... } | null

💎 Polls, Quiz & more (gems)

const { gems } = require("@rixxcodex/baileys/gems");
gems(sock);

// quiz poll — correct answer revealed after close
const q = await sock.sendQuiz(jid, { name: "1+1?", values: ["2","3"], correctAnswer: "2" });
sock.rememberPollSecret(q.key, q.messageContextInfo?.messageSecret);

// track & read live results
sock.trackPoll(q);
sock.ev.on("messages.update", async (u) => {
  const results = sock.pollResults(q.key);   // [{ name, voters:[...] }]
});

// the bot votes in its own poll
await sock.votePoll(jid, q.key, ["2"]);

// status & album
await sock.postStatus({ text: "hi" }, { audience: ["628xx@s.whatsapp.net"] });
await sock.sendAlbum(jid, [{ image: { url: a } }, { video: { url: b } }]);

gems also keeps: editMessage, decodePollVote, getQuoted, sendEphemeral, sendViewOnce. enhance keeps: antiCall, autoRead, autoTyping, antiDelete, alwaysOnline, sendContact.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @rixxcodex/baileys

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

Frame 2085668439 (1)
Group 1261154229