Solution
The black bars were only drawn on top of the text. The names were still in the PDF, underneath them, and when the paragraph was selected and copied, they were copied too.
What happened?
A PDF describes each page as a set of objects placed at specific positions: pieces of text, images and shapes such as rectangles. If a black rectangle is drawn over a line, the reader paints it on top and the text is no longer visible, but its characters are still stored in the file. Selecting, copying, searching and extracting text all work with those characters, not with what you see.
Back in 2005, the NSA warned in its guide Redacting with Confidence that covering text with black rectangles or highlighting it in black is the most common mistake when preparing documents for release. This is what happened:
In the school office, someone drew black rectangles over the names in the word processor and exported the document to PDF.
During the export, the text and the rectangles went into the PDF as separate objects with the same layout: rectangles on top, names underneath.
On screen and in print, only the bars were visible, so the document looked anonymised.
When the paragraph was selected, the PDF reader copied every character in that area, including those under the bars.
The document hid the names from view but did not remove them. It is a mistake that keeps happening with real documents: in January 2019, a Guardian journalist copied and pasted the blacked-out parts of a filing that Paul Manafort’s defence had submitted to a US court, and the paragraphs that were meant to be hidden appeared.
How could it be fixed and prevented?
To fix it , the school needed to take the PDF off its website as soon as possible, inform the person responsible for data protection and publish a version in which the names had really been removed. There were two reliable ways to do this:
Delete the names in the original document and replace them with a marker, such as “[name removed]”, before exporting it to PDF. This is what the NSA recommends: remove the information instead of just hiding it.
Use a PDF redaction tool that removes the marked content. In Adobe Acrobat Pro, choose All tools > Redact a PDF > Redact text and images , mark the areas and select Apply . In the dialog box that opens, you can turn on sanitizing to remove hidden information as well, and the result is saved as a new document.
To stop it from happening again , each document should be checked before publication: search for the names, then select and copy the blacked-out areas and paste them into another document. If anything shows up, the file has not been properly anonymised.
‹
Case 13/21
›
A project by Eniun