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

Open
#6,750 1 comment 4 reactions 0 assignees View on GitHub

Maintainers usually reply within 10 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
8/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Python
Stars
850
Forks
589
Avg merge
11d 7h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Scottcjn/Rustchain

All issues in Scottcjn/Rustchain

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.