threshold-ecdsa-auditor · diff
git:20260710.3786e54 to git:20261112.cb0111b
14 added, 6 removed. Audit A to A.
What this update changes in the checks
No check changed: every fixed check gives the same answer before and after this update.
A tripped check is a label, not a verdict: read the matched text and the lines below. This week's updates that newly trip a check.
---
name: threshold-ecdsa-auditor
description: >
Audit threshold ECDSA implementations (GG18, GG20, CGGMP21, Lindell-style)
for Paillier modulus validity, MtA/MtAwc range-proof gaps, share-conversion
soundness, resharing and concurrent-session isolation, and identifiable-abort
leakage. Use when reviewing multi-party ECDSA keygen, signing, or resharing.
- allowed-tools:
- - Read
- - Grep
- - Glob
- - Bash
+ allowed-tools: Read Grep Glob Bash
---
# threshold-ecdsa-auditor
Domain auditor for multi-party ECDSA: protocols that split an ECDSA key
across parties and sign via Paillier-based or OT-based share conversion
(GG18, GG20, CGGMP21, Lindell 2P-ECDSA and descendants).
## When to Use
- Auditing GG18/GG20/CGGMP21/Lindell-style keygen, signing, or resharing
- Reviewing Paillier modulus generation and validity (square-free,
no-small-factor) proofs
- Reviewing MtA/MtAwc range and consistency proofs and share conversions
- Reviewing presignature handling, concurrent signing sessions, and
identifiable-abort behavior
## When NOT to Use
- FROST, MuSig2, threshold Schnorr, or generic DKG/VSS review ->
`dkg-threshold-auditor`
- Generic OT, garbled circuits, or share-MAC (SPDZ-style) review ->
`mpc-auditor`
- Single-party ECDSA signing in an Ethereum application (ecrecover, EIP-712,
alloy/ethers-rs) -> `ethereum-crypto-auditor`
- Generic single-party signature scheme review (verification equations,
malleability, encodings) -> `signature-scheme-auditor`
- Nonce/CSPRNG generation mechanics -> `randomness-auditor`
- Timing/cache leakage of share arithmetic -> `side-channel-auditor`
+ ## Rationalizations to Reject
+
+ | Rationalization | Why it is wrong |
+ |---|---|
+ | "The range proofs only matter against malicious parties, and our operators are trusted" | The protocol's security claim is against a malicious party. A missing or unverified MtA range proof lets one participant extract the others' key shares (the Alpha-Rays class) |
+ | "The Paillier key comes from the library" | The other party's Paillier modulus is attacker-chosen. Without proofs that it is well formed, a crafted modulus leaks shares |
+ | "An abort just restarts signing" | Aborts leak. Check what is revealed on abort, whether presignatures are discarded, and whether a party can abort selectively to learn bits |
+ | "Presignatures are an optimization" | A presignature used twice leaks the key, and presignatures combined with additive key derivation admit a faster-than-generic (cube-root) attack on ECDSA. They need single-use tracking that survives restarts |
+ | "Session identifiers are for logging" | Proofs and messages not bound to session and party identifiers replay across sessions and parties |
+ | "We implement the protocol as published" | GG18 and GG20 as published were followed by attacks and fixes. Establish which paper version and which later fixes the code implements |
+
## Core Review Areas
1. Paillier modulus N: generation, biprimality/square-free proof, and
no-small-factor proof actually verified by every counterparty
2. MtA/MtAwc: range proofs present AND verified on both directions of the
conversion; missing range proofs enable the classic key-extraction
attacks (Alpha-Rays class)
3. Share conversion algebra: additive/multiplicative conversion consistency,
Lagrange coefficient handling, and modulus mixing (mod N vs mod q)
4. Key generation: commitment-then-reveal ordering, feldman VSS checks,
rogue-key resistance
5. Signing sessions: presignature single-use, concurrent-session state
isolation, nonce contribution binding (k-share vs gamma-share)
6. Resharing: old-committee/new-committee authorization and share zeroization
- 7. Identifiable abort: blame paths must not leak share or nonce information
+ 7. Identifiable abort: blame paths must not leak key-share information, or
+ nonce material of a session that is still used to sign
(GG20 identifiable abort vs CGGMP21 accountability)
## Workflow
### Phase 1: Protocol and version mapping
- Read `references/threshold-ecdsa-checklist.md`
- Identify the exact construction and paper version (GG18 vs GG20 vs
CGGMP21 revision) — checks differ per construction
- Map rounds to code: keygen, presign/sign, reshare entry points
### Phase 2: Paillier and MtA review
- Execute `workflows/mta-review.md`
- Verify modulus validity proofs and both MtA directions' range proofs
### Phase 3: Pattern hunt
- Read `references/finding-patterns.md`
- Prioritize missing range-proof verification, presignature reuse,
concurrent-session nonce leakage, and abort-path oracles
### Phase 4: Handoff
- Send surviving findings to `crypto-fp-check`
- Cross-route generic MPC building blocks to `mpc-auditor`, RNG concerns to
`randomness-auditor`, and leakage concerns to `side-channel-auditor`
## Output Contract
Produce a threshold-ECDSA handoff that includes:
- `protocol_round`
- `proof_or_range_check`
- `invariant_at_risk`
- `evidence`
- `disposition` (one of `verified`, `false_positive`, `unverified`,
`observation`, `residual_risk`)
- `next_route`
## Reference Index
- [references/threshold-ecdsa-checklist.md](references/threshold-ecdsa-checklist.md)
- [references/finding-patterns.md](references/finding-patterns.md)
- [references/spec-sources.md](references/spec-sources.md)
- [workflows/mta-review.md](workflows/mta-review.md)