View Suspicious Documents Safely with Dangerzone

A standard piece of advice for staying safe online is to avoid opening attachments from people you don’t know or attachments that seem suspicious. It’s good advice, since PDFs and office documents can contain JavaScript and macros that present a security risk, or they could be maliciously crafted to take advantage of vulnerabilities in common apps to execute code on your computer.

But in the real world, unless the document is attached to a message that is obviously spam, it’s difficult to know whether you should be worried. If you could just look at the document, you might be able to tell, but how can you do that without opening it?

Enter Dangerzone, an open source app created by the nonprofit Freedom of the Press Foundation. The impetus for creating it came from journalists who need to review attachments from possibly untrustworthy sources while protecting themselves from hacking and retaliation from powerful corporate and government interests.

Dangerzone won’t tell you whether or not a document is safe. Instead, when you drop a document on its window, it creates a PDF image of the document that contains nothing of the original other than the visual representation of its pixels. Think of Dangerzone as a virtual photocopier—it makes a visual copy.

But Dangerzone is a highly sophisticated virtual photocopier, since it has to work with malicious documents without allowing them to cause harm. Behind the scenes, Dangerzone first creates a Linux container to keep the document away from your Mac. Within the container, it then creates a sandbox to protect the Linux kernel. Then it uses open source tools—LibreOffice and PyMuPDF—to convert the original document to a PDF, split that PDF into individual pages, and convert each page to RGB pixels—just colored dots. Then it quits the sandbox since the file has been sanitized, and if possible, it converts the RGB pixel data into a compressed, searchable PDF. Finally, it saves the PDF to the specified folder and archives the original file. You can process only one file or batch of files at a time to ensure that the entire secure conversion environment starts fresh each time.

Here are the document types that Dangerzone can convert into safe PDFs:

  • PDF (.pdf)
  • Microsoft Word (.docx, .doc)
  • Microsoft Excel (.xlsx, .xls)
  • Microsoft PowerPoint (.pptx, .ppt)
  • ODF Text (.odt)
  • ODF Spreadsheet (.ods)
  • ODF Presentation (.odp)
  • ODF Graphics (.odg)
  • EPUB (.epub)
  • JPEG (.jpg, .jpeg)
  • GIF (.gif)
  • PNG (.png)
  • SVG (.svg)
  • TIFF (.tif, .tiff)
  • Other image formats (.bmp, .pnm, .pbm, .ppm)

You won’t want to use Dangerzone on every document you receive in email. There’s no reason to fuss with it for attachments that come from people you know, in contexts where it makes sense that they’re sending you something. But if you get an attachment out of the blue that makes you think, “Why is this person sending me a document?” run the document through Dangerzone to make sure it’s safe.

(Featured image by iStock.com/shironosov)


Social Media: Got a suspicious attachment? Dangerzone converts potentially dangerous PDFs and Office docs into safe, pixel-only copies you can view without risk. Think of it as a virtual photocopier that strips any hidden malware, JavaScript, or macros.

Similar Posts

  • _Dear Friends,_

    Definitely some weird weather in Vermont. One day it is below 0 F and the next day it is in the 40’s and raining. It makes for some tricky driving as wet pavement can hide some black ice. Hopefully as we enter March there will be some snow because the ski areas and local merchants are suffering from the weird weather. We can take a lot of snow and freezing temperatures but this freeze/thaw cycle is just annoying.

    Apple has very strong hardware sales but their hidden gem may be the recurring revenue streams that they develop. Of course, we know about the 11 million+ subscribers to Apple Music that pay a monthly fee and the iCloud storage fees but there are other much larger streams that provide Apple with consistent revenue. The iPhone is a big one that has two parts to it – on the one hand, people want to upgrade to the latest iPhone and that upgrade business is huge. There is also Apple’s new financing of iPhones that spreads the cost of the iPhone over several months and allows much easier iPhone upgrades. The carriers are also offering these easy upgrade programs which enhances the recurring revenue stream. It is sort of like printing money.

    This week’s Kibbles & Bytes exclusive features the “**Apple Factory Reconditioned 21.5-inch iMac**”:http://www.smalldog.com/wag900002159 with 2.7GHz i5 processor, 8GB of ram and a big 1TB drive. We are bundling this with the AppleCare Protection Plan which extends Apple’s 1-year warranty to 3-years and extends your 90-days of free technical support from Apple from 90-days to 3-years. To complete this bundle because we always want you to have a backup of your personal data, we are including the Apple Factory Reconditioned 2TB Time Capsule. The Time Capsule is the combination of an Airport Extreme base station and 2TB hard drive. Because you are buying it at the same time as the iMac it is also covered for 3-years by AppleCare! Normally, if you bought this bundle new it would cost $1769, bought normally as Apple Refurbished it would be $1399 but this week for Kibbles & Bytes readers you can get this great deal on an iMac with Time Capsule and AppleCare for only “**$1299.99!**”:http://www.smalldog.com/wag900002159

  • Get Organized!

    I have tried a lot of apps over the years for keeping ideas organized, assigning tasks or just keeping track of my goals. The problem I’ve found with many of the organizational applications is that I don’t find them easy to access. If you’re not on your phone or at your computer, often these applications can’t be utilized easily or have widely varied interfaces depending on which device your using.

    “**Trello**”:https://trello.com/ has become my new favorite go-to app for keeping ideas and tasks organized. Trello is a free app with the ability to also pay for upgraded features for minimal fees. Why do I love Trello so much? It’s simple, I can easily use it on my computer, my iPhone or my iPad. There is an app for all three of my devices, and each version works seamlessly with the others. Working with several staff members in different departments here at Small Dog can make keeping track of tasks and to-do lists a bit of a challenge, but this simple application has really helped to streamline things.

    I easily and quickly create what they call “boards”, each board then allows you to create individual categories to which you can then add individual tasks. Within my lists I can upload photos, files, web links, assign due dates and add notes. Once I have created a board, I can also easily share that board with co-workers or whomever I choose to share them with. Anyone I have shared a board with can also be granted access to update and add to the boards, add notes or more files.

    A feature many of us have come to really rely on are the updates that you get from Trello notifying you that someone has made a change. I have found just one complaint thus far about the application. There appears to be no feature to mark a task as completed while still leaving it on your board. You can easily archive tasks and even entire boards, but I prefer to still be able to see those tasks while clearly seeming them marked as completed. However, all in all, I find this to be an invaluable app and one that I utilize all of the time. I have tried and do use google docs and google drive, and I’ve installed those on my devices as well, but for me nothing beats the ease and convenience of Trello.