# freedomofpress/dangerzone

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/freedomofpress-dangerzone).**

5,536 stars · 257 forks · Python · AGPL-3.0

## Links

- GitHub: https://github.com/freedomofpress/dangerzone
- Homepage: https://dangerzone.rocks
- awesome-repositories: https://awesome-repositories.com/repository/freedomofpress-dangerzone.md

## Description

Dangerzone is a security tool and content sanitizer that converts untrusted files into safe PDFs. It removes malicious content by rendering documents as raw pixels within a sandboxed environment and rebuilding them as new PDF files to strip executable scripts and hidden threats.

The project utilizes container-based sandboxing to isolate file processing from the host operating system. It is designed for air-gapped execution, allowing the sanitization process to operate on hardware without network connectivity to prevent malware from communicating with external servers.

To maintain document utility, the tool includes an optical character recognition process that restores searchable and selectable text layers to the pixel-based output. It also provides configuration options for specifying different container runtime engines to ensure environment compatibility.

## Tags

### Security & Cryptography

- [Container-Based Sandboxes](https://awesome-repositories.com/f/security-cryptography/security/infrastructure-and-hardware/infrastructure-system-hardening/execution-sandboxes/container-based-sandboxes.md) — Uses container-based sandboxing to isolate the rendering of untrusted files from the host operating system.
- [Air-Gapped Sanitizers](https://awesome-repositories.com/f/security-cryptography/content-sanitization/air-gapped-sanitizers.md) — Provides a secure file conversion process that operates entirely without network connectivity.
- [Malicious Content Removal](https://awesome-repositories.com/f/security-cryptography/malicious-content-removal.md) — Strips active threats from documents by transforming them into raw pixel data and rebuilding them as safe PDFs. ([source](https://cdn.jsdelivr.net/gh/freedomofpress/dangerzone@main/README.md))
- [Sandboxed Rendering](https://awesome-repositories.com/f/security-cryptography/security/infrastructure-and-hardware/infrastructure-system-hardening/execution-sandboxes/sandboxed-rendering.md) — Isolates the rendering process of risky files within a secure sandbox to protect the host system.

### Part of an Awesome List

- [Document Sanitization](https://awesome-repositories.com/f/awesome-lists/security/document-sanitization.md) — Strips malicious content by rendering documents as raw pixels and rebuilding them as safe PDFs.
- [General OSINT Tools](https://awesome-repositories.com/f/awesome-lists/devtools/general-osint-tools.md) — Take potentially dangerous PDFs, office documents, or images and convert them to safe PDFs

### Development Tools & Productivity

- [Air-Gapped Execution](https://awesome-repositories.com/f/development-tools-productivity/development-environment-management/development-environments/isolated-execution-environments/local-execution-environments/air-gapped-execution.md) — Processes and sanitizes documents on hardware completely isolated from network connectivity.

### Operating Systems & Systems Programming

- [Access-Controlled File Operations](https://awesome-repositories.com/f/operating-systems-systems-programming/file-security-descriptor-management/access-controlled-file-operations.md) — Ensures safe data handling by sanitizing files within hardware environments isolated from all networks. ([source](https://cdn.jsdelivr.net/gh/freedomofpress/dangerzone@main/README.md))

### System Administration & Monitoring

- [Server Compatibility Maintenance](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/service-and-infrastructure-management/service-maintenance/server-compatibility-maintenance.md) — Implements an execution environment that operates without network connectivity to isolate files from external command and control servers.

### Content Management & Publishing

- [Searchable PDF Generation](https://awesome-repositories.com/f/content-management-publishing/pdf-document-generation/searchable-pdf-generation.md) — Adds a hidden, searchable text layer to pixel-based PDF files using optical character recognition. ([source](https://cdn.jsdelivr.net/gh/freedomofpress/dangerzone@main/README.md))

### Graphics & Multimedia

- [OCR-Enhanced PDF Converters](https://awesome-repositories.com/f/graphics-multimedia/ocr-enhanced-pdf-converters.md) — Applies optical character recognition to pixel-based PDF renders to restore searchable and selectable text.
- [Optical Character Recognition](https://awesome-repositories.com/f/graphics-multimedia/optical-character-recognition.md) — Performs optical character recognition on sanitized pixel-based outputs to reconstruct a searchable text layer.
