<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by John LoVerso on Medium]]></title>
        <description><![CDATA[Stories by John LoVerso on Medium]]></description>
        <link>https://medium.com/@John.LoVerso?source=rss-9e82f09cc532------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8FTuH6ouQFJgANT7JefinQ.jpeg</url>
            <title>Stories by John LoVerso on Medium</title>
            <link>https://medium.com/@John.LoVerso?source=rss-9e82f09cc532------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 12:36:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@John.LoVerso/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Corrupt File Forensics]]></title>
            <link>https://medium.com/@John.LoVerso/corrupt-file-forensics-344b15c62dd6?source=rss-9e82f09cc532------2</link>
            <guid isPermaLink="false">https://medium.com/p/344b15c62dd6</guid>
            <category><![CDATA[computer-forensics]]></category>
            <category><![CDATA[repair-corrupt-word-file]]></category>
            <category><![CDATA[remote-school-problems]]></category>
            <dc:creator><![CDATA[John LoVerso]]></dc:creator>
            <pubDate>Fri, 26 Feb 2021 04:19:16 GMT</pubDate>
            <atom:updated>2021-06-07T17:54:47.733Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Word found unreadable content in IQ_Quiz.docx. Do you want to recover the contents of this document?" src="https://cdn-images-1.medium.com/max/887/1*_lCHgoLCy-yIueM1_MTm_A.png" /><figcaption>Word cannot open this file</figcaption></figure><p>Back in November, 2020, my niece (I’ll call her “J”) and her husband called me because their son (I’ll call him “J-son”) was having a computer problem.</p><figure><img alt="https://xkcd.com/627/" src="https://cdn-images-1.medium.com/max/732/1*06dvMD_5DQ0gDHuqd0bjwA.png" /><figcaption><a href="https://xkcd.com/627/">https://xkcd.com/627/</a></figcaption></figure><p>It was no surprise they’d called me for this purpose. I’m the tech support for the extended family. And friends. And neighbors. Everything and anything from remotely removing virus infestations to helping a distressed neighbor dig into the email of a cheating spouse.</p><p>I’ve always just <em>gotten </em>computers. I like working with them because they always make sense to me. But it’s not like I’m special; this <a href="https://xkcd.com/627/">xkcd</a> comic isn’t far off from the truth.</p><p>J is a high school science teacher, and J-son is her oldest child. He’s a sophomore in high school and was taking mostly AP classes. And also attending the school J teaches in. Because of COVID, their school is running remotely. J had to be in the classroom to teach remotely, and her children would be in the room with her attending their own classes remotely because J-son and his younger siblings couldn’t be left home alone.</p><p>J-son was having a problem on the laptop he’s using for his school work. They described the problem as he would spend all morning writing a paper for a class, save it, only to later find he couldn’t open the file because Word complained it was corrupted (“turned into Wingdings”). A few times he sent a completed assignment via email to a teacher only to hear back from the teacher that the file couldn’t be opened. In those cases, after the teacher told him the file was corrupt, and he’d have to start over from scratch to rewrite the paper. He’s bright, and could do this easily, but it would result in a stressful hour or two as he attempted to recreate what he’d already written.</p><p>J wanted to know if I could help figure out what was wrong with J-son’s laptop and help them figure out how to fix it. We arranged a time for me to get remote access in a few days on Friday night, since J-son was going to be away for that weekend on a Boy Scout camping trip. In the meantime, I suggested J-son save multiple copies of any work he was doing to avoid losing another assignment.</p><figure><img alt="Microsoft Word logo" src="https://cdn-images-1.medium.com/max/1024/1*-Ub_Hjt71WxjX9uwt8rAgg.png" /></figure><p>This was an interesting problem. Only a few individual files were getting corrupted, and only Word documents. That ruled out a hard disk going bad, which would more likely result in Windows crashing. It could be an instance of something like malware that affected Office or Word directly, much like a Word macro virus of days yore.</p><p>I had experience with Word doing bad things, so I wasn’t completely surprised. I remember authoring my first long technical document in Word in 1999 (before then I wrote with FrameMaker). About the time I’d gotten to 60 or so pages full of text and packet diagrams, Word starting reporting all sorts of errors in the document; each time I opened the file different sections would be missing or rendered incorrectly. I ended up having to go back to a version from weeks earlier to recover the document without errors. I spend a few days recreating multiple weeks of work. From that I learned to regularly stash away drafts of any document I was working on, as I never wanted to have to redo weeks of work again.</p><p>Of course, that was 20 years ago and Word has grown quite a bit in that time. It couldn’t still have such bugs, could it?</p><figure><img alt="Random laptop picture" src="https://cdn-images-1.medium.com/max/824/1*G0lX36b_RDvhgyAMbItDjA.jpeg" /><figcaption>Random Windows 10 laptop</figcaption></figure><p>When Friday came and I got on the phone with J, I was itching to figure out the cause of the problem.</p><p>We went over mundane details about the model of laptop. I was going to suggest swapping out the hard drive for an SSD only to realize it already had an SSD. Then I wondered if this was possibly some SSD induced failure I wasn’t familiar with yet.</p><p>I gave J a mini-lecture on teaching J-son to save multiple copies of his file as he’s working on it. I wondered if Windows 10 on his laptop was using OneDrive to store the files of his profile (maybe there are backups). J told me that J-son downloads the assignment into his Downloads folder and then works on the paper in the same place. The Downloads folder isn’t in OneDrive in this case, so there wouldn’t be backups. So I suggested he should be putting his file in there and on the desktop.</p><p>At this point I wasted the prerequisite 10 or more minutes to get remote access to the computer. It always seems to take at least this long, no matter who I’m working with. It can take much, much longer, like when I first tried walking my then-90 year old father into opening Windows Remote Assistance and having it send me an invitation (eventually he got really good at it). In this case, J and I couldn’t get Remote Assistance working, and I tried remote screen sharing using <a href="http://meet.jit.si/">meet.jit.si</a>. That got us going, but the fidelity was too low. I finally used that to install Chrome Remote Desktop on J-son’s laptop and was able to get full remote control.</p><p>And pretty quickly I found nothing obviously wrong. Nothing in the event logs about disk errors. Nothing in the application logs from Word or Office. Nothing to indicate any problem whatsoever. J again told me the document “turned into Wingdings”; I knew that was probably just random binary characters being displayed by Word. I asked to see one of the files that had been corrupted.</p><figure><img alt="File listing for IQ_Quiz.docx showing it as 10KB" src="https://cdn-images-1.medium.com/max/632/1*ZEJ3k6qyBC2Aryq9G2v-wQ.png" /><figcaption>Just a 10KB file</figcaption></figure><p>Sure enough, I couldn’t open that file in Word on J-son’s computer. I was surprised at the small 10KB file size as Word’s storage format often results in a bloated mess of data.</p><p>Modern Word stores documents as .docx files. This is really a ZIP archive full of individual files. If you rename the file from .docx to .zip, you can open the ZIP file to see the actual component parts of the file; the real content is in word\document.xml. So I renamed the file to IQ_Quiz.docx.zip and was not that surprised I couldn’t open it. But in a way I was surprised, as the .docx is just a ZIP archive, and I expected that part should be intact.</p><p>At about that time J forwarded me an email message she’d exchanged with J-son’s teacher because she wanted to show me the Wingdings. And when I saw it, my jaw dropped.</p><figure><img alt="Long email message containing a binary file." src="https://cdn-images-1.medium.com/max/763/1*lxK92Hu34jdlVu782_cVnA.png" /><figcaption>Some binary data in the email body</figcaption></figure><p>I often jump into the middle of things and ignore the beginning. That’s just what I did when I saw this.</p><figure><img alt="Several fields highlighted in the email body" src="https://cdn-images-1.medium.com/max/730/1*jC-HyVezwmHkVQ223xWbcA.png" /></figure><p>I immediately noticed 0000644 — that looks like a UNIX file mode (permission value in octal). Next I noticed “root” and “www-data” — that’s a UNIX user and group name. A moment later I realized I was looking at a tar (<em>t</em>ape<em> ar</em>chive) header, a common file format for storing collections of files on UNIX machines and has been in use for over 40 years (ZIP is a newcomer in comparison).</p><p>And then I finally looked at the first line — /var/www/html is the file path to where an instance of the common Apache web server typically stores the files for the web site on a Linux host. And the next directory name is commonly the name of the website.</p><figure><img alt="/var/www/html/corruptmyfile/data/IQ_Quiz.docx" src="https://cdn-images-1.medium.com/max/754/1*ru7HD66jRJqgcuGVOhO-nA.png" /></figure><p>This told me way too many things. But maybe I should check. I grabbed the file and copied it over to my FreeBSD (UNIX) system. I quickly found the “corrupted” file was just a gzip compressed tarball of the originally uploaded file.</p><figure><img alt="UNIX commands showing that IQ_Quiz.docx is just a compressed tar file" src="https://cdn-images-1.medium.com/max/669/1*mWb88bM6tDQ7UN48q_9xJQ.png" /><figcaption>It’s a gzip’d tar file</figcaption></figure><p>That left only one thing to do — go to a browser and see if that website actually exists.</p><figure><img alt="Front page of www.corruptmyfile.com" src="https://cdn-images-1.medium.com/max/1021/1*i-s2SVwrCKTAKrhvLuAovQ.png" /><figcaption>www.corruptmyfile.com</figcaption></figure><p>And it turns out the people who created the website are pretty naive. They just put together something simple that lets you upload a file, and then they do nothing more than create a compressed tarball containing just your file by running the command:</p><pre>tar zcf $outfile /var/www/html/$webroot/data/$uploaded_file</pre><p>This causes tar to store an absolute pathname inside the tarball (that’s bad practice). Had they written the command this way, it would have skipped the pathname and just stored just IQ_file.docx:</p><pre>tar -zcf $outfile -C /var/www/html/$webroot/data $uploaded_file</pre><p>But I like their FAQ answers:</p><figure><img alt="Will anybody like my professor or boss be able to tell that I used this website to corrupt a file?
 No one will be able to know the difference between your file and a real corrupted file. There is no footprint or traces left when using this website. Not even experts would be able to tell. People might be able to tell if you use a different site though." src="https://cdn-images-1.medium.com/max/430/1*z_tKxoscXBX0YuenptDO1w.png" /><figcaption>LOL</figcaption></figure><p>It’s a good thing I’m not an expert. If they knew what they were doing, this could have been true.</p><p>This FAQ is also pretty funny:</p><figure><img alt="How can I be sure my file is corrupted?
 We run the file through a series of commands that replaces your file with a corrupted one. It is so effective that we can’t recover your original file if we wanted to." src="https://cdn-images-1.medium.com/max/438/1*IEKxUTmMDvrCyJCUmKYjGA.png" /><figcaption>You can’t believe everything you read on the Internet</figcaption></figure><p>I can use the tar command to extract the embedded copy of IQ_Quiz.docx, and that opens fine in Word. And here we have the entire original content of the hard work J-son put into this paper before it was due.</p><figure><img alt="The word document containing just the two letters I Q" src="https://cdn-images-1.medium.com/max/650/1*sJowWBiC1eSYtfglVeIFrg.png" /><figcaption>Not much work in this file</figcaption></figure><p>To be sure, I uploaded my own document and was able to completely reproduce the “file corruption”. That was all that was needed to wrap up all the evidence and hand the phone over to my wife so that she could talk to J and give some parenting advice. She’s the family expert in that area.</p><p>In the end, it was good for J-son that he was away on a camping trip the night this was all discovered, as it gave a day and a half for his parents to cool down. It turns out he was goofing off in his mother’s classroom (YouTube videos, games) while he was supposed to be doing his school work. When the deadline came, he would quickly create a “corrupt file” to send to the teacher, and at that point actually begin work on the assignment.</p><p>J had him apologize to each of his teachers in person. As community service, she also had him create a video describing what he’d done and how to recognize it. She shared it with other teachers in her school district to help them recognize these situations in the future.</p><p>As for me, it’s obvious that the people who created this website don’t know what they are doing. No footprint or traces? Can’t recover the original? It would be easy to fix all that. Coming soon:</p><blockquote>www.REALLYcorruptmyfile.com</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=344b15c62dd6" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>