Skip to content

feat(hosting): cloud node refuses DIP-0036 labelled pushes - #439

Merged
ralyodio merged 1 commit into
masterfrom
feat/cloud-node-moderation
Nov 22, 2026
Merged

ralyodio merged 1 commit into
masterfrom
feat/cloud-node-moderation

Conversation

@ralyodio

Copy link
Copy Markdown
Collaborator

First enforcement step of DIP-0036 (#437). The free cloud node is ours, so c0mpute.com applies an L1 policy to it: pushes go to the ThreatCrush labeler (profullstack/threatcrush#485) before they're queued. Any file labelled malware, phishing or cryptominer makes the push fail with 451, the reason and the appeal address.

Trust checks

  • The labeler's key is pinned in code. An env var can replace it, but it's never fetched from the network.
  • Every label must verify against that key, come from the pinned DID, be positive and unexpired.
  • Every label must name the SHA-256 of a file we actually sent, so a label for another site's file can't be replayed onto this push.

Fails open: if the labeler is down, slow or returns junk, the push goes through and a warning is logged.

Scope: only the cloud node. People's own nodes are their operator's call.

Switches: inert until C0MPUTE_LABELER_TOKEN is set. C0MPUTE_MODERATION=off turns it off.

DIP-0036: now documents the v1 signature framing and the replay rule.

Tests: 10 new.

  • Signatures checked against the RFC 8032 test vector.
  • Labels that must be ignored: replayed, wrong DID, retracted, expired, value not refused, foreign key, lifted signature, wrong type.
  • Fail-open on 5xx, 401, network error, non-JSON and timeout.
  • Store: a refused push is 451 and writes no row; updates are checked too; own nodes are not checked.
  • The existing push suite still passes.

Full web suite: 220 passed. The one failure is in music.test.ts, which I didn't touch: it compares against a wall-clock string. tsc is clean.

🤖 Generated with Claude Code

…sh labeler)

c0mpute.com operates the free cloud node, so under DIP-0036 L1 it picks a
labeler. Pushes to the cloud node now go to ThreatCrush's /api/v1/labels/scan
before they are queued; a file carrying a malware/phishing/cryptominer label
is refused with 451, the reason and the appeal address.

- labeler key pinned (C0MPUTE_LABELER_PUBLIC_KEY may replace it, never learn it)
- labels must verify, come from the pinned DID, be positive and unexpired, and
  name the sha256 of a file we sent (no replay of another site's label)
- fails open: labeler down/slow/junk never blocks a push (logged)
- people's own nodes are their operator's call: not checked
- off until C0MPUTE_LABELER_TOKEN is set; C0MPUTE_MODERATION=off kills it
- DIP-0036: write down the v1 signature framing and the replay rule

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ralyodio
ralyodio merged commit d92c1c6 into master Nov 22, 2026
@ralyodio
ralyodio deleted the feat/cloud-node-moderation branch November 22, 2026 14:35
@github-actions

Copy link
Copy Markdown

ThreatCrush Security Scan

19 finding(s)

HIGH/CRITICAL: 2 | MEDIUM: 13 | LOW: 4

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/public/sw.js:24
HIGH sh-remote-script-execution scripts/install.sh:611
MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2.yml:50
MEDIUM js-unescaped-html-sink apps/web/src/app/blog/[slug]/page.tsx:53
MEDIUM js-unescaped-html-sink apps/web/src/app/layout.tsx:111
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:116
MEDIUM sql-template-interpolation apps/web/src/lib/chat/convo-store.ts:117
MEDIUM sql-template-interpolation apps/web/src/lib/chat/push.ts:489
MEDIUM sql-template-interpolation apps/web/src/lib/disk/apps.ts:194
MEDIUM sql-template-interpolation apps/web/src/lib/disk/store.ts:237
MEDIUM sql-template-interpolation apps/web/src/lib/earnings/store.ts:252
MEDIUM js-dynamic-code-execution apps/web/src/lib/router/verify.ts:91
MEDIUM sh-remote-script-execution scripts/dev-setup.sh:25
MEDIUM sh-eval-expansion scripts/dev-setup.sh:35
MEDIUM redos-nested-quantifier scripts/dev2-dns-recovery.py:31
LOW py-ssrf-outbound-request examples/business-strategist-agent/chat.py:37
LOW py-ssrf-outbound-request examples/business-strategist-agent/train.py:54
LOW secret-generic-credential node/crates/c0mpute-core/src/webhook.rs:1171
LOW py-path-traversal node/crates/c0mpute-core/tests/fixtures/fake-infernet-text:29

Snippets are redacted; ThreatCrush never prints matched credential material.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant