Skip to main content

No project description provided

Project description

Gatekeeper CDR (Python)

This package provides native Python bindings to the Gatekeeper CDR core, a zero-trust Content Disarm and Reconstruction engine. It sanitizes potentially malicious files by deeply inspecting and rebuilding them from raw pixel data, effectively stripping away any steganography, macros, or hidden exploits.

Installation

pip install gatekeeper-cdr

(Note: Pre-built wheels are provided for Linux, macOS, and Windows. You do not need Rust installed to use this package).

Usage

import gatekeeper_cdr

# 1. Read a suspicious file
with open("suspicious.jpg", "rb") as f:
    raw_payload = f.read()

# 2. Detect the true format of the file without fully parsing it
try:
    fmt = gatekeeper_cdr.sniff_format(raw_payload)
    print(f"Detected Format: {fmt}") # "Jpeg", "Png", etc.
except Exception as e:
    print(f"Unknown or invalid format: {e}")

# 3. Disarm the file (returns a clean bytes object)
try:
    clean_payload = gatekeeper_cdr.disarm(raw_payload)
    with open("clean.png", "wb") as f:
        f.write(clean_payload)
    print("File successfully sanitized and saved as clean.png!")
except Exception as e:
    print(f"Failed to sanitize file: {e}")

Security

If the file is malformed, structurally invalid, or contains an unknown format, Gatekeeper will intentionally raise an Exception rather than attempting to process it. This default-deny stance ensures that only provably safe files make it into your application's storage.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gatekeeper_cdr-0.4.3-cp38-abi3-win_amd64.whl (1.4 MB view details)

Uploaded CPython 3.8+Windows x86-64

gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_34_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.34+ x86-64

gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.5 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

gatekeeper_cdr-0.4.3-cp38-abi3-macosx_11_0_arm64.whl (1.3 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

gatekeeper_cdr-0.4.3-cp38-abi3-macosx_10_12_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file gatekeeper_cdr-0.4.3-cp38-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for gatekeeper_cdr-0.4.3-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 a786353b2c234e01b838cd972736d19b1633bbd65c551fdbb26f2845e504bdcb
MD5 2f2bcd421b328fd8b08e65b2d0ce2d92
BLAKE2b-256 8cda246a6b21253e700d52dbc451a337aad22f9ef57cf62aea8dc7b0c627204a

See more details on using hashes here.

File details

Details for the file gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 e357cfb48a207c0d3560ef0a35b981ce8aff1e6e850b63ef35988a635edef608
MD5 c16ca7b4e32b3a3e9f787edc055f8989
BLAKE2b-256 3a42774d11e6c32b5601093e43a5d5b707269ee47c8598561121e4a12e1a1299

See more details on using hashes here.

File details

Details for the file gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for gatekeeper_cdr-0.4.3-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a12a4ab22bad6ee89f21e67d6e99950a789c0954a759bfee2efb496f18ba2661
MD5 e7c714b9e7e34d3aa8770cdd79db2c95
BLAKE2b-256 b7d6c8a3a67c4fd002f01eead70b4b0858ebdcf5eba1e6cfef2edcc6ad89ceba

See more details on using hashes here.

File details

Details for the file gatekeeper_cdr-0.4.3-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for gatekeeper_cdr-0.4.3-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c169c8dbfdcecb60e78eaa43a12db0c29ce1b1fe78c6482822bc2b7496b4661a
MD5 05eec8a1c6fa3771308dc3dac2ce5b3a
BLAKE2b-256 2e910b059441328c511333b506a590a98e82a6fa58aa36cbba2546b779d684d5

See more details on using hashes here.

File details

Details for the file gatekeeper_cdr-0.4.3-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for gatekeeper_cdr-0.4.3-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 43e31d2bdd169c1dbcd256d2c4191a5bee88d05351d3863f5bbacf47727a4736
MD5 164b30a9fd2ac6dd61059333ac3f9196
BLAKE2b-256 600c18d417b4a446d54cadb7ab563290a7ff2302f94b4a08fc0450538703f012

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page