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.
Metadata
Release files for gatekeeper-cdr 0.4.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| gatekeeper_cdr-0.4.7-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details for gatekeeper_cdr-0.4.7-cp38-abi3-win_amd64.whl |
| gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_34_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.34+ x86-64 | Details for gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_34_x86_64.whl |
| gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details for gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
| gatekeeper_cdr-0.4.7-cp38-abi3-macosx_11_0_arm64.whl | CPython 3.8 | abi3 | macOS 11.0+ ARM64 | Details for gatekeeper_cdr-0.4.7-cp38-abi3-macosx_11_0_arm64.whl |
| gatekeeper_cdr-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl | CPython 3.8 | abi3 | macOS 10.12+ x86-64 | Details for gatekeeper_cdr-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl |
Total release size: 8.2 MB
Release files / gatekeeper_cdr-0.4.7-cp38-abi3-win_amd64.whl
| Download URL | gatekeeper_cdr-0.4.7-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
e544e5fca972a599566d7832466a6b5d9db447f2c20248aaa78fc7348141ef83
|
|
BLAKE2b-256 checksum How to use checksums |
6173aff1acd37f8a06c40a1737ab28d56807c36ae595f99a9d8c20f9b3532036
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_34_x86_64.whl
| Download URL | gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | CPython 3.8 Linux glibc 2.34+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
ce2848d529f786c70faa47fd8f082541eee9200d2c27fcd1fb2ac40eb4a0de12
|
|
BLAKE2b-256 checksum How to use checksums |
d401be02bb17bd4cfe09abeb44f8f91c4033c1bb27df4381c704890cc5c3a4f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | gatekeeper_cdr-0.4.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.7 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
3b16b4c6b7ec8933bad1d06590fd5f675a217b61ac487fa4bd90ff595ad9821a
|
|
BLAKE2b-256 checksum How to use checksums |
3c907bcced59e7541687383f8171f9acb5d214d45ae81d8ac51bfd9f4ed2a383
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / gatekeeper_cdr-0.4.7-cp38-abi3-macosx_11_0_arm64.whl
| Download URL | gatekeeper_cdr-0.4.7-cp38-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
573dc7ee2a826b33af108186e4f2bd11762ce77f7925c5a9b957b783abecc47e
|
|
BLAKE2b-256 checksum How to use checksums |
cf2274fed2788a89e025010968b97c382342f6af4f52b5206d87e72f06bb261b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Release files / gatekeeper_cdr-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl
| Download URL | gatekeeper_cdr-0.4.7-cp38-abi3-macosx_10_12_x86_64.whl |
|---|---|
| Size | 1.6 MB |
| Tags | CPython 3.8 abi3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
cc22b2465791e708397bcaa892849203f70c78be134d8a9e98a1a7de5a2008af
|
|
BLAKE2b-256 checksum How to use checksums |
1a3537654abf6770df36896122b2000edec254e49ef61c45df8ebd3bac7c710b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Security for gatekeeper-cdr 0.4.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.