Preprint
Article

This version is not peer-reviewed.

How Much Does a Redaction Box Reveal? Geometry Leakage, Defence Costs and Repeated Releases Under a Matched Attacker

Submitted:

29 November 2026

Posted:

02 December 2026

You are already at the latest version

Abstract
A solid black redaction box hides text but not its size. We measure how much box geometry reveals about a hidden surname, and what each defence costs, under one threat model: a matched, noise-free attacker who knows the font file, size, renderer, text start and baseline. These figures are an upper bound. Across six fonts at 12–24 px, four-edge exact boxes leaked 4.58 to 7.70 bits by font (sampled; pooled mean 6.66 of 12.88 bits; top-10 50.2% against 5.932% with no box), and a width-only box leaked 5.28 bits. Padding to a 128 px class cut the average leak to 0.08 bits at a fixed start and 0.305 bits over anchor offsets, but averages hid exposed names: singletons leaked up to 18.72 bits. Only a field-wide box covering every entry of a bounded list leaks 0 bits for every name, by construction. Recomputed padding grew from 0.305 to 1.157 bits over five releases, whereas a stored, reused mask added nothing. On original names at frozen 95% tolerances, the leak was 0.06 to 0.42 bits. For a bounded, checked list, a field-wide box is safer than a four-edge exact box. If a document may be released again, reuse one stored mask.
Keywords: 
;  ;  ;  ;  ;  ;  

1. Introduction

Courts, governments and hospitals release documents with personal details hidden. Court rules require personal identifiers to be removed before filing [1], and the DICOM (Digital Imaging and Communications in Medicine) standard requires burned-in text to be removed from medical images [2]. Blurred or mosaicked text can be recovered [3], so practice uses a solid black box. This paper is about the harder case, in which the redaction itself is done correctly: a forensic review of one widely discussed release found boxes correctly burned into the image pixels [4]. Hidden data left in a published PDF is a different failure, and is not the setting here [5]. A solid box hides its pixels but not its geometry. The width, height and position of the box remain visible, and the width can narrow the list of words that could have been hidden.
Earlier work already established that this channel exists. Lopresti and Spitz showed that redacted word width shrinks the candidate list, and they proposed constant-size boxes as a defence [6,7]. Bland, Iyer and Levchenko showed that glyph positions in Word-generated PDFs can break redactions of first and last names, leaking up to 15.9 of 19.6 bits in that setting, and they also reported a width-only surname leak of 7.8 of 13.1 bits in 10 pt Times New Roman with no glyph shifts; they suggested rounding the width and using a fixed-pitch font [8]. Public tools now run a width attack from a finished box [9,10]. What a redactor still lacks is a measured comparison of those defences.
This paper does not invent the box-size leak. The contribution is a systematic measurement of magnitudes and costs under one threat model, with results that follow from the constructions (the field box’s 0 bits, the K-MASS cap, and the stored mask’s zero gain) reported separately from the measured ones. The value of the study is the generality of those measurements: the same policies are scored on six fonts, on average and for the worst-off name, at a stated area cost, across releases, and under weaker attackers.
The contributions are as follows:
  • A head-to-head measurement comparison of exact boxes, tile grids, start-aligned padding, two list-based class rules and a field-wide box, under one matched attacker and one area measure, on six fonts. Exact boxes leaked 4.58 to 7.70 bits by font (sampled means; pooled mean 6.66 of 12.88 bits) on 36,000 synthetic surname redactions.
  • A per-name analysis over all 50,000 surnames and every anchor offset. Averages hid exposed names; a minimum class size did not cap rare names; a mass floor capped every name but left the average close to the exact box; only a covering field box removed the leak for every name.
  • Repeated-release tests showing that recomputed padding and fresh random padding leak more with each release, while a stored, reused mask adds nothing.
  • Checks on real page layouts, born-digital PDFs and scanned forms, and against weaker attackers. They give the area and neighbouring-text cost of each policy and bound the headline figures, which describe a strong attacker.
  • A choice rule keyed to what the redactor knows (Table 8).
All headline figures are for a matched attacker on single-line text. Section 2 reviews related work and states the position of this study. Section 3 describes the setting, the box policies, the measures and the studies. Section 4 reports the results. Section 5 turns them into a guide, discusses practical implications, relates them to earlier work and states the limitations, and Section 6 concludes.

3. Materials and Methods

3.1. Setting and Attackers

The programs and archived results for this study are released as the author’s research code [30]. The study is limited to single-line text in born-digital documents and images. Surnames are the primary task, because they are a closed, uneven list that a redactor often has to hide. The list is the 50,000 most frequent all-letter surnames from the 2010 U.S. Census, weighted by their counts, with prior entropy 12.88 bits [31]. The main synthetic sweep uses six fonts (DejaVu Sans and Serif; Liberation Sans, Serif and Mono; Noto Sans) at 12, 16 and 24 px. Liberation Serif, Sans and Mono are metric-compatible with Times New Roman, Arial and Courier New, so the mix covers those common document metrics as well as DejaVu and Noto. They were rendered with Pillow 12.3.0 and the RAQM 0.10.5 text-layout library. A later check uses the first 20,000 all-letter ASCII words among the 60,000 most frequent English words of wordfreq 3.1.1 [32]. SHA-256 hashes of the six font files are in results/font_sensitivity/font_hashes.csv in release V1.
The main attacker, called a matched attacker in the rest of the paper, knows the redactor’s renderer, font file (not only the font name), size, candidate list and prior, and sees the published box. That is a strong attacker, used because it shows what the box can leak when those facts are known. Weaker attackers, who lack the font, use a uniform prior, see a different renderer, or face a font held out of their library, are reported as robustness checks, not as equally weighted models. Headline figures such as 50.2% and 6.66 bits are always for the matched attacker. That matched attacker is A1 in Table 1: it knows the renderer, the exact font file, size, list, prior, text start and baseline, and it keeps candidates whose box reproduces the published edges. Two builds of Liberation Sans that share a family name but not a file can differ on the top edge (Section 4.6). Two weaker geometry attackers are reported as checks: A2 knows the baseline but not the text start, and keeps a candidate if any start reproduces the box; A3 holds several copies of the same text, each shifted by a known offset so that a grid snaps them differently (one copy is the same as A2).

3.2. Box Policies

Figure 1 shows the three policies that a redactor can apply directly to a form field. Why each policy exists, how it is built, and what it is meant to do are as follows.
A four-edge exact box is the rectangle returned by the study renderer’s text box (Pillow getbbox at the left-baseline anchor) with 1 px added on each edge. Its top and bottom edges match the glyph ink, so they reveal ascenders and descenders; its left and right edges sit at or next to the pen origin and the advance, not the tight ink. It is not a typographic line-height box from ascent to descent. This paper does not survey which tools draw which box.
A square grid of size G snaps each edge of the requested box outward to the next multiple of G. G = 1 is the four-edge exact box; G = 8, 16, 32 and 64 px cover common tile schemes, including the tile snapping in the author’s research code [30]. That code also has an optional width-class mode (centred, applied after grid rounding), which differs from the start-aligned padding evaluated in this study. A width-only grid snaps the horizontal edges and leaves the vertical extent at the line bounds, which uses less area than a square grid of the same G.
A grid snap computed from the exact box alone is a post-processing of that box: with a fixed origin and no further randomness that depends on the name, it never leaks more than the exact box, and the measurements report how much less it leaks for its area. The square-grid rule used here qualifies. The origin is fixed on the page, not fitted to the text; each published edge is a deterministic function of the corresponding edge of the requested four-edge box, snapped outward to the next multiple of G. A width-only grid is a function of the exact left and right edges together with the line bounds, which for a fixed font and size do not depend on the name, so it cannot leak more than the exact left–right box. The inequality is relative to the requested box that was snapped. An ink-anchored pad is computed from the ink box, not from a pen-anchored four-edge box, so this argument does not compare ink-anchored padding with a pen-anchored exact box.
Start-aligned padding fixes an anchor xL at the text start and extends the box to the right to the smallest multiple of a class width C that covers the word. Words that fall in the same class receive the same box, so the attacker learns the class rather than the exact width. The redactor needs a template: the text start, the baseline and the line bounds. C must be chosen from what the redactor knows about the widest plausible entry; it is not a privacy parameter that can be set without that check. The anchor offset d (0 ≤ d < C) places the anchor d px left of a fixed margin before the leftmost ink on the list, so it sets where the class boundaries fall relative to the names. It is a property of the layout, not a value the redactor tunes; A1 knows it, because it sees the box’s left edge and knows the text start. The full-list study uses d = 0 (the list’s own anchor), and the all-offset study uses every d from 0 to C − 1. The main sweep anchors on the pen position (pen-anchored); an ink-anchored variant is reported for comparison.
Two list-based class rules keep the same start-aligned construction but set the boundaries from the list, walking from narrow names to wide ones. A class boundary may be placed only between two distinct pixel widths: names that share a width stay in the same class. K-NAMES, with parameter k, opens a new class only when the current class already holds at least k names; a short final class is merged into the previous one, so every class has at least k names. K-MASS, with parameter τ, opens a new class only when the current class already holds prior mass at least τ; a short final class is merged so that every class has mass at least τ. No name can then leak more than log2(1/τ) bits, a min-entropy floor on the published class [21]. A class that ends slightly over τ is allowed and has a lower pointwise leak; it does not break the cap. K-NAMES is a count floor, in the same family as k-anonymity [20], and does not by itself cap a rare name. Both rules need the list and, for K-MASS, its prior. The quantity reported for these policies is the information in the published box, I(W; published box), whose right edge is the widest span in the class, not the entropy of a class index the attacker does not see.
A field box blacks out the whole field, of width F, from the same anchor to the right edge of the widest entry on a bounded list, at the document’s own font and size. If the field covers every entry, the box is the same for every name and leaks nothing, by construction. The field must be sized from the document itself and checked before release; a stand-in field drawn in the wrong font can fall short.
Random padding adds an integer width U drawn uniformly from {0, 1, …, R} to the start-aligned span (the distance from the text-start anchor to the right edge). The published width is that span plus U. Policy R1 draws U once and stores the mask; policy R2 draws a fresh U for every release. The attacker is assumed to know the rule and R. These policies are included to test the length-hiding warning that fresh randomness can add leakage across releases [17].
Two consequences of these definitions are used later and are proved in Appendix A. First, start-aligned padding is a width-only grid counted from the text-start anchor: it publishes the same box as snapping only the right edge up to a multiple of C from that anchor, at full line height. Second, among start-aligned boxes that share that anchor, no zero-leak box is narrower than the field box, once the field covers every entry of a known, bounded list.
Class margin is 0 unless a sentence says otherwise; at C = 128, a 2 px margin lowered the worst-name leak from 18.60 to 15.48 bits (Section 4.2). Some later results follow from the definitions rather than from a fit: the field box leaks 0 bits once it covers the list (Appendix A); the K-MASS cap log2(1/τ) is the min-entropy floor of that construction [21]; and a later release cannot reduce the leak, by the chain rule (Appendix A). What is measured is the size of each leak, the area cost, which padding and grid rules win, how many names sit in thin classes, and the original-name scores.

3.3. Measures

Three quantities are reported for each policy. Top-10 (and top-1) is how often the hidden text is among the attacker’s ten best guesses (or is its single best guess). Ties are counted in expectation. Bits leaked is the prior entropy minus the average entropy of the remaining candidates after the box is seen, with logarithms base 2 [33]. When the hidden names are drawn from the prior, this is a mutual-information estimate. When they are not—as in the controlled-PDF test, which used a uniform test split, and in the original-name check on real pages—the same formula is an entropy-reduction score, not mutual information, and is labelled as such.
Because bits average over names, a near-zero average can hide a name that sits alone in its class. The pointwise leak of a class is −log2 of its prior mass, which every name in that class suffers. A singleton is a class that holds exactly one name. Notation is defined at first use. Area is reported against one baseline: the tight four-edge exact box (getbbox at the left-baseline anchor, with 1 px added on each edge). In the main sweep (Table 2) it is the median, over targets, of the published area divided by that box; square grids snap all four edges, so their area includes the snapped height. In the full-list study (Table 4) the published box spans the line height (ascent plus descent plus 1 px, widened to the list’s ink), and the value is the mean, over the 18 font–size cells, of each cell’s median ratio. A full-line ratio, where given, is published width divided by exact width, with both boxes at the same line height. FOIA figures are not on this baseline: they are snapped already-published page rectangles.

3.4. Studies

Unless a sentence says otherwise, the list is the 50,000 Census surnames, the attacker is matched, the measure is I(W; box), and area is the tight-exact-box ratio of Table 2 or the 18-cell mean of Table 4. The main sweep uses six fonts at 12, 16 and 24 px, with 2,000 prior-drawn targets per cell (n = 36,000 per policy). The full-list study scores every one of the 50,000 surnames, exactly, in the same 18 cells. All-offset and class-policy figures use all 50,000 names at every anchor offset 0–127 (2,304 settings). Repeated-release padding is a Monte Carlo over 10,000 five-offset vectors per cell; the 16 px grid shift uses two fonts (n = 4,000). Real-layout tests insert 954 surnames from the 2010 Census head-1,000 list on 500 DocLayNet pages [34]. Controlled PDFs use 300 pages and 240 uniform test surnames (seed 20270228). FUNSD area uses 192 forms and 2,649 redactions [35] (field box: 473 in-list). Weaker-attacker tests include a PDF-writer study on 68 surnames and 816 pages, and original-name scores on 1,936 font-matched and 5,311 generic tokens. Controlled-PDF scores are entropy reduction; FOIA figures are area on already-published page rectangles (11,351 rectangles on 932 pages).

3.5. Statistics and Reproducibility

Main-sweep percentages and bits are pooled over the 18 font–size cells. The 6.66-bit pooled exact-box figure in Section 4.1 is a sampled estimate and one point in the per-font range 4.58 to 7.70 bits (sampled means over the three sizes, n = 2,000 per cell); the exact value over all 50,000 names is 6.654 bits for the same four-edge box, and 5.281 bits for width only from a known text start. A box drawn at the font line, with the same left and right edges and a known text start, would leak that width-only figure. The interval [6.64, 6.67] around the sampled 6.66 bits is a target-level interval conditional on these six fonts. A percentile interval that resamples only six fonts is unstable, so the per-font range is reported instead. Full-list and all-offset values are exact. The five-release padding value is 1.157 ± 0.0012 (Monte Carlo; seeds and the sign-flip test are in the release repository). The original-name study in Section 4.6 used Pillow 12.0.0 with RAQM off, unlike the main sweep (Pillow 12.3.0 with RAQM 0.10.5). Other software versions are in Section 3.1.
Names on DocLayNet pages were painted with Pillow in DejaVu Sans at 16 px (with a 12 px sensitivity), drawn from the Census head-1,000 list, anchored 8 px inside the first text band, with seed 20261118, on 500 evaluation pages. The FOIA area figures use 11,351 rectangles on 932 pages from an archived table; the script that reduced the public set to that subset is not in the repository. The original-name scores in Section 4.6 use a symmetric integer edge tolerance, chosen as the smallest value that keeps the true name inside the exact-box feasible set for at least 95% of calibration tokens and then frozen: 22 px for the font-known attacker and 31 px for the generic attacker. Padding and field policies use twice that tolerance as width slack. Intervals are from 10,000 document-clustered draws, seeds 20261121 and 20261114. Email and date scores are in Appendix B.

4. Results

Unless a sentence says otherwise, the results below are for surnames, a matched attacker, four-edge exact boxes and clean images.

4.1. Four-Edge Exact Boxes and Grids

With a four-edge exact box, the leak held in every font, from 4.58 bits in Liberation Mono to 7.70 bits in DejaVu Serif (sampled means over the three sizes, n = 2,000; the exact full-list means are 4.547 to 7.696 bits). The pooled mean over the 18 font–size cells was 6.66 of the 12.88 bits (6.654 bits exactly over all 50,000 names). The matched attacker put the hidden surname in its top ten 50.2% of the time, against 5.932% with no box, and its single best guess was right 20.4% of the time, against 1.002% (both no-box rates are exact under the prior). Email, date and word checks on the same sweep are in Appendix B.
Square grids reduced the leak slowly and at a high area cost (Table 2, Figure 2): a 64 px grid still leaked 0.67 bits at 10.04 times the requested area, and a width-only 64 px grid 0.61 bits at 3.01 times. Start-aligned padding at C = 128, pen-anchored (left edge at the text start), leaked 0.08 bits at 3.36 times the area, and its top-10 was lower than the 64 px grid’s in all 18 font–size cells after Holm correction (difference 2.0 points [1.9, 2.2]). That advantage depends on knowing the text start: anchored on the ink instead, padding beat the 64 px grid in all nine Liberation cells and in none of the six DejaVu cells (Noto not significant; Holm top-10). Ink-anchored padding equalled start-aligned padding in the Liberation cells and was worse only in the DejaVu cells. In DejaVu Serif at 12 px, ink-anchored padding was worse than the 64 px grid by 1.45 points (difference −1.45 [−2.25, −0.60] on the grid-minus-padding scale).

4.2. Padding, the Field Box, and Exposed Names

An average can look safe while a single name is not [29]. Scored exactly over all 50,000 surnames at the list’s own anchor, start-aligned padding at C = 128 leaked 0.076 bits on average, and at 16 px no font’s average exceeded 0.00341 bits. In Liberation Sans at 16 px, Gomezhernandez sat alone in its class (18.60 bits). At C = 128, 172 names, counted once in each font–size cell, sat in a class leaking more than 10 bits, in five of the 18 cells. Table 3 shows the same pattern at other class widths: a singleton appears at every width up to 192 px except 160 px, and only C = 256 and the field box protected every name at this anchor.
The all-offset study asks whether such cases depend on one anchor (Table 4, Figure 3). The width-only exact box, which is the four-edge box of Section 4.1 without its top, bottom and left edges, leaked 5.281 bits and left 80 singleton rows covering 26 surnames. Fixed 128 px padding averaged 0.305 bits over all 128 offsets, yet left 25 singleton rows covering Gomezhernandez, Ii and Ji. Exposure at C = 128 falls on the extremes of the width range, and the worst name leaked 18.72 bits. A 2 px class margin did not remove the worst-off names (worst leak 15.48 bits; average 0.083 against 0.076). A class-width error of ±8 px still left a 15.22-bit leak.
List-fitted classes, with boundaries only between distinct widths and the short final class merged, were scored as the information in the published box. K-NAMES with k = 10 left no singleton but barely changed the average (5.280 against 5.281 bits), and its worst name still leaked 15.20 bits, so a minimum class size is not a per-name floor under this skewed prior. K-MASS with τ = 0.01 kept every name under its cap (worst 6.638 bits; cap 6.644), but the average stayed close to the exact box (5.006 bits; top-10 34.3% against 37.0%). At τ = 0.001 the worst name was 9.960 bits (cap 9.966) and the average 5.260 bits. K-MASS is a worst-name cap, not a way to lower the average. The class boxes cost 1.56 times the tight exact box, mostly because they span the full line height; the field box cost 3.43 times (2.33 times the exact span) and was the only policy with 0 bits for every name.
Table 4. Average and per-name exposure over all 50,000 surnames in 18 font–size cells (exact). Bits are I(W; published box); padding is scored at every offset 0–127. Area is the mean, over the 18 cells, of each cell’s median published area divided by the tight four-edge exact box (getbbox + 1 px on each edge).
Table 4. Average and per-name exposure over all 50,000 surnames in 18 font–size cells (exact). Bits are I(W; published box); padding is scored at every offset 0–127. Area is the mean, over the 18 cells, of each cell’s median published area divided by the tight four-edge exact box (getbbox + 1 px on each edge).
Policy Mean bits Top-10 (%) Top-1 (%) Worst name Names >10 bits Singletons Area
Four-edge exact box 6.654 50.1 20.1 19.14 74,747 1,204 1.00×
Width-only exact box 5.281 37.0 12.6 19.12 18,835 80 1.56×
Padding C = 128, all offsets 0.305 – – 18.72 – 25 rows –
K-NAMES, k = 10 5.280 37.0 12.6 15.20 18,734 0 1.56×
K-MASS, τ = 0.01 5.006 34.3 11.2 6.638 0 0 1.56×
K-MASS, τ = 0.001 5.260 36.7 12.4 9.960 0 0 1.56×
Field box 0 5.93 1.00 0 0 0 3.43×
No box: top-10 5.93%, top-1 1.00%; the field box equals these because every name gets the same box. The main-sweep sample in Table 2 gave 50.2% and 20.4% for the four-edge box. Worst name is the largest pointwise leak in any cell; names >10 bits are summed over cells. Area is the mean over cells of the per-cell median published area divided by the tight exact box (Section 3.3); the field box is 2.33× on a full-line basis. Dashes in the padding row mark quantities that were not computed over the 2,304 cell–offset settings; 650 settings had at least one name above 10 bits, and the 25 singleton rows cover Gomezhernandez, Ii and Ji. The 80 width-only singletons cover 26 surnames. K-MASS caps: 6.644 bits (τ = 0.01) and 9.966 bits (τ = 0.001).
On the 2010 Census head-1,000 list, where padding and the field box may use the same template, start-aligned padding first reached 0 bits at C = 96, 128 and 192 px for 12, 16 and 24 px text, and the field box leaked 0 bits at every size. Square grids of 8, 16 and 64 px still leaked at every size (the smallest of those nine cells was 0.44 bits). At C = 128, the measured 0.055 bits [0.051, 0.059] contains the analytic 0.0586 bits; both pooled figures come only from the 24 px cells (0.165 bits measured, 0.176 analytic), and the 12 px and 16 px cells are 0. The exact no-box top-10 rate on this Census head-1,000 prior is 11.97%. When C equals each font’s own field width F, the padded box and the field box have the same width, so the field uses 100% of the padded area. A gap appears only when one C is shared across fonts whose field widths differ: on the 50,000-name geometry that shared-C comparison gave 95.95%, 95.89% and 96.10% at 12, 16 and 24 px (medians over the six fonts; the means are 92.6%, 93.0% and 93.1%).

4.3. Repeated Releases

A later box adds nothing if it is a deterministic function of earlier boxes; otherwise it can only add information [33] (Appendix A). The measurements show both cases (Table 5, Figure 4). A grid snaps each shifted copy differently, so each copy measures the text width again: with a 16 px grid, top-10 rose from 11.5% with one copy to 22.0% with five (likelihood scoring; two fonts at 16 px, n = 4,000). Five shifted copies of one stored start-aligned mask published the same class, and top-10 stayed at the no-box rate (5.9%).
When padding is recomputed with a new anchor offset, the leak grows. Over all 50,000 names, fixed 128 px padding leaked 0.305 bits after one release and 1.157 ± 0.0012 bits after five, a Monte Carlo estimate over 10,000 five-offset vectors per cell (Section 3.5). Repeating the same anchor added nothing (0.305 bits after five releases). K-MASS at τ = 0.01 stayed at 5.006 bits after five releases at new offsets, with its worst name at 6.638 bits, because a shift adds the same pixels to every name and leaves its classes unchanged.
Random padding follows the length-hiding pattern [17]. In the random-padding study, start-aligned padding at C = 128 and offset 0 leaked 0.076 bits, the exact full-list value of Section 4.2; its bracket [0.038, 0.115] resamples fonts and so describes variation between fonts. Random padding with a 64 px range, drawn once and stored (R1), leaked 0.599 bits [0.554, 0.637]. Drawn afresh for every release (R2), it reached 1.837 bits [1.749, 1.911] after five releases. The practical rule is to compute one deterministic mask, store it and reuse it.

4.4. Real Pages and Controlled PDFs

The same policy order held on real page layouts and in controlled born-digital PDFs (Figure 4). With 954 surnames painted into cleared lines of 500 real DocLayNet pages [34] (2010 Census head-1,000 list; the attacker knows the text start), the exact box leaked 6.94 bits and put 94.5% of surnames in its top ten, against 11.97% from the Census head-1,000 prior. That 94.5% is on the 1,000-name list and is not comparable with the 50.2% figure on the 50,000-name main sweep. The 16 and 64 px grids leaked 2.32 and 0.72 bits, at 2.69 and 9.00 times the area. Start-aligned 128 px padding and the field box both leaked 0 bits, at 2.29 and 2.18 times the exact area.
Real released redaction boxes are already much larger than the 12–24 px test text. In a public FOIA set of van Heusden, Meijer and Marx [36] (IJDAR 2025; Zenodo 10805206), the subset we measured has 11,351 redaction boxes on 932 pages: 3,914 black, 3,242 gray, 2,535 border-only and 1,660 coloured. The median box was 228 × 49 px. If those already-published rectangles were snapped, on the page coordinate grid, to a 16 px or 64 px square grid, the median area would rise to 1.40 and 2.95 times the already-published box. The hidden text is unknown, so these figures are area costs only, and they are not a ratio to the tight exact box used in Table 2 and Table 4. The script that reduced the public set to this subset is not in the repository.
The controlled-PDF study used 300 pages (100 form, 100 letter and 100 table), written by LibreOffice, ReportLab and PyMuPDF, with seed 20270228; 60 pages were development and 240 were test, with surnames drawn uniformly. Bits here are an entropy-reduction score. Exact boxes leaked 4.29 bits (top-10 1.25%; uniform targets are mostly rare names, which a prior-ranked attacker still places low). A 16 px square grid leaked 1.85 bits at 1.48 times the area. Start-aligned padding at C = 128 cut the oracle score to 0.00018 bits at 2.62 times the area, and the field box to 0 bits at 4.91 times. In the policy-unknown arm the same padding scored 4.06 bits, but top-10 was 0: a wrong model can reward a confident set that excludes the truth. K-NAMES with k = 10 barely enlarged the box (1.0002 times) and left the score at the exact-box level (4.30 bits). When the page’s font was held out of the attacker’s library (Liberation Mono, Noto Sans), the release summary records that the true surname survived the width test on 8 of 80 held-out exact test pages (10.0%), against 157 of 160 in-library exact test pages (98.1%). Per-page rows are not in the release, so previously named short cases are not used to interpret that count; one of those cases was scored under K-NAMES rather than the exact box.

4.5. Text Lost Around the Box

Larger boxes can hide neighbouring words. Seven of the 199 FUNSD forms [35] had no qualifying surname and were skipped, leaving 192 forms and 2,649 redactions. A word was counted as lost when at least half of it was covered. Exact boxes covered no neighbouring word. On all 2,649 redactions the 16 px grid covered 0.42 words, padding at C = 128 covered 2.08 and the 64 px grid 4.25. The field box could be scored only on the 473 in-list redactions (151 pages); on those same 473 it covered 1.14 neighbouring words and padding 1.65 (2.34 and 2.98 with any overlap). On these forms the field box was therefore the cheaper of the two, but the order depends on the setting: in the controlled PDFs the field box cost more area than padding (4.91 against 2.62 times), and on DocLayNet slightly less (2.18 against 2.29 times). Extra OCR drops versus the exact box, from 10,000 page resamples with seed 20261121, were 0.82 [0.41, 1.25], 1.17 [0.54, 1.86] and 0.90 [0.32, 1.52] points for the 16 px grid, the 64 px grid and padding on all 2,649 redactions, and 0.56 [−0.05, 1.23] for the field box on its 473, so the last figure is not directly comparable.
A stand-in field box, sized in advance from the widest of the 2010 Census head-1,000 surnames set in DejaVu Sans, did not fully cover the target word in 4 of the 473 in-list cases, on different forms. In those four cases it covered 85.56–97.47% of the target rectangle. Every other policy covered the target. The 0-bit field-box claim holds only for a closed list that the field covers: an out-of-list name, or a later, longer list, is not covered, and the 50,000-name working list is itself a Census cutoff. Width ties are already built into the class rules. Whether the 50,000th Census count is a unique cutoff is noted in the release repository. A field box should therefore be sized from the document’s own font and checked to cover every entry before release.

4.6. Weaker Attackers and Original Names

Table 6 shows how much the leak depends on a matched attacker. List sizes differ, so rates should be compared within a study: the 94.5% DocLayNet exact-box rate is on the 1,000-name list, not the 50.2% main-sweep rate on 50,000 names. On synthetic lines, not knowing the font reduced top-10 from 48.6% to 38.2%, and a uniform prior removed almost all of the gain (5.7%, against 5.932% with no box). On DocLayNet pages, an exact box reached 94.5% when matched and 74.6% when the font was unknown. In a PDF-writer study on 68 surnames and 816 pages, a matched attacker reached 87.0% [80.6, 93.1]. With a held-out font, an exact-match attacker kept the true name in its feasible set on only 7.4% of pages, and top-10 was also 7.4%, no better than the 8.8% no-box rate (difference −1.5 [−8.1, 4.4]). That low top-10 is not protection: the attacker often never had the true name in the set. The same held-out attacker facing 16 px grid boxes reached 21.8% against 8.8% (difference +13.0 [6.9, 19.7]; truth-in 85.5%). That 68-surname result is a first measurement, not a settled rate. An unknown font is not a defence for a coarse grid.
On original surnames already present in real text, bits are an entropy-reduction score. With a font-matched attacker the frozen 22 px tolerance gave 0.42 bits [0.35, 0.51] on 1,936 renderable tokens, and no name entered the top ten. With a generic attacker the frozen 31 px tolerance gave 0.061 bits [0.045, 0.080] on 5,311 tokens, and top-10 was 0.038%. Those two figures are not evidence that a tight box leaks little: they are scores at a wide tolerance, frozen after a ≥95% truth-in calibration, which also leaves tens of thousands of names in the feasible set (Table 7). At a 0 px tolerance the font-known score is 7.19 bits and the generic score 4.99 bits, but the true name stays in the feasible set only 4.5% and 16.2% of the time. A font-estimation rule scored 0.65 bits [0.58, 0.73] but chose the correct font in 0% of cases, so that score is not evidence that font estimation works. These checks do not show that boxes are safe, and 0.42 or 0.65 bits should not be read as a lower bound on a real-world attack.
The font file, not only the font name, matters. Replacing the Liberation files with an alternate Liberation Sans build (version 1.07.4, SHA-256 f8ace1f892b2bd9dc1792ba7f097fa7588f84fed48321480e04de5390828221f) left the left, right and bottom edges and the ink width unchanged, so the width-only leak (5.281 bits) and all-offset padding (0.305 bits) did not move. It did change top edges, for 11,527 names in Liberation Sans at 16 px and 15,523 names in Liberation Mono at 24 px. The four-edge exact-box mean moved from 6.654 to 6.660 bits, the Liberation Sans 16 px cell from 6.46 to 7.23 bits, and the singleton count from 1,204 to 1,219. The Liberation Mono 24 px cell moved from 5.02 to 4.36 bits (−0.66 bits) in the n = 2,000 sampled estimate; the exact full-list baseline for that cell is 4.991 bits. The corresponding exact full-list value under the alternate build is not in the V1 tables.

5. Discussion

5.1. Choosing a Box

Table 8 turns the results into a guide. The right policy depends on what the redactor knows. A court form with a fixed surname field and a bounded, checked list can black out the whole field width; that 0-bit claim does not extend to names outside the list. A free-text line with a known start can be padded to a class at least as wide as the widest plausible entry, then checked name by name. A scanned page with no template can only snap to a grid, and that grid should not be treated as safe. If the document may be released again, one mask should be stored and reused. Where the list and prior are known and a per-name cap matters more than the average, K-MASS caps every name but barely lowers the average, so it is not a default (Section 4.2). These distinctions—start versus ink anchors, a count floor versus a mass floor, and a stored mask versus a fresh pad—would not have followed from earlier width and rounding proposals alone [6,7,8].
Table 8. Guide for choosing a box policy from what the redactor knows, including the guarantee each policy offers. Evidence points to the results sections above.
Table 8. Guide for choosing a box policy from what the redactor knows, including the guarantee each policy offers. Evidence points to the results sections above.
Redactor knows Policy Evidence
Only the requested box Square grid sized to the area budget, not treated as safe (no leakage guarantee; the leak falls slowly with G) 16 px: 2.19 bits at 2.45×; 64 px: 0.67 bits at 10.04× (Section 4.1)
A template: text start, baseline, line bounds Start-aligned padding from the known text start; class at least as wide as the widest plausible entry; check every name (average leak falls with C; no per-name guarantee) C = 128: 0.08 bits with the box at the text start, 0.305 bits averaged over offsets, singletons until C = 256 (Section 4.1 and Section 4.2); ink-anchored padding beat the 64 px grid in all nine Liberation cells and in none of the DejaVu cells
A template and a bounded list Field box, sized from the document’s own font and checked to cover every entry (0 bits by construction if the field covers every entry) 0 bits in every study with a covering field, at 2.18× to 4.91× the exact area (Section 4.2 and Section 4.4); 4 of 473 stand-in fields fell short (Section 4.5)
A template, a bounded list and its prior K-MASS with floor τ, scored against the width-only exact box (every name at most log2(1/τ) bits after the short tail is merged) τ = 0.01 caps at 6.644 bits; average 5.006 against width-only 5.281 (Section 4.2)
More than one release Reuse one stored mask (the leak does not grow if later boxes are a function of the first) Recomputed padding 0.305 → 1.157 bits; fresh random padding 0.599 → 1.837 bits; a stored mask added nothing (Section 4.3)

5.2. Practical Implications

For a records office, the results become three checks before release. First, on the synthetic matched-attacker bound, a four-edge exact box is the riskiest option for names and other closed lists; the same pattern held for email addresses and dates (Appendix B). Second, a policy’s average leak is not enough: near-zero averages hid exposed names (Section 4.2). Third, the mask should be stored and reused, because a recomputed mask leaks more each time.

5.3. Limitations and Future Directions

Internal validity. The headline attacker is strong by design: it knows the renderer, the font file, the size and the prior. The 50.2% and 6.66-bit pooled figures are upper-end values for that attacker on synthetic lines, and sit inside the sampled per-font range 4.58 to 7.70 bits. The held-out-font test in Section 4.6 used only 68 surnames and is not a settled rate; a drop in exact-match top-10 is not evidence that the exact box is safe. The five-release padding value is a Monte Carlo estimate under the independent-offset assumption of Section 4.3, and intervals that resample six fonts are unstable, so per-font ranges are given where that matters.
External validity. The results cover single-line text in born-digital documents and images. Real redacted case files, scanned paper as the primary setting, multi-line text and non-Latin scripts were not studied, and padding was tested up to 24 px text. DocLayNet figures use painted names, not the page’s original text. The FOIA check reports area only, on the 11,351-box subset we measured [36]; the hidden text is unknown.
Relation to Bland et al. The 5.281-bit width-only figure is lower than Bland et al.’s 7.8 of 13.1 bits for surname width in 10 pt Times New Roman with no glyph shifts [8]. The difference may come from the list and prior (50,000 Census names, H = 12.88, against 151,671 names with a voter-registration empirical prior, H = 13.1), the fonts and sizes, or residual PDF width versus a burned-in raster box. It is a useful external check, not a replication.
Dual use. The width attack used here is already public. The code and data released with this paper are for measuring geometry leakage on synthetic renderings and derived boxes, not a tool for attacking real redacted files.

6. Conclusions

A redaction box hides text but not its size. Under a matched, noise-free attacker, four-edge exact boxes leaked about half of a surname’s uncertainty, a width-only box 5.28 bits, and grids reduced this slowly and at a high area cost. Averages hid exposed names; only a covering field box removed the leak for every name, by construction. Recomputed padding grew from 0.305 to 1.157 bits over five releases and fresh random padding from 0.599 to 1.837 bits, while a stored mask added nothing. These figures are a strong-attacker upper bound; on original names at frozen 95% tolerances the leak was 0.06 to 0.42 bits. For a bounded, checked list, that bound supports a field box that covers every entry, and one stored mask (Table 8).

Author Contributions

N.V. carried out the conceptualization, methodology, software, validation, analysis, data curation, writing and visualization. The author has read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable; the study used synthetic text, generated documents and public datasets (DocLayNet, FUNSD, and a public FOIA page set) only.

Data Availability Statement

Code and archived results are public at https://github.com/neervasa00000000/Guard, Guard release V1 (tag V1, commit e0d414cf8871c37fbb75b56fa3121b4c0690d357). From a clean clone of that commit, verify_inputs (3,408,000 case records), the pooled main-sweep rebuild, regenerate_tables, results/tables/values.csv, check_numbers, and the project tests all run. Figure data come from those committed tables. Study programs and outputs are under experiments/ and results/ as named in the README, including the full-list geometry cache (results/class_policies/geom.npz). The claim map and locked-value table (manuscript/claims.json, manuscript/CLAIMS.md, scripts/locked_values.json) are keyed to this paper’s tables. The FOIA subset-reduction script and the per-page controlled-PDF rows are not in this release. Re-running the class-policy step needs the hash-pinned fonts and the Census file, which are fetched as described in the README.

Conflicts of Interest

The author declares no conflicts of interest.

Appendix A. Short Proofs

Proof of the field-box claim. A class leaks nothing only if every name in the list is assigned the same box. For start-aligned padding that requires a class at least as wide as the distance from the anchor to the right edge of the widest entry, which is the field width F. The field box is that width, so it leaks nothing when it covers the list.
Proof of the mass cap. After the short final class is merged, every class has prior mass at least τ, so a name in any class has pointwise leak at most log2(1/τ) bits. The reported leak is the information in the published box, I(W; published box). A class that ends slightly over τ has a lower pointwise leak and does not break the cap.
Proof of the repeated-release claim. By the chain rule [33], the information in T boxes is a sum of non-negative terms, so the leak cannot fall with T. If every later box is a function of the first, as when one mask is stored and reused, later terms are zero. If each later box is drawn independently given the hidden text, as with fresh random padding, the total is at most T times the leak of one release.

Appendix B. Secondary Checks

On the words list, exact-box top-10 rose from 23.9% to 79.7%; same-sweep exact boxes leaked 6.27 bits for emails (top-10 18.2%) and 3.29 bits for dates (C = 128: 0.56 / 0.32 bits; C = 256: dates 0, emails 0.24 bits, 0.73 at 24 px).

References

  1. United States Courts. Federal Rules of Civil Procedure, Rule 5.2: Privacy Protection for Filings Made with the Court. Available online: https://www.law.cornell.edu/rules/frcp/rule_5.2 (accessed on 10 November 2026).
  2. NEMA. DICOM PS3.15 Annex E.3: Basic Application Level Confidentiality Options (Clean Pixel Data Option). Available online: https://dicom.nema.org/medical/dicom/current/output/chtml/part15/sect_E.3.html (accessed on 10 November 2026).
  3. Hill, S.; Zhou, Z.; Saul, L.; Shacham, H. On the (In)effectiveness of Mosaicing and Blurring as Tools for Document Redaction. Proc. Priv. Enhancing Technol. 2016, 2016, 403–417. [CrossRef]
  4. Wyatt, P. A Case Study in PDF Forensics: The Epstein PDFs. PDF Association, December 2025. Available online: https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/ (accessed on 29 November 2026; archived 22 December 2025 at https://web.archive.org/web/20251222212245/https://pdfa.org/a-case-study-in-pdf-forensics-the-epstein-pdfs/).
  5. Adhatarao, S.; Lauradoux, C. Exploitation and Sanitization of Hidden Data in PDF Files: Do Security Agencies Sanitize Their PDF Files? In Proceedings of the 2021 ACM Workshop on Information Hiding and Multimedia Security (IH&MMSec), June 2021; pp. 35–44. [CrossRef]
  6. Lopresti, D.; Spitz, A.L. Quantifying Information Leakage in Document Redaction. In Proceedings of the 1st ACM Workshop on Hardcopy Document Processing (HDP), November 2004; pp. 63–69. [CrossRef]
  7. Lopresti, D.; Spitz, A.L. Information Leakage Through Document Redaction: Attacks and Countermeasures. In Proceedings of SPIE 5676, Document Recognition and Retrieval XII, January 2005; pp. 183–190. [CrossRef]
  8. Bland, M.; Iyer, A.; Levchenko, K. Story Beyond the Eye: Glyph Positions Break PDF Text Redaction. Proc. Priv. Enhancing Technol. 2023, 2023, 43–61. [CrossRef]
  9. Gilbert, A. unredact: Recovering Redacted Text from Box Width, Font Metrics and Language-Model Ranking. Open-Source Software, GitHub, 2026. Available online: https://github.com/Alex-Gilbert/unredact (accessed on 10 November 2026).
  10. KhoomeiK. deredact: Character-Count-Constrained LLM Decoding to Fill in Redacted Text. Open-Source Software, GitHub, 2024. Available online: https://github.com/KhoomeiK/deredact (accessed on 10 November 2026).
  11. Pilán, I.; Lison, P.; Øvrelid, L.; Papadopoulou, A.; Sánchez, D.; Batet, M. The Text Anonymization Benchmark (TAB): A Dedicated Corpus and Evaluation Framework for Text Anonymization. Comput. Linguist. 2022, 48, 1053–1101. [CrossRef]
  12. Kumar, V.P.V.; Venkatesh, S.; Yamshchikov, I.P. LeakageBench: Document-Level Leakage Risk for Redacting Personally Identifiable Information in Document Images. In Findings of the Association for Computational Linguistics: EMNLP 2026, October 2026; Association for Computational Linguistics: Budapest, Hungary, 2026; pp. 50519–50537. [CrossRef]
  13. Manzanares-Salor, B.; Sánchez, D.; Lison, P. Evaluating the Disclosure Risk of Anonymized Documents via a Machine Learning-Based Re-Identification Attack. Data Min. Knowl. Discov. 2024, 38, 4040–4075. [CrossRef]
  14. Beltrame, M.; Conti, M.; Guglielmin, P.; Marchiori, F.; Orazi, G. RedactBuster: Entity Type Recognition from Redacted Documents. In Proceedings of the European Symposium on Research in Computer Security (ESORICS); Lecture Notes in Computer Science, Volume 14983; Springer, 2024; pp. 451–470. [CrossRef]
  15. Charpentier, L.G.G.; Lison, P. Re-identification of De-identified Documents with Autoregressive Infilling. In Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), July 2025; pp. 1192–1209. [CrossRef]
  16. Holland, J.K.; Hopper, N. RegulaTor: A Straightforward Website Fingerprinting Defense. Proc. Priv. Enhancing Technol. 2022, 2022, 344–362. [CrossRef]
  17. Degabriele, J.P. Hiding the Lengths of Encrypted Messages via Gaussian Padding. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security (CCS), November 2021; pp. 1549–1565. [CrossRef]
  18. Gellert, K.; Jager, T.; Lyu, L.; Neuschulten, T. On Fingerprinting Attacks and Length-Hiding Encryption. In Proceedings of Topics in Cryptology (CT-RSA 2022); Lecture Notes in Computer Science, Volume 13161; Springer, 2022; pp. 345–369. [CrossRef]
  19. Dyer, K.P.; Coull, S.E.; Ristenpart, T.; Shrimpton, T. Peek-a-Boo, I Still See You: Why Efficient Traffic Analysis Countermeasures Fail. In Proceedings of the IEEE Symposium on Security and Privacy (SP), May 2012; pp. 332–346. [CrossRef]
  20. Sweeney, L. k-Anonymity: A Model for Protecting Privacy. Int. J. Uncertain. Fuzziness Knowl.-Based Syst. 2002, 10, 557–570. [CrossRef]
  21. Smith, G. On the Foundations of Quantitative Information Flow. In Proceedings of the 12th International Conference on Foundations of Software Science and Computational Structures (FoSSaCS), March 2009; Lecture Notes in Computer Science, Volume 5504; Springer: Berlin, Germany, 2009; pp. 288–302. [CrossRef]
  22. Machanavajjhala, A.; Kifer, D.; Gehrke, J.; Venkitasubramaniam, M. ℓ-Diversity: Privacy Beyond k-Anonymity. ACM Trans. Knowl. Discov. Data 2007, 1, 3-es. [CrossRef]
  23. Hughes, R.J. Review and Redaction-Tolerant Image Verification Using Cryptographic Methods. Sci. Glob. Secur. 2021, 29, 3–16. [CrossRef]
  24. Ko, H.; Lee, I.; Lee, S.; Kim, J.; Oh, H. Efficient Verifiable Image Redacting Based on zk-SNARKs. In Proceedings of the ACM Asia Conference on Computer and Communications Security (ASIA CCS), June 2021; pp. 213–226. [CrossRef]
  25. Dziembowski, S.; Ebrahimi, S.; Hassanizadeh, P. VIMz: Private Proofs of Image Manipulation Using Folding-Based zkSNARKs. Proc. Priv. Enhancing Technol. 2025, 2025, 344–362. [CrossRef]
  26. zero-savvy. VIMz Source Code, Commit 59e76699881da9aede610416be9b00de4cc88117 (Block-Redaction Circuit redact_step.circom, Branch redact-block). GitHub Repository, 2025. Available online: https://github.com/zero-savvy/vimz/tree/59e76699881da9aede610416be9b00de4cc88117 (accessed on 23 November 2026).
  27. Datta, T.; Chen, B.; Boneh, D. VerITAS: Verifying Image Transformations at Scale. In Proceedings of the IEEE Symposium on Security and Privacy (SP), May 2025; pp. 4606–4623. [CrossRef]
  28. Kang, D.; Hashimoto, T.; Stoica, I.; Sun, Y. ZK-IMG: Attested Images via Zero-Knowledge Proofs to Fight Disinformation. arXiv 2022, arXiv:2211.04775. Available online: https://arxiv.org/abs/2211.04775 (accessed on 10 November 2026).
  29. Moore, H.D.; Stephens, A.; Scherer, W. An Understanding of the Vulnerability of Datasets to Disparate Membership Inference Attacks. J. Cybersecur. Priv. 2022, 2, 882–906. [CrossRef]
  30. Vasa, N. Guard: Research Code and Data for Measuring Geometry Leakage of Redaction Boxes. GitHub Repository, 2026. Available online: https://github.com/neervasa00000000/Guard (accessed on 30 November 2026).
  31. U.S. Census Bureau. Frequently Occurring Surnames from the 2010 Census (names.zip). Available online: https://www2.census.gov/topics/genealogy/2010surnames/names.zip (accessed on 10 November 2026).
  32. Speer, R. wordfreq: Access a Database of Word Frequencies, in Various Natural Languages. Python Package, version 3.1.1. Available online: https://github.com/rspeer/wordfreq (accessed on 10 November 2026).
  33. Cover, T.M.; Thomas, J.A. Elements of Information Theory, 2nd ed.; Wiley: Hoboken, NJ, USA, 2006. [CrossRef]
  34. Pfitzmann, B.; Auer, C.; Dolfi, M.; Nassar, A.S.; Staar, P. DocLayNet: A Large Human-Annotated Dataset for Document-Layout Segmentation. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining (KDD), August 2022; pp. 3743–3751. [CrossRef]
  35. Jaume, G.; Ekenel, H.K.; Thiran, J.-P. FUNSD: A Dataset for Form Understanding in Noisy Scanned Documents. In Proceedings of the International Conference on Document Analysis and Recognition Workshops (ICDARW), September 2019; pp. 1–6. [CrossRef]
  36. van Heusden, R.; Meijer, K.; Marx, M. Redacted Text Detection Using Neural Image Segmentation Methods. Int. J. Doc. Anal. Recognit. 2025. Data: Zenodo 10805206. [CrossRef]
Figure 1. Box policies on one form field (schematic; dashed outline: the field). (a) An exact box fits the hidden word. (b) Start-aligned padding extends from the text start xL to the next multiple of a class width C. (c) A field box blacks out the whole field, of width F.
Figure 1. Box policies on one form field (schematic; dashed outline: the field). (a) An exact box fits the hidden word. (b) Start-aligned padding extends from the text start xL to the next multiple of a class width C. (c) A field box blacks out the whole field, of width F.
Preprints 247167 g001
Figure 2. Bits leaked versus area, against one baseline: the tight four-edge exact box (getbbox + 1 px on each edge). (a) Mean leak. Square grids, the exact box, width-only 64 px and start-aligned padding at C = 128 use the main-sweep median of that ratio (n = 36,000). Width-only exact, K-NAMES, K-MASS and the field box use the full-list mean of 18 cell medians of the same ratio (50,000 names); those class policies share the 1.56× width-class area except the field box (3.43×). (b) Worst-name leak for the full-list policies. All-offset padding is omitted from the plot: its worst name is 18.72 bits, but it has no single area ratio because the area depends on the offset. The two panels share the x-axis but not the y-scale.
Figure 2. Bits leaked versus area, against one baseline: the tight four-edge exact box (getbbox + 1 px on each edge). (a) Mean leak. Square grids, the exact box, width-only 64 px and start-aligned padding at C = 128 use the main-sweep median of that ratio (n = 36,000). Width-only exact, K-NAMES, K-MASS and the field box use the full-list mean of 18 cell medians of the same ratio (50,000 names); those class policies share the 1.56× width-class area except the field box (3.43×). (b) Worst-name leak for the full-list policies. All-offset padding is omitted from the plot: its worst name is 18.72 bits, but it has no single area ratio because the area depends on the offset. The two panels share the x-axis but not the y-scale.
Preprints 247167 g002
Figure 3. Mean bits leaked for class policies (all 50,000 surnames, 18 font–size cells; padding averaged over offsets 0–127). Width-only exact left 80 singleton rows; padding at C = 128 left 25; K-NAMES, K-MASS and the field box left none.
Figure 3. Mean bits leaked for class policies (all 50,000 surnames, 18 font–size cells; padding averaged over offsets 0–127). Width-only exact left 80 singleton rows; padding at C = 128 left 25; K-NAMES, K-MASS and the field box left none.
Preprints 247167 g003
Figure 4. Repeated releases, real layouts and controlled PDFs. (a) Bits leaked after one and five releases for padding recomputed with a new offset (Monte Carlo estimate 1.157 ± 0.0012 bits at five releases) and for fresh random padding (R = 64). (b) Top-10 for a 16 px grid with one and five shifted copies (two fonts at 16 px, n = 4,000). (c) Bits leaked for 954 names inserted on 500 DocLayNet pages (16 px, 2010 Census head-1,000 list, matched template). (d) Entropy-reduction scores for 240 uniformly drawn test surnames in born-digital PDFs (oracle attacker given the true font, size and template). Panels (a)–(d) are different studies and are not on one common scale.
Figure 4. Repeated releases, real layouts and controlled PDFs. (a) Bits leaked after one and five releases for padding recomputed with a new offset (Monte Carlo estimate 1.157 ± 0.0012 bits at five releases) and for fresh random padding (R = 64). (b) Top-10 for a 16 px grid with one and five shifted copies (two fonts at 16 px, n = 4,000). (c) Bits leaked for 954 names inserted on 500 DocLayNet pages (16 px, 2010 Census head-1,000 list, matched template). (d) Entropy-reduction scores for 240 uniformly drawn test surnames in born-digital PDFs (oracle attacker given the true font, size and template). Panels (a)–(d) are different studies and are not on one common scale.
Preprints 247167 g004
Table 1. What each attacker knows besides the published box.
Table 1. What each attacker knows besides the published box.
Attacker Font file, size, list, prior Baseline Text start Copy offsets
A1, start known (matched) Yes Yes Yes –
A2, width only Yes Yes No –
A3, several copies Yes Yes No Yes
Headline figures are for A1 unless a sentence says otherwise. A2 and A3 appear in the repeated-release and weaker-attacker checks. Font file means the exact file (version and hinting), not only the family name.
Table 2. Exact boxes and grids in the main sweep (matched attacker, six fonts at 12–24 px pooled, n = 36,000 per row). Area is the median, over the same targets, of the published area divided by the tight four-edge exact box (getbbox + 1 px on each edge).
Table 2. Exact boxes and grids in the main sweep (matched attacker, six fonts at 12–24 px pooled, n = 36,000 per row). Area is the median, over the same targets, of the published area divided by the tight four-edge exact box (getbbox + 1 px on each edge).
Policy Top-10 (%) Bits Area ratio
No box 5.932 0 –
Four-edge exact box 50.2 6.66 1.00×
8 px grid 21.2 3.30 1.60×
16 px grid 14.9 2.19 2.45×
32 px grid 10.7 1.28 4.38×
64 px grid 8.2 0.67 10.04×
Width-only 64 px grid 8.1 0.61 3.01×
Start-aligned padding, C = 128 (pen-anchored) 6.2 0.08 3.36×
No-box top-10 and top-1 (1.002%) are exact under the prior. Area is the median published-box area divided by the tight four-edge exact box; square grids snap height as well as width. The padding row is pen-anchored (left edge at the text start). An ink-anchored variant, which anchors on the ink, gave 7.28% top-10 and 0.258 bits on the same targets.
Table 3. Average and worst-case leakage of start-aligned padding at the list’s own anchor (all 50,000 surnames, exact; means over 18 font–size cells). Right: largest pointwise leak in any font at that size, in bits, with the number of names in that class.
Table 3. Average and worst-case leakage of start-aligned padding at the list’s own anchor (all 50,000 surnames, exact; means over 18 font–size cells). Right: largest pointwise leak in any font at that size, in bits, with the number of names in that class.
Policy Mean bits 12 px 16 px 24 px
C = 64 0.645 8.04 (546) 18.60 (1) 18.60 (1)
C = 96 0.296 17.77 (2) 11.23 (100) 18.60 (1)
C = 128 0.076 0 18.60 (1) 8.76 (458)
C = 160 0.0058 0 0 14.56 (10)
C = 192 0.0005 0 0 18.60 (1)
C = 256 0 0 0 0
Field box 0 0 0 0
A pointwise leak above the 12.88-bit prior entropy means a rare name alone in its class. The 18.60-bit singleton at this anchor is Gomezhernandez in Liberation Sans. The C = 160 row is from tail_summary.csv in release V1.
Table 5. Leakage over repeated releases (bits unless marked). Brackets are 95% font-clustered intervals; the five-release padding value is a Monte Carlo mean ± standard error.
Table 5. Leakage over repeated releases (bits unless marked). Brackets are 95% font-clustered intervals; the five-release padding value is a Monte Carlo mean ± standard error.
Policy and release rule Study One release Five releases
16 px grid, shifted copies (top-10, %) Main sweep, two fonts at 16 px, n = 4,000 11.5 22.0
Start-aligned mask, stored and reused (top-10, %) Main sweep, two fonts at 16 px, n = 4,000 5.9 5.9
Fixed padding C = 128, new offset per release All-offset, 50,000 names 0.305 (exact) 1.157 ± 0.0012
K-MASS, τ = 0.01, new offset per release All-offset, 50,000 names 5.006 5.006
Start-aligned padding C = 128, offset 0 Random-padding 0.076 [0.038, 0.115] –
Random padding R = 64, drawn once (R1) Random-padding 0.599 [0.554, 0.637] Stored mask
Random padding R = 64, fresh per release (R2) Random-padding 0.599 (as R1) 1.837 [1.749, 1.911]
The 16 px grid rows are a two-font slice of the main sweep. The stored-mask 5.9% is the exact no-box rate, 5.932%, to one decimal. Five-release padding assumes that, at each release, a new offset is drawn independently and uniformly from 0 to 127, with repeats allowed: a model of a redactor who recomputes the pad without storing the previous anchor, not a sample of real practice. The estimate uses 10,000 ordered five-offset vectors per cell; the printed standard error is the Monte Carlo SE, 0.0012. Seeds are in the release repository. Random-padding seed 20270228.
Table 6. Attacker-knowledge ladder: surname top-10 (%) with exact boxes unless noted. Compare rates within a study; list sizes differ, so 94.5% (1,000-name list) is not comparable with 50.2% (50,000-name list). The 11.97% row is the full-list prior, not the 12.26% DocLayNet sample no-box rate. The PDF-writer held-out-font rows use 68 surnames on 816 pages; for the exact box, truth-in was 7.4%, the same as top-10.
Table 6. Attacker-knowledge ladder: surname top-10 (%) with exact boxes unless noted. Compare rates within a study; list sizes differ, so 94.5% (1,000-name list) is not comparable with 50.2% (50,000-name list). The 11.97% row is the full-list prior, not the 12.26% DocLayNet sample no-box rate. The PDF-writer held-out-font rows use 68 surnames on 816 pages; for the exact box, truth-in was 7.4%, the same as top-10.
Study and box List Attacker knowledge Top-10 (%)
Synthetic, no box 50,000 Prior only 5.932
Synthetic, exact box 50,000 Matched (main sweep) 50.2
Synthetic, exact box 50,000 Font known (font-unknown test) 48.6
Synthetic, exact box 50,000 Font unknown 38.2
Synthetic, exact box 50,000 Uniform prior over the same list 5.7
Census head-1,000, no box (full-list prior) Census head-1,000 Prior only 11.97
DocLayNet pages, exact box Census head-1,000 Matched template 94.5
DocLayNet pages, exact box Census head-1,000 Font unknown 74.6
PDF-writer study, no box Census head-1,000 Prior only (68 test surnames) 8.8
PDF-writer study, exact box Census head-1,000 Matched 87.0
PDF-writer study, exact box Census head-1,000 Union of the two study fonts 79.4
PDF-writer study, exact box Census head-1,000 Held-out font 7.4
PDF-writer study, 16 px grid Census head-1,000 Held-out font 21.8
Original names, exact box, 22 px frozen 1,936 tokens Font-known 0
Original names, exact box, 31 px frozen 5,311 tokens Generic 0.038
Table 7. Original-name four-edge exact-box scores at a tight tolerance, a mid tolerance, and the frozen calibration. Font-known n = 1,936 renderable tokens; generic n = 5,311.
Table 7. Original-name four-edge exact-box scores at a tight tolerance, a mid tolerance, and the frozen calibration. Font-known n = 1,936 renderable tokens; generic n = 5,311.
Attacker Tolerance (px) Bits Top-10 (%) Truth-in (%) Mean candidates
Font-known 0 7.19 1.39 4.5 417
Font-known 16 0.93 0 91.2 31,599
Font-known 22 (frozen) 0.416 0 96.1 40,482
Generic 0 4.99 1.64 16.2 3,431
Generic 16 0.368 0 87.9 41,987
Generic 31 (frozen) 0.061 0.038 95.3 48,240
Truth-in is the fraction of tokens whose true name remains in the feasible set. Bits are an entropy-reduction score. An empty set falls back to the prior. The frozen 22 px and 31 px values are the smallest integers with at least 95% calibration truth-in; 22 px interval [0.35, 0.51], seed 20261121; 31 px interval [0.045, 0.080], seed 20261114. A separate bank/as-is row (6.019 bits, truth-in 14.0%) is not a font-known 0 px score.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.