Dangerzone: sequre your pdf, office documents, and images

Imatge
Àmbits Temàtics

Take poten­ti­ally dange­rous PDFs, office docu­ments, or images and convert them to a safe PDF.

 

Danger­zone works like this: You give it a docu­ment that you don’t know if you can trust (for exam­ple, an email atta­ch­ment). Inside of a sand­box, Danger­zone converts the docu­ment to a PDF (if it isn’t alre­ady one), and then converts the PDF into raw pixel data: a huge list of of RGB color values for each page. Then, in a sepa­rate sand­box, Danger­zone takes this pixel data and converts it back into a PDF.

Read more about Danger­zone in the blog post Danger­zone: Working With Suspi­ci­ous Docu­ments Without Getting Hacked.

 

Getting star­ted

You can also install Danger­zone for Mac using Home­brew: brew install—­cask danger­zone

 

Some featu­res

  • Sand­bo­xes don’t have network access, so if a mali­ci­ous docu­ment can compro­mise one, it can’t phone home
  • Danger­zone can opti­o­nally OCR the safe PDFs it crea­tes, so it will have a text layer again
  • Danger­zone compres­ses the safe PDF to reduce file size
  • After conver­ting, Danger­zone lets you open the safe PDF in the PDF viewer of your choice, which allows you to open PDFs and office docs in Danger­zone by default so you never acci­den­tally open a dange­rous docu­ment

Danger­zone can convert these types of docu­ment into safe PDFs:

  • PDF (.pdf)
  • Micro­soft Word (.docx, .doc)
  • Micro­soft Excel (.xlsx, .xls)
  • Micro­soft Power­Po­int (.pptx, .ppt)
  • ODF Text (.odt)
  • ODF Spre­ads­heet (.ods)
  • ODF Presen­ta­tion (.odp)
  • ODF Grap­hics (.odg)
  • Jpeg (.jpg, .jpeg)
  • GIF (.gif)
  • PNG (.png)
  • TIFF (.tif, .tiff)

Danger­zone was inspi­red by Qubes trus­ted PDF, but it works in non-Qubes opera­ting systems. It uses contain­ers as sand­bo­xes instead of virtual machi­nes (using Docker for macOS, Windows, and Debian/Ubuntu, and podman for Fedora).

Set up a deve­lop­ment envi­ron­ment by follo­wing these instruc­ti­ons.

The git repo­si­tory for the container is called danger­zone-converter.