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

pigeonidp

Latest version: v1.0.3

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: draeder
1 Stars
0 Forks
4 Versions
1.2K Downloads
JavaScript Repo language

Scan summary

pigeonidp was last scanned on 29 Nov 2026 at version 1.0.3. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 4 versions; the latest was published on 29 Nov 2026.
  • Findings: No rules fired in version 1.0.3.
  • Downloads: 1,217 downloads.

Versions

4 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.3 LATEST 29 Nov 2026 No rules fired
1.0.2 22 Nov 2026 No rules fired
1.0.1 21 Nov 2026 No rules fired
1.0.0 21 Nov 2026 Not shown

No rules fired in 1.0.3

Findings

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

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

README

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

🕊️ PigeonIdP

P2P SAML Identity Provider using PeerPigeon and UnSEA

A decentralized identity provider (IdP) solution that works in browsers using PeerPigeon's replicated storage and UnSEA for cryptographic operations. Supports custom namespaces.

Built with PeerPigeon 1.2 and UnSEA 3 (post-quantum hybrid keys).

Features

  • 🔐 Decentralized Authentication - No central authority required
  • 🌐 Browser-First - Works natively in modern browsers
  • 🔑 UnSEA Cryptography - Uses UnSEA for signing, encryption, and key management
  • 💾 Replicated storage - Identities kept in PeerPigeon storage, shared between the namespace's peers
  • 🏷️ Custom Namespaces - Support for namespace-specific authentication
  • 🤝 PigeonHub Integration - Designed to work with PigeonHub servers
  • 📦 NPM Module - Easy to import and use in any project
  • 🔒 Secure Key Storage - Password-encrypted key storage in IndexedDB
  • ✅ JWT-like Tokens - Generate and verify authentication tokens
  • 🏢 SAML 2.0 Support - Full SAML IdP for enterprise SSO (Salesforce, AWS, Google, etc.)

Installation

npm install pigeonidp

Quick Start

Node.js Usage
import { PigeonIdP } from 'pigeonidp';

// Create an IdP instance with custom namespace
const idp = new PigeonIdP({
  namespace: 'my-app-namespace'
  // signalingServers: ['wss://your-relay.example/ws']  (default: PeerPigeon's relays)
});

// Initialize the IdP
await idp.init();

// Create a new identity
const keys = await idp.createIdentity('alice', 'secure-password');

// Sign a message
const signature = await idp.sign('Hello World');

// Generate an authentication token
const token = await idp.generateAuthToken({
  username: 'alice',
  role: 'user'
}, 3600); // expires in 1 hour

// Verify the token
const verification = await idp.verifyAuthToken(token);
console.log('Token valid:', verification.valid);

// Disconnect when done
await idp.disconnect();
Browser Usage
<!DOCTYPE html>
<html>
<head>
  <title>PigeonIdP Demo</title>
</head>
<body>
  <script type="module">
    import { PigeonIdP } from './node_modules/pigeonidp/index.js';

    const idp = new PigeonIdP({
      namespace: 'my-namespace'
    });

    await idp.init();
    await idp.createIdentity('user1', 'password123');

    const token = await idp.generateAuthToken({ user: 'user1' });
    console.log('Token:', token);
  </script>
</body>
</html>

See examples/browser-example.html for a full interactive demo.

Note on Password Storage: The password parameter for createIdentity() enables encrypted key storage using IndexedDB, which is only available in browsers. In Node.js environments, omit the password parameter or keys will not be persisted. For server-side key persistence, implement your own storage solution using the exportKeys() and importKeys() methods.

Accounts on the mesh

Accounts are kept on the mesh's storage servers (PigeonFS), not on relays, so any PeerPigeon app finds any account whatever relay it is on (pigeonidp/accounts):

import { createAccountRecord, openAccountRecord } from 'pigeonidp/records';
import { createAccountStore } from 'pigeonidp/accounts';

// A PeerPigeonNode's storage rooms, kept on the storage servers.
const accounts = createAccountStore({ open: (room, options) => node.openStorage(room, options) });

// Register: the record carries the private keys sealed with the password,
// and is signed with the account's own key.
const record = await createAccountRecord({ alias: 'alice', namespace: 'my-app', keys, password });
await accounts.publish(record, keys); // 'ok', or 'taken' when the name is another key's

// Log in on another device: find the record, then open it.
const found = await accounts.find('my-app', 'alice', { waitMs: 15000 });
const keys = await openAccountRecord(found, password); // throws on a wrong password
  • The name is a write-once record in one shared room (pigeonidp/accounts) holding the account's first record. The first claim is the only one: the storage servers keep a write-once record as first written. A claim proves itself (the record in it is signed by the account's key), so a record can be moved over from elsewhere without its keys: accounts.publish(record).
  • Changes (a new password, post-quantum keys) go in the account's own room, which only its key can write to. The newest record there by the same key wins.
  • Nothing here sees a password or an unencrypted key.

pigeonidp/relay (accounts kept by a relay, in identities.json) is from before this and is kept only so old stores can be moved over.

Post-quantum accounts (version 2 records)

Records are version 2: the account's key pair (unsea 3) carries ML-DSA-65 and ML-KEM-768 keys next to its P-256 ones, the record is signed with both (a hybrid signature), and the keys inside are sealed with Argon2id. A quantum computer that breaks P-256 cannot forge or take over such an account.

  • Version 1 records (P-256 only, PBKDF2) still verify and open. upgradeAccountRecord(record, password) turns one into a version 2 record with the same pub, signed by both keys; publish it and keep the returned keys. Do it at login, while P-256 is still unbroken.
  • Once an account has a version 2 record, only version 2 records carrying the same qpub replace it, so it can be neither downgraded nor handed to another post-quantum key.

SAML 2.0 Identity Provider

PigeonIdP includes full SAML 2.0 support for enterprise Single Sign-On integration.

Quick SAML Setup
import { PigeonIdP } from 'pigeonidp';
import { PigeonIdPSAML } from 'pigeonidp/saml';

const idp = new PigeonIdP({ namespace: 'my-org' });
await idp.init();
await idp.createIdentity('admin');

// Add SAML support
const saml = new PigeonIdPSAML(idp, {
  entityId: 'https://myidp.example.com',
  ssoUrl: 'https://myidp.example.com/saml/sso',
  organizationName: 'My Organization'
});

// Generate SAML assertion for user
const user = {
  id: 'alice@company.com',
  username: 'alice',
  attributes: {
    email: 'alice@company.com',
    roles: ['admin']
  }
};

const assertion = await saml.generateAssertion(
  user,
  'https://sp.example.com/acs',
  'https://sp.example.com'
);
Deploy as SAML IdP
IDP_ENTITY_ID=https://idp.example.com npm start

# SAML Metadata URL:
# https://idp.example.com/saml/metadata

Run it behind HTTPS at the address you set as IDP_ENTITY_ID.

Compatible Service Providers
  • ✅ Salesforce
  • ✅ Google Workspace
  • ✅ AWS IAM
  • ✅ Azure AD
  • ✅ Okta
  • ✅ OneLogin
  • ✅ Most enterprise SaaS applications
Full SAML Documentation

See SAML.md for complete guide including:

  • SAML configuration
  • Service provider setup
  • Attribute mapping
  • Testing and troubleshooting
  • Security best practices

Deployment

Deploy PigeonIdP as a server with REST API and SAML endpoints.

Run the server
npm install
IDP_ENTITY_ID=https://idp.example.com PORT=3000 npm start

Or as a container, with the included Dockerfile:

docker build -t pigeonidp .
docker run -p 3000:3000 -e IDP_ENTITY_ID=https://idp.example.com pigeonidp
Available Endpoints
  • GET /health - Health check
  • GET /api/info - Server information
  • GET /api/identity/:alias - Lookup identity from DHT
  • POST /api/verify - Verify a signature
  • POST /api/verify-token - Verify auth token
  • GET /saml/metadata - SAML IdP metadata
  • GET /saml/sso - SAML Single Sign-On
  • POST /saml/sso - SAML authentication

API Reference

Constructor
new PigeonIdP(options)

Options:

  • namespace (string, default: 'default') - Custom namespace for the IdP
  • signalingServers (array, default: PeerPigeon's relays) - FreeRTC signaling relays for WebRTC
  • meshOptions (object) - Additional options for PeerPigeonNode
Methods
init()

Start a PeerPigeon node in the namespace's room, with replicated storage.

await idp.init();
createIdentity(alias, password)

Create a new identity with cryptographic keypair.

const keys = await idp.createIdentity('alice', 'secure-password');

Parameters:

  • alias (string) - Alias for the identity
  • password (string, optional) - Password for encrypted storage

Returns: Keypair object with pub, priv, epub, epriv

loadIdentity(alias, password)

Load an existing identity from encrypted storage.

const keys = await idp.loadIdentity('alice', 'secure-password');
sign(message)

Sign a message or authentication token.

const signature = await idp.sign('Hello World');
verify(message, signature, publicKey)

Verify a signed message.

const isValid = await idp.verify('Hello World', signature, publicKey);
encrypt(message, recipientKeys)

Encrypt a message for a recipient.

const encrypted = await idp.encrypt('Secret message', recipientKeys);
decrypt(encryptedMessage)

Decrypt a message.

const decrypted = await idp.decrypt(encrypted);
generateAuthToken(claims, expiresIn)

Generate an authentication token (JWT-like).

const token = await idp.generateAuthToken({
  username: 'alice',
  role: 'user'
}, 3600); // expires in 1 hour

Parameters:

  • claims (object) - Claims to include in the token
  • expiresIn (number, default: 3600) - Expiration time in seconds

Returns: Token object with claims and signature

verifyAuthToken(token)

Verify an authentication token.

const result = await idp.verifyAuthToken(token);
if (result.valid) {
  console.log('User:', result.claims.username);
}

Returns: Object with valid (boolean), claims (if valid), or error (if invalid)

registerIdentity(profile)

Register an identity in the DHT for discovery.

await idp.registerIdentity({
  username: 'alice',
  displayName: 'Alice Wonderland',
  email: 'alice@example.com'
});
lookupIdentity(publicKey)

Lookup an identity from the DHT.

const identity = await idp.lookupIdentity(publicKey);
console.log('Profile:', identity.profile);
authenticateWithHub(hubNamespace, credentials)

Authenticate with a PigeonHub namespace.

const result = await idp.authenticateWithHub('my-hub', {
  username: 'alice'
});
console.log('Auth token:', result.token);
exportKeys()

Export keys to JWK format.

const jwkKeys = await idp.exportKeys();
importKeys(jwkKeys)

Import keys from JWK format.

await idp.importKeys(jwkKeys);
clearIdentity(alias)

Clear stored identity.

await idp.clearIdentity('alice');
getPublicKeys()

Get current identity public keys.

const pubKeys = idp.getPublicKeys();
// Returns { pub, epub }
disconnect()

Disconnect from the mesh network.

await idp.disconnect();

Examples

Basic Usage

See examples/basic-usage.js for a comprehensive example covering:

  • Creating and loading identities
  • Signing and verifying messages
  • Generating and verifying tokens
  • DHT registration and lookup
  • Encryption and decryption

Run with:

node examples/basic-usage.js
PigeonHub Integration

See examples/pigeonhub-integration.js for:

  • Namespace-specific authentication
  • Cross-user discovery
  • Encrypted messaging between users
  • Multiple namespace support

Run with:

node examples/pigeonhub-integration.js
Browser Demo

See examples/browser-example.html for an interactive browser demo with UI controls.

Architecture

PigeonIdP is built on three key technologies:

  1. PeerPigeon (1.2) - WebRTC mesh networking and replicated storage
  2. UnSEA - Cryptographic toolkit for key generation, signing, encryption (using WebCrypto and noble-curves)
  3. PeerPigeon storage - Public records for storing and discovering identities
Data Flow
User Identity
    ↓
UnSEA (Key Generation)
    ↓
Local Storage (Encrypted with Password)
    ↓
PeerPigeon storage (Public Keys & Profiles)
    ↓
PeerPigeon Mesh (P2P Network)

Integration with PigeonHub

PigeonIdP is designed to integrate seamlessly with PigeonHub:

  1. Namespace Isolation - Each PigeonHub server can have its own namespace

  2. Authentication Flow:

    • User creates/loads identity in IdP
    • IdP generates authentication request
    • Request is stored in DHT under the hub's namespace
    • Hub server verifies and processes authentication
    • Token is issued for authenticated sessions
  3. Discovery - Users can discover other users in the same namespace through DHT lookups

Security Considerations

  • 🔐 Private keys are encrypted with user passwords before storage
  • 🔑 Uses P-256 ECDSA for signatures and ECDH for encryption
  • 🛡️ AES-GCM for message encryption
  • ⏰ Tokens include expiration timestamps
  • ✅ All identity data in DHT is cryptographically signed
  • 🔒 Constant-time operations for sensitive comparisons

Dependencies

  • unsea (^3.1.0) - Cryptography
  • peerpigeon (peer dependency) - Mesh networking and storage
  • express, cors (peer dependencies) - Only for server.js

Browser Compatibility

  • ✅ Chrome/Edge (88+)
  • ✅ Firefox (78+)
  • ✅ Safari (14+)
  • ✅ Opera (74+)

Requires WebRTC and WebCrypto API support.

Node.js Compatibility

  • Node.js 16.0.0 or higher
  • Uses native WebCrypto API (crypto.webcrypto)

License

MIT

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For issues and questions:

Related Projects

  • PeerPigeon - WebRTC mesh networking library
  • UnSEA - Cryptographic toolkit
  • PigeonHub - P2P hub server (planned integration)

Author

PigeonIdP is part of the PeerPigeon ecosystem.

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 pigeonidp

References

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

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (1)
Research

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

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229