Whistleblowers take note: don’t trust cropping tools
theintercept.com
theintercept.com
Sounds innocent right? Well, depending on the paintbrush tool used (this affects both Apple and Android) the number will be fully or partially recoverable, because the paintbrush is slightly translucent. The user will repeatedly cover up the number using the same paintbrush tool until they can't see the number anymore, but if you load the result in any (real) image editor and turn up the contrast in that area, you'll see the numbers.
Users need a tool on the markup editor that they can select and unambiguously know that if they draw a big black rectangle over something, it is going to be replaced by solid #000000 pixels and anything underneath will be impossible to retrieve.
Link: https://blog.nuclearsecrecy.com/2021/05/17/how-not-to-redact...
If a pixel's value is '7' and in the redacted zone, the program will iterate over the single character and output '0'. If the pixel's value is actually '174', the program will iterate over all three characters, outputting '000'. Any normal PPM image viewer will display these identically, but high contrast areas like text will be recoverable.
Nope. Microsoft Office has an option/plugin that lets you flag emails and documents as restricted. You can, for example, send such an email to someone else. That person can open the email and use a screenshot tool on that email. What they will get is a flat gray box where the email content was.
Not all pixels on the screen are the same. And you have no idea if your computer tattled on you and let the sending org know that you tried to screenshot the email.
This thread has nothing to do with preventing your source from finding out
This MS Office trick is a quick and easy way to show someone that you can’t trust Windows when it comes to screenshots. Ignore it at your own risk.
The fax should help with that, except that it'll reveal the location of your source fax. Using fax software/service needs its own security...
maybe snail-mail...
This is getting seriously nontrivial
If you do blow the whistel on the government, well, you better trust your journalist partner a lot. Or use a trustworthy lawyer as a go between.
But hey, one could send the fax back and forth, cut of the fax numbers and physically mail it from a very busy train station! And have a someone put the letter into the letterbox for you, someone you pay out of view of any CCTV cameras!
Right, I'd never use part of the original image. Best print it out and rescan it, preferably on different scanner.
Being truly anonymous is enormously difficult, even the Bauer pattern/Bayer filter shape in one's image sensor will give one away. That alone requires sophisticated filtering to decouple it from a specific sensor/camera.
And that's only the beginning, there are many other factors that contribute to the leaking one's identity.
1. First, most whistleblowing comes from B&W documents so color isn't an issue. If it is the case then there are alternative solutions which I'll not persue here in any detail (the post would be very long).
2. Printing then rescanning can decouple the camera to some extent as physical distortions are introduced by (a) the geometry of the inkjet nozzles or laser subsystem, (b) more geometric distortion is added by changes in paper size as its fused/dried, (c) additional distortion is added by the optics of the rescanning system, same goes for any further printing and so on. Also, each stage alters the gamma and adds other non linearities to the transfer.
3. Reducing the scanning resolution will add additional distortions, blurring is to be encouraged but not to the point of illegibility. (Doing a low resolution copy on a FAX machine with time/date/headers/footers turned off could help.)
4. This may sufficiently decouple the camera but it won't decouple the copying/scanning/rescanning equipment. Best do this on machines that are located well away from the source so they're not easily traceable or associated with you or your work.
5. Copying documents across multiple different photocopiers will help as they all add optical and other geometric distortions and transfer—gamma-type—errors. Deliberately lightening and darkening the image at each stage will further increase distortions. The combined distortions will make it very difficult (but not impossible) to reverse engineer the path back to the source. Have you ever wondered why the quality of the printed type in copies of evidence, FOIs, official documents etc. often looks so daggy and blurred as to be almost illegible?
6. The idea is to add as much distortion and blurring in the chain of copies as is possible and yet still keep the final copy legible/identifiable. It's a fine balance.
7. That still does not guarantee anonymity. Sensitive documents are often 'doctored' so that each recipient receives a subtlety different copy, spacing between words may change so may the page layout, also small seemingly insignificant and barely obvious 'marks' on the page will differ between copies thus identifying each recipient. None of the camera techniques above will overcome this problem.
8. One technique is to retype the document so that it is almost identical in both looks and content but with lots of subtle changes in both layout and wording—but NOT to the extent of changing the document's meaning. Same goes for modifying images (a complex matter). As a last resort this could give you a degree of plausible deniability in cases where marked documents are issued. If you do this it would be very advisable to spirit away actual copies of the originals in a truly safe location—you may really need them one day (after you're accused of, say, forgery). I'd suggest you only go down this path if you are very competent and the stakes are very high.
9. None of what I've said should be taken lightly. No matter how hard you try to decouple yourself totally from the source (or from any involvement) it is nigh on impossible to hide from formidable and sophisticated forensics if applied relentlessly.
10. Moreover, whistleblowers, more often than not, end up being reveilled by fellow workers and usually without a job or decent reemployment prospects. Unfortunately, our culture hasn't embraced whistleblowers and whistleblowing as it should. It's a very risky business. Take the case of whistleblower Daniel Ellsberg and the Pentagon Papers; his effort wasn't rewarded as we ought to expect and he nearly ended up being locked up.
Moreover, at one point Ellsberg wistfully noted that reaction by the American public to his efforts wasn't very favorable. When it comes to whistleblowing it seems not much has improved in the last five decades.
_
Edit: FYI, there are many excellent videos on Daniel Ellsberg and whistleblowing on YouTube.
But if I ever learned anything about that area it's that there's probably still five other details I haven't considered.
I think this is a little unfair. I would not blame anyone for thinking that the part of the image they cropped is deleted. That's what the word means, that's what it looks like is happening, there's usually no warning that it's recoverable.
When you delete text it is really gone from the document, even though you can undo to get it back. It's totally reasonable to expect images to work the same way.
Abusing Microsoft Office applications to do things they're not designed to do has sort of a bathtub curve of likelihood versus tech literacy. The people most likely to do it are either largely tech illiterate or skilled hackers with far too much time on their hands.
I’m well aware that it’s reversible so I’m careful of what I put in to begin with, but I’m not going to open an image editor unless I really have to
I have other shit to do
Kevin in accounting might be making a document for work and might take a screenshot of his entire desktop to put in an onboarding document, intending to crop it. He could have a password in Notepad off to the side
Those are things many recent UI "improvements" haven't considered.
My significant other is outside of tech and wasn't aware of either of these. Once shown, there was no reason to go back to using anything else to crop images.
No image editors involved!
saving a screenshot as JPG (lossy format) adds more loss - if you started with a lossy image in the first place then we are losing even more information by screenshotting it and saving it again in a lossy format.
even when not intended for print, when making formal documents and presentations I look for the original images at highest resolution available.
- Bluetooth file transfer… I don’t even know where to begin
- AirDrop requires you to be in the Apple ecosystem. I think default settings also require you to be logged in the same Apple account on both devices too
- Cloud storage services need you to install the app or login into the website on both your phone and the computer with the same account. Very few of my non-tech friends even have any cloud storage service outside what their phone uses
Ngl, I take photos of my screens sometimes
whatsappweb opened in a browser
pushbullet
google photos / Gmail to yourself
For example, "motion photo" feature I used few years ago would give you perfectly normal JPG file that also happened to store a short video. Nothing I know other than Samsung phones can read the video part directly, though there exists desktop software that can extract it and save as separate video file.
More recently, I've noticed photo editor tools on Samsung phones allow you to undo previously made edits on an already saved file, including any destructive crops and transforms - meaning the original is being persisted somewhere. I haven't checked where, but I imagine it's again attached to the back of the JPG you thought you've cropped/redacted.
Somewhat related: PlantUML. It's a tool for generating diagrams from plaintext descriptions. One of its most interesting, if not well-known, features is that it saves "editable PNGs" by default - that is, PNGs it produces have the plaintext diagram code attached to the image as metadata. Seems mostly harmless, but it could technically leak information you put in the diagram code but made not visible in the image.
A
Ctrl+I
Enter
Ctrl+I
B
This will look like: A
B
If you later start typing on that intermediate line, though, your text will be in italics. This is what users expect, and is in contrast to outting a little "italics" markup symbol on the line, as people did pre-WYSIWYG or do today in Markdown, HTML, and other markup languages.And then, the app use information is also independently stored on your Google account. For your convenience. So even if you flush your phone down the toilet and get a new one, the information remains. Even if you wipe your Google account, organizations with enough pull (e.g. governments) could get at it.
And don't get me started on battery level / charging status or what WiFi networks were seen when.
When they take possession of items for various reasons they want to sell them off to reclaim lost tax revenue.
Cars for example, now you must know that in Europe for some reason people are very weary of their VIN. It's not shown on websites as it is in the USA.
So the tax office posts a PDF with all the cars they possessed with their VINs, but with 80% blacked out.
With black boxes.
And they didn't flatten the PDF.
Sending around data is a minefield. Metadata everywhere. It's so easy to lose track of it.
Though the overall lesson of the story is good: analog redactions with a permanent market and a b&w photocopier are recommended for anybody without 100% confidence in their tools.
Or better yet, an exacto blade. If the "black and white" photocopier is actually grayscale, then you could get text leaking through the marker if you play around with the image contrast.
Most banknotes are not printed on ordinary paper, but it doesn't stop people from trying. Printers which produce those dots will also usually refuse to print high-resolution pictures of dollar bills.
Quite a lot of cars in Europe, including from European marquees, have the VIN in a visible place at the bottom of the windshield.
I can also look up the VIN for pretty much any car on the road by just searching the number plate on the traffic authority's website. Gives me the VIN, last inspection date, tyre sizes, tax info, etc.
Also, all TikTok videos are restored to their original form and archived, by TikTok, both in the US and China. All those "blurry" nudes, "a day in the life at the office", and more, belong to TikTok. Along with all that metadata. TikTok you don't stop!
If you're feeling rough, run the screencap through an OCR and a spell checker first before taking an off axis picture in Times New Roman.
If noone does that right now it is just an update away.
Only the final image should be compressed using a lossy image compressor as then any details can't be diffused to the image if they simply aren't there.
Or as Thomas J. Watson put it: "Recently, I was asked if I was going to fire an employee who made a mistake that cost the company $600,000. No, I replied, I just spent $600,000 training him. Why would I want somebody to hire his experience?"
Don't fire him, and you've paid $600,000 to train just him. Fire him, and you've paid $600,000 to train everybody else at the company. Which one is the better value?
However don't trust... tools can't help but be good advice. There's no need to trust the Intercept on metadata existing.
[1]: https://youtu.be/BUkRlfkv2D8?t=2199
And the related GitHub issue: https://github.com/AOMediaCodec/av1-avif/issues/188
But there is probably still a lot of watermarking that could leak through.
PDF’s are risky business. So much metadata can be hidden in a PDF depending on how it was generated. Stick to optimized JPEG’s (as I suggested in another comment [1]).
For clean PDFs you would need a dedicated tool. I wouldn't trust PDFs that were created by any standard office software (Word, Acrobat, ...). There is always the risk some information about your computer, user name, time zone, location or maybe even license key/hash of the software may leak into the created document.
> Police found metadata embedded in a deleted Microsoft Word document that was, unknown to Rader, still stored on the floppy disk. The metadata contained the words "Christ Lutheran Church", and the document was marked as last modified by "Dennis". An Internet search determined that a "Dennis Rader" was president of the church council.[1]
https://play.google.com/store/apps/details?id=com.niksoftwar...
I remember lots of people getting busted after news spread that Word 97 kept the complete undo-history within the doc-file itself. Leaking a lot of redacted hate-mails and plagiarized then edited home assignments.
(red dwarf scene) https://www.youtube.com/watch?v=6i3NWKbBaaU
Alternate way is to select the area you want to keep and then click the crop button on the toolbar.
I'll look for the crop button in paint 11, don't think I've noticed it yet.
Sadly looks like win 10 does hit EOL before I retire so I've got one more generation to deal with before I slip away to linux and mac.
Foolproof, easy to explain to anyone, and 100% reliable.