[security][design] Anti-Sybil / fingerprint-forgery: registration + hardware root of trust (NOT a blind patch)
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
- Domain
- authentication, blockchain, security
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
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_archtrusts claimedmachine/cpu_brandwith no corroboration (modern-ARM-as-x86 / exotic spoof). - [High] anti-emulation
has_evidenceis satisfied by an emptyvm_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)
- Coarsen fingerprint buckets → identical-model fleet (multiple G4 PowerBooks, multiple G5s) collapses to one identity → only one rewarded.
- Per-IP / per-subnet cap → the whole local fleet sits behind one home NAT/public IP → caps legitimate machines.
- 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)
- 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.
- Bind Ed25519 over
sha256(canonical(device))|sha256(canonical(fingerprint))(client+server lockstep, versioned scheme) so claims are non-repudiable per key. - Server-issued nonce mixed INTO the timing benchmark + statistical models of expected G4/G5 distributions; reject out-of-distribution claims.
- Positive proof-of-scan in anti-emulation (client emits
paths_checkedhashes; server cross-checks) — coordinated client rollout across all 4 miner variants. - Hardware-rooted attestation (TPM / secure-element / provisioned per-machine key) for the real long-term fix.
- 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
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Scottcjn/Rustchain
-
utxo_ledger (reference): failed apply_transaction leaks already-created outputs (supply inflation)Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 10 days
-
SDK CLI prints 0 RTC for canonical /wallet/balance responsesPossibly taken @ArtyormSatori claimed this 37 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Scottcjn/Rustchain#8580 · 4 comments ·
Maintainers usually reply within 10 days
-
utxo_ledger (reference): no coinbase authorization; mempool admits any input-less MINING_REWARDOpen
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Maintainers usually reply within 10 days
-
[SECURITY] Non-finite and garbage weights pass the sybil-guard money chain — enrollment_weight has no isfinite guard and epoch_weight_to_units raises on NaN/infPossibly taken @thinhnx128 claimed this 28 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Scottcjn/Rustchain#8619 · 2 comments ·
Maintainers usually reply within 10 days
-
[Antiquity] Celeron M (Banias/Dothan, 2004) has no brand rule — real vintage silicon falls to x86 default 1.0x while its Pentium M twin earns 1.9xPossibly taken @Limm-web claimed this 60 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Scottcjn/Rustchain#8578 · 5 comments ·
Maintainers usually reply within 10 days
All issues in Scottcjn/Rustchain
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
daniel-ospina/tortoise#15308 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
difficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#2405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Jstar269/nakagawa-recomp#3746 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day