VeilSwap
← All posts
Privacy tech2026-11-309 min read

Monero's Decoy Selection: The Statistics Behind Privacy

Monero's privacy is a sampling distribution, not a slogan: two constants (gamma 19.28, 1/1.61) fixed the 80% 'newest input' attack - and every documented tracing win since lives on old transactions or wallet bugs, not the algorithm.

On 30 November Monero traded near $385, down about 9% in 24 hours, on its first full trading day after KuCoin — until last week the largest visible Monero order book on our panel — stopped its XMR pairs. The conversation that follows every delist is the same one: 'can Monero be traced?' It deserves a better answer than either camp gives. The honest answer is not a slogan about privacy or a press release about tracing; it lives in a sampling function most users never open, one that decides what every Monero transaction looks like to the outside world. This piece is about that function: where it came from, what it fixed, where the real leaks turned out to be, and what it can and cannot protect you from. And because we route Monero every day, we will say plainly what a swap service can see — and the list is shorter than you think.

A ring hides exactly one thing: which input is real

A Monero spend names a set of inputs — one real, the rest decoys — and signs for all of them with a ring signature, so a reader of the chain cannot tell which one the spender actually controls. Amounts are hidden behind commitments; the destination is a one-time stealth key. What remains for an outside analyst is not a balance or an identity; it is a multiple-choice question: of these inputs, which is the real one? Every claim about Monero tracing — from conference talks to leaked demo videos — is a claim about answering that question statistically. That is why the decoys matter more than anything else in the design: if decoys are drawn the way real spends behave, the question is unanswerable; if they are drawn wrong, the signature is a confession with extra steps.

Two heuristics broke the first Monero

In April 2017, Möser, Miller and colleagues published an empirical analysis that quantified exactly that failure for the Monero of the era (arXiv 1704.04299). Two findings. First, about 62% of transaction inputs with one or more mixins were vulnerable to 'chain-reaction' analysis — the real input deduced by elimination, because some rings contained members that were already spent elsewhere on-chain. Second, decoys were sampled in a way that made them distinguishable from real coins by their age distribution: the real input was usually the newest one, a guess that landed with roughly 80% accuracy. Neither is a break of cryptography. Both are sampling defects. The authors proposed countermeasures — and the interesting part of Monero's history is that the countermeasures were adopted, essentially verbatim, into the protocol.

The fix is two constants

Open the Monero codebase today and the fix is not a wall of theory; it is two numbers. In src/wallet/wallet2.cpp, the decoy picker is built from GAMMA_SHAPE 19.28 and GAMMA_SCALE (1/1.61) — a gamma distribution fitted to the empirical spend-age profile of the chain — and the source comment credits the very paper above for the parameters. The wallet samples a candidate age from that distribution, walks back the chain that many seconds, and picks a decoy output from the corresponding block, with corrections for Monero's ten-block unlock window (CRYPTONOTE_DEFAULT_TX_SPENDABLE_AGE is 10 in cryptonote_config.h), because the distribution was fitted before that consensus rule existed. The point is not that gamma is sacred. The point is the shape of the fix: privacy was restored by making decoys statistically indistinguishable from real spends, not by hiding data harder. Monero's privacy is a claim about a distribution — and distributions can be measured, fitted and broken, which is exactly what happened on both sides of this story.

The trackers went where the statistics broke — along the timeline

Skip ahead to the modern record. A 2024 paper (arXiv 2408.05332) inventoried the traceability heuristics that still worked between 2019 and 2023, after the protocol upgrades had retired the classic ones. What remained was almost entirely application-level: two wallet bugs discussed in the Monero community — 'Differ By One' and the '10 Block Decoy Bug' — the coinbase-transaction decoy signature, and pattern effects from P2Pool and Mordinals. The paper's own conclusion: the 10-block decoy bug and the coinbase decoy identification carried the most impact in that window. Read the public record on 'Monero tracing breakthroughs' with that list in hand and a pattern emerges: the IRS bounty of $1.25 million offered in 2020 (per reporting at the time), the leaked Chainalysis demo video reported in September 2024 — every concrete, named capability lands on an era of transactions or an application defect, not on the sampling algorithm as it ships today. That is a weaker result than 'Monero is broken' and a stronger one than 'Monero is safe': the math survived a decade of funded attempts, and the leaks lived in code that ships updates. Disclosures we owe the reader: the IRS figure and the Chainalysis video are cited at headline level from coverage we could not read in full first-hand; the two academic papers we did read directly via their abstracts.

From the aggregator seat, the statistical layer is invisible

Here is our position, stated as plainly as we can: a no-KYC swap service is structurally blind to this entire layer. What an order shows us is two strings — a payout address and a refund address — plus an asset pair, an amount and timestamps. We never see a ring, a key image or a decoy list, and no upstream liquidity pool hands us one either. We have written before about what our logs hold and where their boundary sits; the custody window between deposit and payout has a median of about five minutes across our completed order sample, and that brevity is the one privacy-relevant fact we control. When a service claims it 'adds privacy' to a Monero transaction, it claims authority over the one component of the design it cannot touch. And when an analyst claims a service 'weakens' Monero privacy, the honest version is narrower: the leg you came from and the payout address you choose are the traceable surfaces — not the ring. (recovering misdirected funds)

What actually breaks the model, and what you control

So what is a user's leverage? Three things, all application-side. First, updates: the two named bugs above were wallet bugs, and the remedy was never a ritual — it was running current software; the Monero release line today is v0.18.5.4, published 17 October 2026. Second, consolidation: spending several of your own outputs inside one transaction is provable today — an observer can see that whoever signed that transaction controls both real inputs — so let the wallet sweep rather than hand-merging old outputs, and keep change habits boring. Third, patterns: the Mordinals and P2Pool findings are not breaks of the signature; they are the old truth that unusual usage is its own metadata. None of these require trusting anyone — including us.

What our rails printed this afternoon

Numbers from our own quotes, taken 16:16–16:19 UTC on 30 November against Kraken's XMR/USD midpoint of 384.24 (CoinGecko spot 385.31, −9.12% on the day): 100 USDT-TRC20 priced at an implied 428.77 per XMR (+11.59%), 1,000 at 396.84 (+3.28%), 5,000 at 393.56 (+2.43%). On the exit leg, 1 XMR returned 370.49 USDT (−3.58%) and 5 XMR averaged 376.08 per coin (−2.12%), while 0.05 BTC converted at 150.09 XMR per BTC against a spot cross of 153.06 (−1.94%). All six quotes carried a single route and no second-pool advantage — the seventh consecutive trading day of that shape — inside the widest entry-premium band we logged this week, on a day when spot fell roughly 9%. We report the band as observed: on fast-fall days our entry premiums historically widen, a fingerprint we have documented before, and we note the missing second pool without a confirmed cause — inventory, volatility protection or post-delist positioning are all possible, and we record observations, not motives. (XMR to USDT exit)

The takeaway, stated once

Monero's privacy is a statistical bet the protocol makes on every transaction: decoys drawn from the same distribution as real spends. That bet survived the first and most famous empirical attack — the same paper that quantified the failure supplied the constants now sitting in the code — and the funded era that followed kept finding success only in old transactions and application bugs. The parts you control are the parts that leaked: the software version you run, the way you combine your outputs, the patterns you generate. If you are reading this because a swap service promised to make your Monero 'more private', note that the sampler we just described runs inside your wallet, not ours. It is also transitional technology: the FCMP++ line, whose audit pipeline we have followed, is designed to retire decoy selection entirely in favor of membership proofs, and it has not reached mainnet as of our latest check. Until then, the gamma distribution with shape 19.28 is the quiet mechanism doing the work — and its work is invisible to every intermediary in the world, including the one you are reading. Nothing here is legal or investment advice; prices and quotes are snapshots from writing time.

Frequently asked questions

Is Monero traceable in 2026?

The protocol-level sampling attacks documented in 2017 were addressed by the gamma-based decoy selection now in the code; the documented successes since target specific eras of transactions or application defects — wallet bugs, coinbase patterns — not the current algorithm. A tracing claim worth taking seriously comes with a date and a bug name attached.

What is the gamma distribution in Monero's decoy selection?

A probability distribution fitted to how old outputs actually are when they are spent. Your wallet samples a decoy age from it — shape 19.28, scale 1/1.61 in the source code — then selects decoy outputs of roughly that age, so the decoys mimic the real spend-age statistics of the chain.

Do old Monero transactions stay private forever?

No. Privacy is retroactive-fragile: a transaction's decoys are frozen on-chain, and if a later analysis finds a flaw that applied to its era, that transaction can be re-analyzed indefinitely, with no upgrade possible. That is the strongest argument for treating no privacy technology as permanent.

Should I pick my own decoys or use bigger rings?

No. Decoy selection is deterministic in the wallet, and hand-picking breaks the statistical model that protects you — a decoy you chose by hand is more likely to be distinguishable, not less. Keep the wallet updated and let it sample.

Does using a no-KYC swap service affect Monero's privacy?

Not at the ring layer: we never see key images, decoys or the interior of a Monero transaction. What we hold is two addresses, a pair and timestamps, and upstream screening of destination addresses still applies. What affects your privacy is the wallet you run, the addresses you reuse and the patterns you generate.

Keep reading

All articles →

Ready to swap?

No account · No KYC · No email

Exchange now
Monero's Decoy Selection: The Statistics Behind Privacy