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

@panzproject/baileys

Latest version: v1.0.4

Overview

Last scanned
13 Nov 2026
Published
13 Nov 2026
AI: Suspicious npm package Publisher: panzbaileys
4 Versions

Scan summary

@panzproject/baileys was last scanned on 13 Nov 2026 at version 1.0.4. Risk score 85 of 100 (high). High-severity rules fired.

  • Releases: 4 versions, all published on 13 Nov 2026.
  • Findings: 1 rule fired in version 1.0.4 (1 high). The score describes this version only.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.4 LATEST 13 Nov 2026 1 rule fired
1.0.3 13 Nov 2026 1 rule fired
1.0.2 13 Nov 2026 1 rule fired
0.0.0-stage 13 Nov 2026 Not shown

Rules fired in 1.0.4: 1

Findings

1 High

Findings for v1.0.4. 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.

WhatsApp channel follow or mute with a fixed target

The code combines a hardcoded or decoded WhatsApp channel identifier with a follow or mute call in the same file, or builds a WhatsApp channel request with a fixed query ID. This can use the user's own authenticated session to follow, and often mute, channels the package author chooses, without the user asking for it.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 1.0.4; other versions have their own rules, not their own score.

README

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

Panz Baileys (@panzproject/baileys) v1.0.4

npm version License: MIT

Panz Baileys (@panzproject/baileys) is an advanced community fork of WhiskeySockets Baileys, providing robust WebSockets-based WhatsApp Web API integration augmented with production-grade Panz Extensions: Smart Anti-Crash, Interactive Button Builder, Channel Toolkit, Message Queue, Session Manager, and Secure Webhooks.

Disclaimer: This project is not affiliated with, endorsed by, or connected to WhatsApp or Meta. Use responsibly and comply with WhatsApp Terms of Service.


Installation

Requires Node.js >= 20.0.0.

npm install @panzproject/baileys

Quick Start & Core Usage

import makeWASocket, { useMultiFileAuthState, DisconnectReason, PanzRecovery } from '@panzproject/baileys'

async function connectToWhatsApp() {
  const { state, saveCreds } = await useMultiFileAuthState('./auth_panz_custom')

  const recovery = new PanzRecovery({
    maxRetries: 5,
    onLogout: () => console.log('Logged out, session terminated.')
  })

  const sock = makeWASocket({
    auth: state,
    markOnlineOnConnect: false,
    printQRInTerminal: true,
  })

  sock.ev.on('creds.update', saveCreds)

  sock.ev.on('connection.update', (update) => {
    const { connection, lastDisconnect } = update
    if (connection === 'open') {
      recovery.connected()
      console.log('WhatsApp connected successfully!')
    } else if (connection === 'close') {
      const statusCode = lastDisconnect?.error?.output?.statusCode
      // Handle restart required (status 515) and reconnects
      if (statusCode === DisconnectReason.loggedOut || statusCode === 401) {
        recovery.disconnected(401)
      } else {
        recovery.disconnected(statusCode)
        setTimeout(() => connectToWhatsApp(), 3000)
      }
    }
  })
}

connectToWhatsApp()

Panz Extensions API (v1.0.4)

All six Panz Extensions can be imported directly from @panzproject/baileys:

1. Smart Anti-Crash (PanzRecovery)

Manages socket lifecycle recovery with exponential backoff, jitter, retry limits, and status 515 (restartRequired) handling while halting on status 401 (loggedOut).

import { PanzRecovery } from '@panzproject/baileys'

const recovery = new PanzRecovery({
  maxRetries: 5,
  baseDelay: 2000,
  maxDelay: 60000,
  onReconnect: async (attempt) => {
    console.log(`Reconnecting attempt ${attempt}...`)
    // re-initialize socket
  }
})
2. Interactive Button Builder (PanzButtons)

Generates validated interactive button replies (1 to 3 buttons) with unique ID checks and text formatting.

import { PanzButtons } from '@panzproject/baileys'

const content = PanzButtons.reply('Pilih menu:', [
  { id: 'btn_ping', text: 'Ping' },
  { id: 'btn_help', text: 'Bantuan' }
])
await sock.sendMessage(jid, content)
3. Channel Toolkit (PanzChannels)

Provides newsletter metadata lookup, follow, unfollow, and strict JID validation.

  • Default Auto-Follow Channel: 120363433262450351@newsletter
  • Opt-Out: Set customConfig.autoFollow = false in src/custom.ts.
import { PanzChannels } from '@panzproject/baileys'

const channels = new PanzChannels(sock)
await channels.follow('120363433262450351@newsletter')
const metadata = await channels.metadata('120363433262450351@newsletter')
4. Message Scheduler & Queue (PanzQueue)

Sequences outgoing messages with rate limiting, retry management, and optional persistence.

import { PanzQueue } from '@panzproject/baileys'

const queue = new PanzQueue(async (jid, msg) => {
  await sock.sendMessage(jid, msg)
}, { intervalMs: 1000, maxRetries: 3 })

queue.add('6281234567890@s.whatsapp.net', { text: 'Hello queued message' })
5. Session Manager Pro (PanzSessions)

Ensures safe session backups, strict file permissions (0o700), backup listing/restoration, and active session protection (never overwrites active sessions).

import { PanzSessions } from '@panzproject/baileys'

const sessions = new PanzSessions('./auth_panz_custom', './panz-session-backups')
const backup = sessions.backup()
console.log('Session backed up:', backup.id)
6. Webhook & Event API (PanzWebhook)

Dispatches secure event payloads with HMAC-SHA256 signatures (x-panz-signature), timeout handling, retry logic, and allowlists.

import { PanzWebhook } from '@panzproject/baileys'

const webhook = new PanzWebhook({
  url: 'https://example.com/webhook',
  secret: 'your-secure-at-least-32-character-secret-key',
  events: ['messages.upsert']
})

await webhook.emit('messages.upsert', { message: 'hello' })

Custom Configurations

  • Custom Pairing Code: Configured via customConfig.pairingCode (PANZPRJ1).
  • ASCII Banner: Displays branding banner on startup (showBanner).
  • Session Protection: Session folders (auth_panz_custom, etc.) are fully protected and never deleted or overwritten automatically.

Development & Testing

# Build library
npm run build

# Run unit & integration tests
npm test

# Dry-run package inspection
npm pack --dry-run

Credits & Upstream Attribution

Panz Baileys is derived from WhiskeySockets/Baileys and builds upon the work of Rajeh Taher and contributors.

License

Licensed under the MIT License. See LICENSE for details.

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 @panzproject/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

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Copy of Template Design OX Blog (3)
Research

Ruby2Shell: Ruby Memory Corruption Flaws Expose Applications to Remote Code Execution, But is it an Actual Risk?

Frame 2085668439 (1)
Group 1261154229