PyPackerDetect 
Detect packers on PE files using heuristics and signatures.
A complete refactoring of this project to a Python package with a console script to detect whether an executable is packed.
pefile is used for PE parsing. peid is used as implementation of PEiD.
$ pip install pypackerdetect
$ pypackerdetect --help
[...]
usage examples:
- pypackerdetect program.exe
- pypackerdetect program.exe -b
- pypackerdetect program.exe --low-imports --unknown-sections # disable these two checks
- pypackerdetect program.exe --imports-threshold 5 --bad-sections-threshold 5
- pypackerdetect program.exe --peid-db-path user_db.txt --sections-json sections.json
Detection Mechanisms
- PEID signatures
- Known packer section names
- Entrypoint in non-standard section
- Threshold of non-standard sections reached
- Low number of imports
- Overlapping entrypoint sections
Related Projects
You may also like these:
- Awesome Executable Packing: A curated list of awesome resources related to executable packing.
- Bintropy: Analysis tool for estimating the likelihood that a binary contains compressed or encrypted bytes (inspired from this paper).
- Dataset of packed ELF files: Dataset of ELF samples packed with many different packers.
- Dataset of packed PE files: Dataset of PE samples packed with many different packers (fork of this repository).
- Docker Packing Box: Docker image gathering packers and tools for making datasets of packed executables.
- DSFF: Library implementing the DataSet File Format (DSFF).
- PEiD: Python implementation of the well-known Packed Executable iDentifier (PEiD).
- REMINDer: Packing detector using a simple heuristic (inspired from this paper).
Metadata
Release files for pypackerdetect 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pypackerdetect-1.2.1.tar.gz | 361.2 kB | With provenance | Details for pypackerdetect-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pypackerdetect-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pypackerdetect-1.2.1-py3-none-any.whl |
Total release size: 673.8 kB
Release files / pypackerdetect-1.2.1.tar.gz
| Download URL | pypackerdetect-1.2.1.tar.gz |
|---|---|
| Size | 361.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a80e11801f06d99959dcd09e1f2aa5de9ff51ecd16b45d80c927893cbef39845
|
|
BLAKE2b-256 checksum How to use checksums |
b521ee16cfac29c77850b1a56ad2f68c7497d7bdbdd60d72b39d1ff28f76366a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logRelease files / pypackerdetect-1.2.1-py3-none-any.whl
| Download URL | pypackerdetect-1.2.1-py3-none-any.whl |
|---|---|
| Size | 312.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6bebabbf596a07c11a13d2b6a0c8930bfc957e2b15f4f09739e264f67a6649c5
|
|
BLAKE2b-256 checksum How to use checksums |
fc659ca6a7f43750b7e59216a35ed924d214560b70355cc09ee952c451dac5ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logSecurity for pypackerdetect 1.2.1
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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for pypackerdetect-1.2.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 25, 2026.
Transparency logA 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.