Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs
Find a file
Alex Pyrgiotis 3cf34e6182
Some checks failed
Build dev environments / Build dev-env (debian-bookworm) (push) Has been cancelled
Build dev environments / Build dev-env (debian-bullseye) (push) Has been cancelled
Build dev environments / Build dev-env (debian-trixie) (push) Has been cancelled
Build dev environments / Build dev-env (fedora-40) (push) Has been cancelled
Build dev environments / Build dev-env (fedora-41) (push) Has been cancelled
Build dev environments / Build dev-env (ubuntu-20.04) (push) Has been cancelled
Build dev environments / Build dev-env (ubuntu-22.04) (push) Has been cancelled
Build dev environments / Build dev-env (ubuntu-24.04) (push) Has been cancelled
Build dev environments / Build dev-env (ubuntu-24.10) (push) Has been cancelled
Build dev environments / build-container-image (push) Has been cancelled
Tests / run-lint (push) Has been cancelled
Tests / build-container-image (push) Has been cancelled
Tests / Download and cache Tesseract data (push) Has been cancelled
Tests / check-reproducibility (push) Has been cancelled
Tests / windows (push) Has been cancelled
Tests / macOS (arch64) (push) Has been cancelled
Tests / macOS (x86_64) (push) Has been cancelled
Tests / build-deb (debian bookworm) (push) Has been cancelled
Tests / build-deb (debian bullseye) (push) Has been cancelled
Tests / build-deb (debian trixie) (push) Has been cancelled
Tests / build-deb (ubuntu 20.04) (push) Has been cancelled
Tests / build-deb (ubuntu 22.04) (push) Has been cancelled
Tests / build-deb (ubuntu 24.04) (push) Has been cancelled
Tests / build-deb (ubuntu 24.10) (push) Has been cancelled
Tests / install-deb (debian bookworm) (push) Has been cancelled
Tests / install-deb (debian bullseye) (push) Has been cancelled
Tests / install-deb (debian trixie) (push) Has been cancelled
Tests / install-deb (ubuntu 20.04) (push) Has been cancelled
Tests / install-deb (ubuntu 22.04) (push) Has been cancelled
Tests / install-deb (ubuntu 24.04) (push) Has been cancelled
Tests / install-deb (ubuntu 24.10) (push) Has been cancelled
Tests / build-install-rpm (fedora 40) (push) Has been cancelled
Tests / build-install-rpm (fedora 41) (push) Has been cancelled
Tests / run tests (debian bookworm) (push) Has been cancelled
Tests / run tests (debian bullseye) (push) Has been cancelled
Tests / run tests (debian trixie) (push) Has been cancelled
Tests / run tests (fedora 40) (push) Has been cancelled
Tests / run tests (fedora 41) (push) Has been cancelled
Tests / run tests (ubuntu 20.04) (push) Has been cancelled
Tests / run tests (ubuntu 22.04) (push) Has been cancelled
Tests / run tests (ubuntu 24.04) (push) Has been cancelled
Tests / run tests (ubuntu 24.10) (push) Has been cancelled
Ruff fixes
2025-01-24 10:13:19 +02:00
.github ci: Add a CI job that enforces image reproducibility 2025-01-23 23:27:36 +02:00
assets Update screenshots (hamburger menu + capitalization) 2024-02-20 13:45:38 +00:00
dangerzone WIP: Symlink /usr 2025-01-24 09:12:14 +02:00
debian Rename vendor-pymupdf.py to debian-vendor-pymupdf.py 2025-01-23 23:25:43 +02:00
dev_scripts Ruff fixes 2025-01-24 10:13:19 +02:00
docs docs: Add design document for artifact reproducibility 2025-01-23 23:27:36 +02:00
install Allow setting a tag for the container image 2025-01-23 23:27:36 +02:00
qubes chore: Do not use fstrings without placeholders 2024-06-05 14:19:31 +02:00
share Bump version to 0.8.1 2024-12-24 18:11:17 +01:00
tests Run ruff format 2025-01-23 14:48:33 +01:00
.gitattributes Improve .gitattributes 2024-10-07 12:48:02 +03:00
.gitignore Automate a large portion of our release tasks 2024-12-10 15:27:20 +02:00
.gitmodules Add large test logic and documentation 2023-08-22 16:11:31 +01:00
.grype.yaml ci: Scan the latest image for CVEs 2025-01-23 23:27:36 +02:00
BUILD.md Render the Dockerfile from a template and some params 2025-01-23 23:27:34 +02:00
CHANGELOG.md Bump version to 0.8.1 2024-12-24 18:11:17 +01:00
Dockerfile WIP: Symlink /usr 2025-01-24 09:12:14 +02:00
Dockerfile.env Render the Dockerfile from a template and some params 2025-01-23 23:27:34 +02:00
Dockerfile.in WIP: Symlink /usr 2025-01-24 09:12:14 +02:00
dodo.py Allow using the container engine cache when building our image 2025-01-23 23:25:43 +02:00
INSTALL.md doc: update Debian Trixie installation instructions 2025-01-20 14:10:15 +01:00
LICENSE Replace MIT license with AGPLv3 2024-01-04 09:57:49 +00:00
Makefile Render the Dockerfile from a template and some params 2025-01-23 23:27:34 +02:00
poetry.lock Add jinja2-cli package dependency 2025-01-23 23:26:56 +02:00
pyproject.toml Add jinja2-cli package dependency 2025-01-23 23:26:56 +02:00
QA.md Update our release instructions 2024-12-10 11:29:00 +02:00
README.md Update links to the 0.8.1 release 2024-12-24 18:11:17 +01:00
RELEASE.md Update RELEASE.md 2025-01-23 23:27:36 +02:00
setup-windows.py Revert "Fix: Error with cx_freeze when building the windows executables" 2024-11-13 17:49:52 +02:00
setup.py chore(imports): remove useless imports 2024-06-05 14:19:30 +02:00
THIRD_PARTY_NOTICE Copy gVisor public key and a helper script in container helpers 2025-01-23 23:24:48 +02:00

Dangerzone

Take potentially dangerous PDFs, office documents, or images and convert them to a safe PDF.

Settings Converting

Dangerzone works like this: You give it a document that you don't know if you can trust (for example, an email attachment). Inside of a sandbox, Dangerzone converts the document to a PDF (if it isn't already one), and then converts the PDF into raw pixel data: a huge list of RGB color values for each page. Then, outside of the sandbox, Dangerzone takes this pixel data and converts it back into a PDF.

Read more about Dangerzone in the official site.

Getting started

Follow the instructions for each platform:

Some features

  • Sandboxes don't have network access, so if a malicious document can compromise one, it can't phone home
  • Sandboxes use gVisor, an application kernel written in Go, that implements a substantial portion of the Linux system call interface.
  • Dangerzone can optionally OCR the safe PDFs it creates, so it will have a text layer again
  • Dangerzone compresses the safe PDF to reduce file size
  • After converting, Dangerzone lets you open the safe PDF in the PDF viewer of your choice, which allows you to open PDFs and office docs in Dangerzone by default so you never accidentally open a dangerous document

Dangerzone can convert these types of document 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)
  • Hancom HWP (Hangul Word Processor) (.hwp, .hwpx)
  • EPUB (.epub)
  • Jpeg (.jpg, .jpeg)
  • GIF (.gif)
  • PNG (.png)
  • SVG (.svg)
  • other image formats (.bmp, .pnm, .pbm, .ppm)

Dangerzone was inspired by Qubes trusted PDF, but it works in non-Qubes operating systems. It uses containers as sandboxes instead of virtual machines (using Docker for macOS and Windows, and podman on Linux).

Set up a development environment by following these instructions.

License and Copyright

Licensed under the AGPLv3: https://opensource.org/licenses/agpl-3.0

Copyright (c) 2022-2024 Freedom of the Press Foundation and Dangerzone contributors Copyright (c) 2020-2021 First Look Media

See also

FAQ

Has Dangerzone received a security audit?

Yes, Dangerzone received its first security audit by Include Security in December 2023. The audit was generally favorable, as it didn't identify any high-risk findings, except for 3 low-risk and 7 informational findings.

"I'm experiencing an issue while using Dangerzone."

Dangerzone gets updates to improve its features and to fix problems. So, updating may be the simplest path to resolving the issue which brought you here. Here is how to update:

  1. Check which version of Dangerzone you are currently using: run Dangerzone, then look for a series of numbers to the right of the logo within the app. The format of the numbers will look similar to 0.4.1
  2. Now find the latest available version of Dangerzone: go to the download page. Look for the version number displayed. The number will be using the same format as in Step 1.
  3. Is the version on the Dangerzone download page higher than the version of your installed app? Go ahead and update.