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

  • Watch Out for Modern Tech Support Scams

    Although Apple’s products and services generally live up to Steve Jobs’s phrase “it just works,” problems do occur, opening the door to scams…

  • The Most Profit Ever in a Single Quarter

    Apple posted record earnings and profit for the holiday quarter disappointing those analysts that predicted less than stellar results. Of course, the realistic guidance for the next quarter sent Apple stock plummeting while those same analysts maintain a price target that is $40-50 higher than the current price of the stock. Okay, so Apple’s profit and revenue were all time records for the company but the remarkable tidbit is that no public corporation ever has posted that much profit in a single quarter. Let’s see how Apple did that.

    First of all, Apple sold 74.8 million iPhones in the quarter. Not too shabby and that revenue is nearly 70% of Apple’s total. The average sales price (ASP) for the iPhone was up to $691 which also led to slightly higher gross margin. To put that is some perspective that is an average of 34,000 iPhones sold per hour 24/7 for 13 weeks.

    They finished the quarter with about $215 billion in cash which represents about $39/share. Macs sales were down a bit at 5.3 million units and the iPad continues to do moderate in sales with sales dropping year on year from 21.4 million units to 16.1 million units.

    Currency “headwinds” have caused some of these results to be muted. With the exceptionally strong dollar it is more difficult to export US goods and sales suffer a bit. The Euro and British Pound were down double digits and the Canadian and Australian dollars were down 20% or more. It gets worse. The Russian Ruble is down by 50% and Brazilian Real is down 40%. Apple estimated that if it were not for these global currency fluctuations that their revenue would have been over $80 billion representing an 8% increase. But despite those headwinds, Apple posted their best quarter ever.

    Other high points were service revenue which was the highest ever at over $6 billion. Wow, $6 billion in just iTunes, App store and a few other things. That is more revenue that quite a few well known companies and a 24% growth year over year. Other products which include the Apple TV, Beats and Apple Watch also were strong with $4.5 Billion in sales.

    In another milestone that just points to the success of the services side of Apple’s business Tim Cook announced that they now calculate that there are more than 1 billion Apple devices in use worldwide which is up 25% year over year. That is simply incredible considering that there are only 7.4 billion people on the planet!

    What sent Apple stock down was Apple’s realistic prediction that iPhones sales in their 2nd fiscal quarter would decline year over year by as much as 15-20%. Last year’s 2nd quarter was strong because of supply issues that moved some revenue from the 1st to 2nd quarter and the impact of the global currency situation has caused some price adjustments. Apple remains very bullish on the iPhone market and pointed to the fact that in China over 50% of the iPhones sold were to people buying their first iPhone. Apple pointed out that the growth of the middle class in China is unprecedented with the middle class comprising about 50 million people in 2010 and now it is projected to be $500,000,000 by 2020.

    Even if Apple sells “only” the 40-45 million iPhones in this quarter that would still be more revenue that most companies earn overall in a single quarter. To put this in perspective, Apple books more revenue at strong margins, than Amazon, Facebook, Google or Microsoft generate from all of their operations.

    All in all the financial results that Apple announced were an incredible testament to the quality and innovation of Apple products and of a company doing things right. Congratulations to the entire Apple team!