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

witness-dao

Latest version: v0.2.1

Overview

Last scanned
26 Nov 2026
Published
26 Nov 2026
npm package Publisher: mikerawsonnz
3 Versions
15 Downloads

Scan summary

witness-dao was last scanned on 26 Nov 2026 at version 0.2.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 26 Nov 2026.
  • Findings: No rules fired in version 0.2.1.
  • Downloads: 15 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.1 LATEST 26 Nov 2026 No rules fired
0.2.0 26 Nov 2026 No rules fired
0.1.1 26 Nov 2026 No rules fired

No rules fired in 0.2.1

Findings

Findings for v0.2.1. 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 0.2.1; other versions have their own rules, not their own score.

README

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

Witness-DAO

Governance evidence for DAOs that survives contact with a regulator, an auditor, or a court.

Witness-DAO seals every governance-significant action — proposal, vote, multisig approval, treasury movement — to a tamper-evident, externally anchored record bound to the rule that authorised it, then turns that trail into artefacts humans actually rely on.

Built on VDA Witness (the evidence layer of Verified Digital Agents).


Why this exists

The blockchain already proves a vote happened. It does not produce:

  • a unified record spanning off-chain deliberation, Snapshot tallies, multisig approvals and treasury movements, each mapped to the ratified rule version;

  • proof of process followed — or of non-participation — for a named individual;

  • evidence a legal wrapper can put in front of an auditor or a supervisor when asked to demonstrate that its governance decisions followed its own ratified rules.

    That third bullet is deliberately narrow. This is not a MiCA report, not an AML report, and not a substitute for either — it produces evidence a human then interprets. MiCA obligations attach to issuers and to authorised CASPs and consist of authorisation, prudential safeguards, governance arrangements, record-keeping, complaints handling, conflicts of interest, custody segregation and market-abuse controls. Witness-DAO performs none of them. What it can honestly contribute is a tamper-evident evidence layer for the governance-arrangements and record-keeping limbs, if your counsel concludes that is useful to you. No AML capability exists at all; see governance-rules/treasury.transfer.md.

That third gap is the one with a buyer. After the CFTC's Ooki DAO action (a DAO treated as an unincorporated association, where voting your tokens can create personal liability) and the 2025 N.D. Cal. ruling treating Lido DAO as a general partnership (exposing token-holders and multisig signers personally), the people with real exposure are the named humans: core contributors, multisig signers, and the Wyoming / Marshall Islands LLC wrapping the DAO. For them, provable process and provable absence are defensible assets.

Witness-DAO is built for the wrapper, the signers, and their counsel — not for the anonymous token-holder.


The three disciplines this codebase enforces

These are not style preferences. They are the reason the output is worth anything.

1. Binding confidence is never laundered

A sealed record is only as truthful as the claim fed into it. Sealing an unverified assertion produces a beautifully tamper-evident lie. So every event states, in machine-readable form, how strongly it is tied to observable reality:

Confidence Meaning
onchain_confirmed In a confirmed block — tx hash + block number + chain id
signed_offchain Backed by a verified off-chain signature (Snapshot EIP-712), not settled on-chain
api_asserted Read from a centralised API we cannot cryptographically check
unbound Operator assertion, no corroboration

assertBindingIntegrity() structurally enforces that a claimed level actually has the identifiers it requires. No layer may upgrade a confidence level.

Concretely: Snapshot's tally is computed by their centralised server, so it is recorded as api_asserted — upgraded to signed_offchain only if we independently recompute it from the complete enumerated vote set. Divergence from the API's own numbers is recorded, never hidden.

2. "Verified" is not "asserted"

Anchoring reports verified only when something was cryptographically checked against pinned, independent material. Where we can confirm a proof asserts inclusion in Bitcoin block N but cannot confirm block N itself without a header source, the verdict is asserted_unverified — and the offline verifier will not reach ANCHORED_VALID on it. We do not upgrade ourselves on trust.

3. Evidence, not a certificate

Attestation is a human act. Reports carry a non-weakenable disclaimer. Records on the free, unanchored Sealed tier are blocked from reports by default (assertCompliancePosture) because that tier is terminal — it never becomes anchored, and presenting it as compliance-grade would be a material misrepresentation.


Architecture

ingest ──▶ bind ──▶ seal ──▶ anchor ──▶ verify ──▶ report
   │         │        │         │          │          │
Snapshot  binding  VDA       Bitcoin/   offline   governance
Safe      confid-  Witness   OTS +      (zero     evidence +
Governor  ence     (+rule)   Rekor +    VDA        liability
                             RFC-3161   calls)     defence

Two layers people constantly conflate — kept deliberately separate:

  • Binding (read) — the DAO's own chains, where governance actually happens. Not a choice; dictated by where each DAO lives. Ethereum L1 + Optimism/Arbitrum/Base + Snapshot + Safe.

  • Anchoring (write) — where we commit a Merkle root to prove tamper-evidence. This is a choice: Bitcoin for permanence and neutrality, Rekor + RFC-3161 timestamps from commercial TSAs for fast coverage of the window before Bitcoin confirms. Run in parallel, under a quorum policy — never instead of one another.

    On eIDAS, precisely. The default TSAs (DigiCert, Sectigo) are publicly-trusted commercial timestamping services under CA/Browser Forum requirements. They are not qualified trust service providers on any EU Member State Trusted List for timestamping. The difference is not cosmetic: eIDAS Art. 41(2) grants a presumption of accuracy of the date and time, and of integrity of the data, only to a qualified electronic time stamp. A non-qualified timestamp gets Art. 41(1) — it may not be denied legal effect or admissibility solely because it is electronic or non-qualified. Admissible: yes. Presumptively accurate: no; the party relying on it carries the evidential burden. Certificate-chain validation is not_checked by default (see LIMITATIONS.md §1). If you need the Art. 41(2) presumption, supply a QTSA endpoint and a chainValidator.

Cost follows cadence, not volume

Anchoring commits a Merkle root, not each record. One transaction covers an unbounded number of records, so on-chain cost tracks anchoring cadence (~730 tx/month hourly), not seal volume. Sealing 5,000 or 50,000,000 decisions costs the same on-chain. A private/permissioned chain is deliberately not supported as an anchor: something the vendor controls cannot back "provable even against the vendor."


Install

pnpm install --ignore-scripts
pnpm build
node dist/cli/index.js --version

Requires Node >= 22.6.0. Zero runtime dependencies — all crypto is node:crypto, all HTTP is fetch, RFC 8785 canonicalisation / Merkle trees / OTS binary format / DER encoding are implemented in-tree and unit-tested.

dist/ is the production entrypoint

Run node dist/cli/index.js (and node dist/mcp/server.js), or the published witness-dao bin, which points at the same file. The pnpm cli / pnpm mcp scripts run from source through --experimental-strip-types, an unstable Node flag whose semantics change between minor releases; they exist for the development loop and are not supported for anything you intend to rely on. engines.node is >=22.6.0 because that is the first release where those scripts work at all — an earlier declared floor could not run its own test suite.

A Dockerfile (multi-stage, pinned Node, non-root, dist/ only) and a GitHub Actions workflow ship in the repository. Operational procedures — scheduling, alerting, backup scope, incident response — are in RUNBOOK.md.

Configure

Secrets come from the environment only. A credential found in a config file is a hard error (CONFIG_SECRET_IN_FILE) — a key in a file is a key in git.

export WITNESS_API_KEY="wtn.<id>.<secret>"     # required to seal
export WITNESS_DAO_RULES_DIR="./governance-rules"
export WITNESS_DAO_RPC="1=https://…,10=https://…"   # optional, for Governor
export WITNESS_DAO_STATE_DIR=/var/lib/witness-dao   # durable state
export WITNESS_DAO_LOG_LEVEL=info                   # structured JSON on stderr

State is namespaced per account and per DAO under the state directory, so two DAOs never share a journal file.

Key lifecycle

Witness API keys are short-lived by design. Bind an Ed25519 controller key once, while the current key still works, and renew on a cadence — otherwise the key expires, every seal fails, and the failures sit in the journal until somebody notices.

openssl genpkey -algorithm ed25519 -out controller.pem && chmod 600 controller.pem
export WITNESS_DAO_CONTROLLER_KEY_FILE=$PWD/controller.pem

witness-dao keys bind-controller     # once
witness-dao keys renew               # on a cadence; also run before expiry

The renewal protocol is POST /api/witness/renew/challenge → sign vda.witness.renew/1|<accountId>|<nonce> → POST /api/witness/renew. Only the public JWK and a signature ever leave the machine. A key file readable by anyone but its owner is refused, not warned about. For production, implement the ControllerSigner interface against your KMS or HSM rather than using a file — it is two methods, and the library never sees private key material.

Use — CLI

# Check the wiring without sealing anything or spending quota
witness-dao selftest

# What happened, and how well is it bound to reality?
witness-dao ingest --dao ens.eth --since 2026-01-01T00:00:00Z

# Full run: ingest → seal → anchor
witness-dao seal --dao ens.eth --since 2026-01-01T00:00:00Z
witness-dao seal --dao ens.eth --dry-run       # build requests, send nothing

# Replay seals that previously failed. NOT automatic — schedule it.
witness-dao seal --dao ens.eth --retry

# Independent verification — no network, no trust in the vendor
witness-dao verify --bundle ./proof-bundle.json

# The artefacts that matter
witness-dao report governance --dao ens.eth --format md --out evidence.md
witness-dao report liability --dao ens.eth --subject 0xabc… \
  --purpose "Defence of signer in matter 2026-114" --format md --out defence.md

# Promote pending Bitcoin anchors once they confirm (run on a schedule)
witness-dao anchor status
witness-dao anchor upgrade

# Data protection: erase a record body, and enforce the retention policy
witness-dao erase --record rec_01H... --reason "Art.17 request REQ-2026-0142" --confirm
witness-dao erase --list
witness-dao purge --max-age-days 730 --dry-run
witness-dao purge --max-age-days 730 --confirm

# Key lifecycle: bind once, renew on a cadence
witness-dao keys bind-controller
witness-dao keys renew
Four scheduled jobs, not one

Sealing is fail-open: an evidence-layer outage must not take down a governance pipeline, so a failed seal is stored complete in the journal instead of throwing. That is only safe because something drains the journal — and that something is seal --retry, which you must schedule. If you run only the window job, then once --since advances past a failed window those governance actions are absent from the trail permanently.

Job Cadence Skip it and…
seal --dao <id> --since … hourly/nightly nothing is recorded
seal --dao <id> --retry every 15–30 min failed seals are never replayed
anchor upgrade hourly records stay SIGNED_PENDING forever
keys renew every 6 hours renewed keys last 24 hours; miss renewals for a day and sealing stops

systemd timers and Kubernetes CronJobs for all four are in RUNBOOK.md, along with the metrics worth alerting on.

Observability

WITNESS_DAO_LOG_LEVEL=info emits structured JSON logs on stderr (never stdout, which carries the result). WITNESS_DAO_METRICS=1 emits one JSON metric object per line, with a pluggable sink for Prometheus or OpenTelemetry — no dependency added. Instrumented: seal success/failure, journal backlog depth and age-of-oldest, anchor pending age, quorum-met rate, per-provider error rate and latency, remaining Witness quota, account tier, and key time-to-expiry. Every tolerated problem carries a machine-classifiable code alongside its prose in --json output.

Exit codes are meaningful (designed for CI):

Code Meaning
0 Success
1 Failure, or a refusal to emit misleading evidence
2 Usage / configuration error
3 Verification returned BROKEN — possible tampering
4 Incomplete run, or INSUFFICIENT_PROOF — a gap in the trail

3 and 4 are split on purpose, mirroring the library's tampering-vs-missing-data distinction.

Use — library

import {
  WitnessClient, WitnessDaoPipeline, SnapshotProvider, SafeProvider,
  GitRulesResolver, DirectoryRuleResolver,
  MultiAnchorer, createOtsTarget, createRfc3161Target,
} from 'witness-dao';

const pipeline = new WitnessDaoPipeline({
  client: new WitnessClient({ apiKey: process.env.WITNESS_API_KEY }),
  ruleResolver: new DirectoryRuleResolver(
    new GitRulesResolver({ rulesDir: './governance-rules' }),
  ),
  providers: [
    new SnapshotProvider({ recomputeTally: true }),
    new SafeProvider({ chainId: 1 }),
  ],
  anchorer: new MultiAnchorer({ targets: [createOtsTarget(), createRfc3161Target()] }),
});

const run = await pipeline.run({ daoId: 'ens.eth', since: '2026-01-01T00:00:00Z' });
if (!run.complete) console.warn(run.problems);   // never ignore this

Use — MCP (for the DAO's own agents)

node dist/mcp/server.js     # JSON-RPC 2.0 over stdio

Read-only tools, always available: ingest_governance_events, verify_record, governance_evidence_report, anchor_status.

Mutating and bulk-export tools are disabled by default: seal_governance_events (writes durable records, spends the Witness allowance and the anchoring budget) and liability_defence_report (returns a named individual's entire participation history into the agent's context, and therefore into the transcript). Enable them deliberately, per deployment:

WITNESS_DAO_MCP_ALLOW_WRITES=1 node dist/mcp/server.js

The reason is specific rather than generic caution. MCP over stdio is unauthenticated by design, and this product's own premise is that a compliance copilot reads governance proposals — attacker-authored text that reaches the agent's context through ingest_governance_events. That is a live prompt-injection path into a money-spending tool. With writes enabled, seal_governance_events still defaults to dryRun: true and requires an explicit confirm: "<daoId>" echo, and third-party text in tool output is delimited as untrusted data.

Every result returns binding confidence, the closed verification verdict, and caveats — never a bare ok.


Governance rules ("git holds the rules")

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 witness-dao

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

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

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

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?

Frame 2085668439 (1)
Group 1261154229