DL·SYS
Contact ↗

CSCTF 2026 · Crypto · 130 pts

The Signet.

Six signatures, a nonce sequence that increases by a fixed step every time — one linear equation is all it takes.

ECDSARelated nonces
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryCrypto
Points130
StatusSolved during the event
Targetsix signatures, offline

TL;DR. Six secp256k1 ECDSA signatures were generated with nonces forming a simple arithmetic progression (`k_i = k0 + i*stride`), a weaker variant of the pure nonce-reuse attacks elsewhere in this set. Taking the second difference of the implied nonce sequence cancels both unknowns except the private key, giving a single linear equation that solves it directly.

Challenge

Recover a code-signing private key from six ECDSA signatures whose nonces follow a hidden linear relationship, and decrypt a sealed standing order with it.

Solution

Rather than an exact nonce repeat, these six secp256k1 signatures were generated with nonces related linearly: k_i = k0 + i*stride for a fixed, unknown stride. Writing out each signature's defining equation in terms of its own k_i, and taking the second difference across three consecutive signatures (k2 - 2*k1 + k0), cancels out both the arithmetic-progression terms, leaving a single linear equation in the one remaining unknown: the private key d.

Solving that equation recovers d directly. As a self-check, that value of d is verified against all six signatures' EC math, not just the three used to derive it — confirming it's correct with no ambiguity.

With d recovered, the seal's key derivation is IKM = I2OSP(d, 32), run through HKDF-SHA256 with a fixed info string, giving an AES-256-GCM key. Decrypting the sealed order with that key succeeds — and AES-GCM's own authentication tag validating is the final confirmation that d is certainly correct.

Flag

FlagCSCTF{canal_signet_recovered_2f17026a4a9c032f4ba186ab}

What I took from it