Recovering redacted information from pixelated videos
positive.security
positive.security
"I hacked a hardware crypto wallet and recovered $2M [video]" https://news.ycombinator.com/item?id=30067340
Showing a blurry 16 out of 24 trezor wallet seed words https://youtu.be/dT9y-KQbqi4?t=1720
It'd be great if they replaced the key with bogus words first before blurring to troll people, but somehow I doubt it.
This is what I do 99% of the time I use blur to censor information; just replace the text with, say, colorful words of the same length before blurring. Would be neat if there was an automated tool that could do something similar.
Let's remember that PULSE also gave us Barry O'Bama.
https://www.google.com/amp/s/www.theverge.com/platform/amp/2...
[0] section 6 https://arxiv.org/pdf/2003.03808.pdf
[1] https://www.reddit.com/r/MachineLearning/comments/hk2ryn/d_h...
My best guess is that, having seen blurring of faces (which is arguably OK when one merely wants to avoid casual attempts at identification, while retaining a ‘natural’ look), they assumed this was the proper way to do it in all cases.
Unfortunately, part of "leaving the visual interest behind" is precisely "pixels that depend on their real underlying values"....
[edit] here is a link: https://www.youtube.com/watch?v=cDss3BfsITs [/edit]
I previously replied to the wrong comment on accident.
The person who fulfilled my request sent me a PDF copy of their full customer list, where all entries had been blacked out except mine.
As you may anticipate, that blacking out was simply a black box drawn on top of the actual data. It took me all of 3 seconds to select all, copy, then paste in a word processor to confirm that the file contained personal data from hundreds of other individuals.
That’s when a redaction tool suddenly appeared in Adobe Acrobat.
So when they unblur it to hack you they find a rude messages instead of the actual text.
I once read a gov document that opaque squared the pronouns, but it was clearly about a she/her!
That is my one insight. Take it for what it's worth.
So of course I read this article hoping to learn about an off-the-shelf tool that would do a great job of scanned text reconstruction. Alas, the best candidates were "no code available."
Wolf binarization - I think it makes the text more clear before OCR.
https://github.com/chriswolfvision/local_adaptive_binarizati...
This thing OCRs the pdf using Tesseract OCR
https://github.com/ocrmypdf/OCRmyPDF/
Two other pdf tools
Math typesetting is too messy for current OCR tools. It would be nice to reverse-engineer the LaTeX source for a math paper, but not likely soon. OCR for the language would help in mind-mapping a web connecting my saved papers, but I wouldn't use it for reading.
I want everything to look like a 600dpi scan mixed down, as I would make, rather than what the libraries thought would be acceptable. For the pure joy of reading.
The easiest approach that might work would be language agnostic, understanding only what clean scans of characters look like. Can we back-solve a clean scan from a lower resolution mess, matching up similar characters in the text without identifying the characters?
Somehow I imagine this is a giant singular value problem. I'm ok if it takes a day to run per paper, I have spare machines.
https://github.com/lukas-blecher/LaTeX-OCR
https://github.com/harvardnlp/im2markup
Also some LaTeX editors:
LyX https://en.wikipedia.org/wiki/LyX
TeXstudio https://en.wikipedia.org/wiki/TeXstudio
GNU TeXmacs https://en.wikipedia.org/wiki/GNU_TeXmacs
Imagine you were running averages on successive windows of a 1D array--when the average changes, that tells you the difference between the values that entered your window and the ones that just left. That's information about a sliver of data much smaller than the overall window. It's weirder with 2D and random-ish movement, but if your average (pixelation) filter is moving across text due to camera wobble or such, when the average goes up and down tells you something about where edges are in the content underneath.
I'm butchering the words because this isn't my thing, but this feels like it might be related to some actual signal-processing task (i.e. undoing some kind of signal-mangling that happens in the wild) which increases the chance that there's some good or at least well-studied solution.
The brute-force-ish approach for text reconstruction would also probably more effective if it checked against a few shifted-around blurred copies of the text, rather than just one.
You can get much further by applying deconvolutions and using more math. I've been meaning to put some time into this myself but never got it off the ground.
I wonder if the author would be open to making e.g. the car data available?
Here you go:
- The stabilized frames out of blender (with 4 blurry frames in a separate folder): https://breaking.systems/plate_frames_sorted.zip
- The original video in case you'd like to improve the stabilization as well: https://breaking.systems/plate_vid_orig.mp4
Would love to hear back in case you'll tackle it!
But I wonder how to actually do it, do you have concrete ideas for a simple algorithm?
Depending on camera movement (and whether you might get "ground truth" information from pixels entering and leaving the areas near the borders) the system will be more or less well-conditioned. I'm going to try this for the data the author graciously provided and report back!
- http://www.eyetap.org/papers/docs/mann94virtual.pdf - http://wearcam.org/orbits/index.html
I seem to recall that there used to be a video showing this approach in action. As input it took a video panning across a shelf full of books where the resolution was so low that the titles were illegible. And as output it produced a video with higher resolution and all the titles easily readable. Unfortunately I can't find that video any longer.
Interesting - this is same incorrect use of e.g. that the author made in a couple of places. Contrary to (apparently popular) belief, "i.e." and "e.g." can't simply be used as direct replacements for their English equivalents.
"e.g." is used to introduce one or more examples that satisfy a previously provided general form, for example:
I prefer fruit, e.g. apples or pears, over vegetables. Apples and pears being examples of fruit, not that an example is needed in this case, but for the sake of simplicity.
In the former example, "the car data" is not an example of "making".
"i.e." follows a similar rule. If there are exceptions for either, I'd be interested to know of them.
In any case, what I wrote is really just a shorthand for more cumbersome formulations (like "...open to making your data, e.g. the car [data], available?" - that would hopefully be correct?), and reducing text is the whole point of using an abbreviation in the first place. But I'm open to striving for more consistent usage, so if you can refer me to some kind of authority on how to mix Latin abbreviations with English text, I'd be curious about it!
I predict that future super high-resolution camera rigs will be whirling contraptions, spinning in 3 dimensions to improve 3D resolution. And the best still camera will be a wand (linear sensor array) on an articulated head that moves like a chicken's head, capturing during movement. The sound of a camera will be whoosh instead of click.
> Side note: The potentially most extensive research on the problem of programmatically unblurring mosaic'ed regions from videos was done by Japanese Adult Video enthusiasts. Javplayer automatically detects blurred regions and performs upscaling via TecoGAN, and another person spent months improving their custom GAN that was trained with leaked videos (search for "De-Mosaic JAV with AI, Deep Learning and Adversarial Networks").