← Back to section · Research Resources
Security Estimation Tools: Costing Attacks with the Lattice Estimator and Its Peers
Whether a post-quantum parameter set is safe ultimately comes down to attack-cost numbers. Using the open-source Lattice Estimator as the representative case, this article maps the inputs, outputs and reading rules of security estimation tools: what they compute is modelled attack cost, and numbers under different assumption sets are not comparable.
Why parameter evaluation cannot do without estimation tools
The security of post-quantum algorithms cannot be read off a key length the way symmetric cryptography can. The strength of lattice, code-based or isogeny problems depends on a coupled set of parameters — dimension, modulus, noise distribution, error weight and more. Change one parameter set within the same family and the attack cost can move by orders of magnitude. Costing every candidate set by hand is slow and prone to missing a newer attack, so the community has built dedicated tools: given a problem instance and its parameters, they systematically apply the known attacks and report the cost of each, letting researchers compare parameter sets and set safety margins. Navigating this class of tools means being clear about what they compute — and what they do not.
The representative tool: Lattice Estimator and its peers
The best-known lattice tool is the open-source Lattice Estimator, maintained by the lattice cryptography research community and offering a Python interface. It takes descriptions of LWE, SIS and NTRU instances as input, embeds the main attack routes — primal, dual decoding and hybrid attacks — together with their cost models, and outputs the estimated cost of each route under classical and quantum settings. Half of its value lies in the numbers; the other half lies in enumerating the full attack list. The most common beginner’s mistake is to cost only the one attack that comes to mind; a tool that works through a uniform checklist makes omissions far less likely.
Other directions have their equivalents. Code-based cryptography has an estimation tradition built around information-set decoding (ISD) complexity formulas and scripts; isogeny and multivariate estimation mostly exists as paper formulas accompanied by public scripts; hash-based signature parameters are comparatively direct to cost, revolving around generic collision and preimage search. The shapes differ but the logic is the same: the input is a problem plus parameters, the engine is an attack catalogue plus cost models, and the output is a per-attack cost table.
Reading inputs and outputs
Start with what the input must state: the problem type and dimension, the modulus size, distributional assumptions about secrets and noise, and the attacker model — whether quantum speedups are counted, and how memory cost is converted. These are not optional decoration; they are part of the result. For the same parameter set, switching the noise assumption from a discrete Gaussian to a sparse secret can change the estimate wholesale.
The output typically gives the cost of each attack, usually on a logarithmic scale of “equivalent bits of operations”, together with the parameter choices of the optimal attack route. Three reading rules apply. First, look at which attack is cheapest: the conclusion is set by the weakest link. Second, look at sensitivity: if a one-step change in some parameter makes the cost jump or crawl, that tells you how solid the safety margin is. Third, keep memory and time separate: some attacks trade astronomical memory for time, and costing them without a memory constraint overstates or understates the real threat.
From tool to conclusion: a working procedure
Bringing an estimation tool into a research workflow usually follows a fixed order. Step one is reproducing a baseline: cost a parameter set that the literature has already discussed thoroughly, and confirm that your inputs and cost-model settings match the published treatment — only then are your later numbers comparable. Step two is a sensitivity sweep: vary the parameters of interest one at a time, watch how the optimal attack route and its cost shift, and find where the safety margin is thinnest. Step three is cross-checking: where a paper gives an independent estimate for the same parameters, align the attack sets and modelling assumptions item by item; discrepancies usually hide in a single assumption. Step four is archiving: save the input files, the tool version and the full output together, so the computation can be re-run verbatim later. Skipping step one and costing new parameters directly is the most common novice error — mistype one dimension and the tool will still return a wrong answer precise to decimal places, with no visible flaw.
Scope: an estimate is not a proof
It must be stressed that these tools output costings “under current attack knowledge and cost models”, and both ends carry uncertainty. On the attack side, new cryptanalysis can void yesterday’s estimate today — the parameters of several candidate algorithms have historically had to be revised after new attacks, and tool maintainers update their models accordingly. On the model side, the cost model itself contains simplifications: converting quantum circuit depth into operation counts, or pricing memory access uniformly. These conventions make numbers comparable, and also make them partly conventional. The responsible way to cite a result is therefore to name the tool version, the cost model and the date of computation — not to quote a bare bit count.
Common misuses
The first misuse is treating an estimate as an exact constant: arguing that “estimated 143 bits” is safer than “estimated 141 bits”, when estimation error dwarfs such gaps and same-magnitude parameter sets should be regarded as equivalent. The second is comparing across assumptions: one paper uses a lenient quantum cost model, another a conservative one, and ranking their numbers in a single table yields meaningless conclusions. The third is running only the defaults: a tool’s default attack set and cost model may not cover the target scenario — evaluating an embedded deployment while ignoring memory limits misses the attack line that actually matters. The fourth is using tool output directly as a compliance basis: standards bodies define security categories against anchors such as AES, and estimation tools are an auxiliary costing device, not a substitute for how the standard text defines the categories.
Closing
Security estimation tools are the bridge that turns cryptanalytic consensus into reproducible numbers. Using them well means: state the inputs completely, read the outputs together with their assumptions, cite version and model, and leave margin in the conclusions. If you next want to work through a costing for a concrete parameter set, first go back to the cryptanalysis and estimation paper line in this section’s paper index and read the attack literature behind the tool — the tool computes quickly, but the ability to judge whether its numbers deserve trust can only come from understanding the attacks themselves.
Tags: security estimationlattice estimatorattack costparameter evaluation