[security][design] Anti-Sybil / fingerprint-forgery: registration + hardware root of trust (NOT a blind patch)

Aperta
#6,750 1 commento 4 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 10 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
8/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Start with validate_fingerprint_data, anti_double_mining.compute_machine_identity_hash and _detect_exotic_arch, plus the anti-emulation has_evidence check, to see how the fingerprint gate is built. The issue is a design discussion, not a patch: it needs a maintainer decision on registration, the Ed25519 signing scheme and a coordinated client+server rollout before any code. Done would be an agreed design doc and migration plan, not a merged fix.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

help wanted security triaged

From the quad-brain red-team. The anti-VM fingerprint gate has Critical/High forgery + Sybil findings, but naive server-side hardenings break the legitimate fleet and must NOT be shipped blindly.

Findings

  • [Critical] validate_fingerprint_data: vintage/exotic multiplier is gated by self-reported software-timing checks with no hardware root of trust — fully forgeable.
  • [High] anti_double_mining.compute_machine_identity_hash: identity = hash of client floats rounded to 6 dp (clock_cv, thermal_var, …). Sub-percent micro-perturbation → new identity → evades dedup (Sybil/farm).
  • [High] _detect_exotic_arch trusts claimed machine/cpu_brand with no corroboration (modern-ARM-as-x86 / exotic spoof).
  • [High] anti-emulation has_evidence is satisfied by an empty vm_indicators: [] — but honest hardware also sends empty (real HW has no VM markers), so it can't simply be rejected.
  • [Low] Ed25519 attestation signature does not cover the device/fingerprint fields (claims are forgeable per-key).

Why naive fixes are UNSAFE (would penalize the real fleet)

  1. Coarsen fingerprint buckets → identical-model fleet (multiple G4 PowerBooks, multiple G5s) collapses to one identity → only one rewarded.
  2. Per-IP / per-subnet cap → the whole local fleet sits behind one home NAT/public IP → caps legitimate machines.
  3. Require positive anti-emulation evidence → honest hardware sends empty vm_indicators → rejecting empty rejects honest miners (needs a coordinated client+server change).

Safe design direction (needs Scott's input + a migration plan)

  1. Per-machine registration / allowlist: owner pre-registers known machine-identity hashes (+ public IP allowance); registered machines are exempt from caps. Unknown near-duplicate clusters get rate-limited, not auto-penalized.
  2. Bind Ed25519 over sha256(canonical(device))|sha256(canonical(fingerprint)) (client+server lockstep, versioned scheme) so claims are non-repudiable per key.
  3. Server-issued nonce mixed INTO the timing benchmark + statistical models of expected G4/G5 distributions; reject out-of-distribution claims.
  4. Positive proof-of-scan in anti-emulation (client emits paths_checked hashes; server cross-checks) — coordinated client rollout across all 4 miner variants.
  5. Hardware-rooted attestation (TPM / secure-element / provisioned per-machine key) for the real long-term fix.
  6. Near-duplicate clustering REPORT (flag for review, do not auto-penalize) as a safe interim monitoring step.

CHAOTIC-tier; coordinated client+server rollout; must not break the fleet-behind-NAT or identical-hardware fleet. Good multi-part bounty.

Lingua principale
Python
Stelle
850
Fork
589
Merge medio
11g 7h
PR unite (30g)
29

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Scottcjn/Rustchain

Tutte le issue di Scottcjn/Rustchain

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.