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

@majikah/majik-signature

Latest version: v1.6.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: thezelijah
1 Stars
0 Forks
25 Versions
1.7K Downloads
TypeScript Repo language

Scan summary

@majikah/majik-signature was last scanned on 27 Nov 2026 at version 1.6.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 25 versions; the latest 2 were published within 3 days (25–27 Nov 2026).
  • Findings: No rules fired in version 1.6.0.
  • Downloads: 1,702 downloads.

Versions

25 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.6.0 LATEST 27 Nov 2026 No rules fired
1.4.0 25 Nov 2026 No rules fired
1.3.2 20 Nov 2026 No rules fired
1.3.1 20 Nov 2026 Not shown
1.3.0 15 Nov 2026 Not shown

No rules fired in 1.6.0

Findings

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

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

README

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

Majik Signature

Developed by Zelijah GitHub Sponsors

npm npm downloads npm bundle size License TypeScript

Static Badge Static Badge

Majik Signature is a hybrid post-quantum content signing and verification library for the Majikah ecosystem. Built on top of Majik Key, it produces tamper-evident, forgery-resistant digital signatures for any content — plaintext, JSON, PDFs, audio, video, Office documents, or raw binary — using a dual-algorithm architecture that combines classical Ed25519 with post-quantum ML-DSA-87 (FIPS-204).

Beyond signing raw bytes, Majik Signature can embed signatures directly into a file's native format or produce detached envelopes that travel independently of the file. Envelopes can be represented as JSON, the existing Base64 serialization format, CBOR bytes, or a dedicated self-describing binary container (.mjksig). The current .mjksig writer uses version 2 with CBOR, while the reader retains support for legacy version 1 JSON containers. Newly embedded envelopes use a version-marked, Base64-wrapped CBOR representation, while existing files with legacy JSON-encoded embedded envelopes remain readable. New .mjksmap containers use version 2 with CBOR-native byte strings for content hashes and nested envelope cryptographic fields; the reader continues to accept legacy version 1 JSON manifests. The SDK also supports multi-party signing, signing allowlists, envelope sealing, trusted timestamps (TSA), batch/folder signing via the .mjksmap manifest format, chronological signing-order verification, and blockchain anchor registration.


Table of Contents

  • Majik Signature
    • Table of Contents
    • Why Majik Signature
    • Security Architecture
      • 1. Hybrid Dual-Algorithm Signing
      • 2. Canonical Payload Binding
      • 3. Content-Agnostic Hashing
      • 4. File Embedding & Detachment Integrity
      • 5. Multi-Party Signing, Allowlists & Sealing
      • 6. File Versioning for Visually-Mutating Multi-Sig Workflows
      • 7. Trusted Timestamps (TSA)
      • 8. Chain Anchoring
    • Overview
      • What is a Majik Signature?
      • Use Cases
    • Features
      • Security & Post-Quantum Readiness
      • Multi-Party Signing
      • Detached Signing & Batch Workflows
      • Content Format Support
      • Developer Experience
      • Serialization & Portability
    • Installation
    • Command-Line Interface
      • mjksig — Sign, Verify, Seal, Inspect
      • Run with npx
      • CLI Documentation
    • Quick Start
      • Signing Raw Content
      • File Embedding
      • Detached Signing
      • Multi-Signature Files & Allowlists
      • Sealing an Envelope
      • Trusted Timestamps (TSA)
      • Batch Signing a Folder
      • Verifying Signing Order
      • Chain Anchoring
      • File Versioning & Multi-Sig Revisions
    • API Reference
      • Content Signing (bytes/strings)
        • MajikSignature.sign(content, key, options?)
        • MajikSignature.verify(content, signature, publicKeys)
        • MajikSignature.verifyWithKey(content, signature, key)
        • MajikSignature.publicKeysFromMajikKey(key)
        • signature.extractPublicKeys() (instance method)
        • signature.validate() / signature.isValid()
        • MajikSignature.fromJSON(json) / MajikSignature.deserialize(base64)
      • File Embedding API
        • MajikSignature.signFile(file, key, options?)
        • MajikSignature.verifyFile(file, keyOrPublicKeys, options?)
        • signature.embedIn(file, options?) (instance method)
        • MajikSignature.extractFrom(file, options?)
        • MajikSignature.stripFrom(file, options?)
        • MajikSignature.isSigned(file, options?)
      • Detached Signing & MajikSignatureEnvelope API
        • MajikSignature.signFileDetached(file, key, options?)
        • MajikSignature.verifyFileDetached(file, envelope, keyOrPublicKeys, options?)
        • MajikSignatureEnvelope
      • Multi-Signature & Allowlist API
        • MajikSignature.expectedSignerFromKey(key)
        • MajikSignature.getAllowlist(file, options?)
        • MajikSignature.canSign(file, key, options?)
        • MajikSignature.getSignatories(file, options?, filter?)
        • MajikSignature.getIssuer(file, options?)
        • MajikSignature.getEnvelopeInfo(file, options?)
        • MajikSignature.isMultiSig(file, options?)
      • Sealing API
        • MajikSignature.seal(file, key, options?)
        • MajikSignature.verifySeal(file, options?)
        • MajikSignature.getSealInfo(file, options?)
        • MajikSignature.isSealed(file, options?)
      • Trusted Timestamps API
        • signature.buildTSARequestPayload()
        • MajikSignature.signTSA(request, key, tsa, options?)
        • signature.addTSA(timestamp)
        • signature.verifyTSA()
        • signature.hasTSA
      • SignRoom Session-Bound Signing
        • MajikSignature.signSessionFile(file, key, options)
        • MajikSignature.verifySessionFile(file, envelope, options)
        • buildSessionContextHash(context)
        • MajikSignature.verifyDigest(hash, signature, publicKeys, options?)
      • Batch Signing & MajikSignatureMap API
        • MajikSignature.signBatchDetached(files, key, options?)
        • MajikSignature.signBatchDetachedStream(files, key, options?)
      • Resource and untrusted-input limits
        • MajikSignature.verifyFilesFromMjksMap(map, files, publicKeys, options?)
        • MajikSignature.verifyFilesFromMjksMapStream(map, files, publicKeys, options?)
        • MajikSignature.verifyFilesFromMjksMapWithKey(map, files, key, options?)
        • MajikSignature.summarizeBatchVerification(results)
        • MajikSignatureMap
      • Signature Order Verification API
        • MajikSignature.verifyFileOrder(file, expectedOrder, options?)
        • MajikSignature.verifyFileDetachedOrder(file, envelope, expectedOrder, options?)
        • MajikSignature.normalizeExpectedOrder(expectedOrder)
      • Chain Anchoring API (Experimental)
        • MajikSignature.canAnchor(file, options?)
        • MajikSignature.buildChainAnchorMemo(sealHash)
        • MajikSignature.registerChainAnchor(file, anchor, options?)
        • MajikSignature.getChainAnchors(file, options?)
      • File Versioning API
        • MajikSignature.signFile(file, key, options?) — versioning-relevant options
        • MajikSignature.verifyFileChain(file, options?)
        • MajikSignature.verifyFileRevisions(finalFile, revisions, options?)
        • MajikSignature.verifyCommitment(signature, publicKeys, now?)
      • Image Stamping (Experimental)
      • Serialization
        • signature.toJSON() / MajikSignature.fromJSON(json)
        • signature.serialize() / MajikSignature.deserialize(base64)
        • envelope.toJSON() / MajikSignatureEnvelope.fromJSON(json)
        • envelope.serialize() / MajikSignatureEnvelope.deserialize(base64)
        • envelope.toMJKSIG() / MajikSignatureEnvelope.fromMJKSIG(input)
        • signature.toCBOR() / MajikSignature.fromCBOR(bytes)
        • envelope.toCBOR() / MajikSignatureEnvelope.fromCBOR(bytes)
    • Supported File Formats
    • Signature & Envelope Structure
      • Payload Size Comparison
      • Why can CBOR be smaller?
      • When should you use CBOR?
    • Binary Container Formats (MJKSIG / MJKSMAP)
      • Usage
    • Error Handling
    • Security Considerations
      • What is Guaranteed
      • What is Your Responsibility
      • What NOT to Do
      • What TO Do
    • The Majikah Ecosystem
    • Related Projects
      • Majik Key
      • Majik Message
    • Contributing
    • License
    • Author
    • Contact

Why Majik Signature

Most "digital signature" libraries only sign raw bytes and leave you to figure out storage, transport, and file compatibility yourself. Majik Signature is built to be dropped into a real application:

  • Hybrid post-quantum by default — every signature is Ed25519 + ML-DSA-87, not an opt-in extra.
  • Signatures live inside the file, or travel detached — embed directly into the file's native format, or produce a portable envelope as JSON, Base64, raw CBOR bytes, or a versioned .mjksig binary container. Legacy JSON representations remain supported for backward compatibility.
  • Multi-party signing is a first-class concept — not bolted on. Allowlists, sealing, issuer semantics, and chronological order verification are part of the core envelope model.
  • Batch-aware — sign or verify an entire folder or zip's contents against a single manifest (.mjksmap) instead of tracking one signature file per asset.
  • Deterministic by design — canonical payload construction is deterministic for the same signer and signed metadata (including timestamp and optional policy fields) (see Signature & Envelope Structure).
  • TypeScript-first API — core workflows use JavaScript/TypeScript dependencies and Web-standard binary APIs; no native add-on is required for the core signing path. cbor-x may use optional platform-specific acceleration when available. The CLI runs on Node.js 22.12+.

Security Architecture

flowchart TD
    A[12/24-word BIP-39 Seed Phrase] --> B[Majik Key]

    %% Signing branch
    B --> S[Signing]
    S --> S1[Ed25519]
    S --> S2[ML-DSA-87]

    %% Identity branch
    B --> I[Identity]
    I --> I1[BIP-39]
    I --> I2[X25519]

    %% Products (fan-in)
    S1 --> P1[Majik Signature]
    S2 --> P1
1. Hybrid Dual-Algorithm Signing

Every Majik Signature is produced by two independent signing algorithms over the same canonical payload:

  • Ed25519 — classical elliptic curve signature (128-bit security, 64-byte signature)
  • ML-DSA-87 (FIPS-204) — post-quantum lattice-based signature (NIST Category 5, ~4627-byte signature)

Verification requires both to pass. This means:

  • A classical attacker breaking Ed25519 still cannot forge the ML-DSA-87 signature.
  • A quantum attacker breaking ML-DSA-87 still cannot forge the Ed25519 signature.
  • No single algorithmic break is sufficient to forge a valid signature.
2. Canonical Payload Binding

Both signatures cover a domain-separated canonical payload:

"majik-signature-v1:" + JSON({ v, id, ts, ct, hash[, alh][, vu][, vch][, sch] })
Field Description
v Envelope version
id Signer fingerprint (MajikKey identity)
ts ISO 8601 timestamp
ct Content type (advisory, or null)
hash SHA-256 of the original content, base64
alh SHA-256 of the canonical allowlist, base64 — present only when this signer is establishing an allowlist
vu Optional ISO 8601 expiry. When present, verify() treats the signature as invalid once the current time is past this value. Absent = never expires (matches all pre-existing signatures — fully backward compatible). Covered by the canonical signing payload when present, so it cannot be stripped or extended post-hoc without breaking both signatures.
vch SHA-256 of the fileVersions revision chain, Base64 — present only when file versioning is in use; commits the signer to the chain state at their turn.
sch SHA-256 commitment to a SignRoom session, one-time challenge, and immutable policy snapshot; present only for session-bound signing.

alh is omitted entirely (not set to null) on every signature that isn't establishing an allowlist. This is a deliberate backward-compatibility guarantee: every signature produced before multi-sig support existed still verifies today, because its payload bytes are unchanged.

This binding means a valid signature cannot be reused on different content, transferred to a different signer, replayed with a modified timestamp, or forged without both private keys.

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 @majikah/majik-signature

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

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

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

Frame 2085668439 (1)
Group 1261154229