Universal Python Code Obfuscator & VM Loader
This repo proposes using an obfuscation and encryption approach for Python code.
Understanding Python Bytecode Vulnerabilities
Structural Transparency
- Preservation of function signatures and class hierarchies
- Retention of original control flow patterns
- Maintained symbol references and name bindings
Decompilation Vulnerabilities
- Deterministic bytecode generation patterns
- Preserved type information and annotations
- Recoverable import hierarchies
Why PyE?
Standard Python bytecode (.pyc files) is easily decompilable due to several inherent limitations:
- Multi-layered protection strategy
- Advanced encryption techniques
- Custom execution environment
Inspiration
Common Vulnerabilities in Open Source AI packages:
- Easily bypassed safety checks
- Modifiable content filters
- Exposed prompt sanitization
Critical Protection Needs
- Model interaction guardrails
- Input/output filtering logic
- Usage tracking mechanisms
- Security parameter preservation
Installation & Usage
Installation
pip install pye-extension
Basic Usage
Compile your sensitive Python file:
pyehandler compile your_script.py
Limitations
- While significantly more secure than .pyc, no protection is unbreakable. DO NOTE THIS IS EXTREMELY IMPORTANT
- Performance may be slower
- Debug information is limited in protected modules
License
Proprietary - All Rights Reserved Copyright (c) 2024 oha
Metadata
Release files for pye-extension 0.1.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 | |
|---|---|---|---|---|
| pye_extension-0.1.1.tar.gz | 3.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pye_extension-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.7 kB
Release files / pye_extension-0.1.1.tar.gz
| Download URL | pye_extension-0.1.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c890c9d4fe37516a2f648a55dd0b9c81a70fb46fbd2e0d1fc49181289c964b61
|
|
BLAKE2b-256 checksum How to use checksums |
68613d7ef708217bf2e53e788e4e90acdb7bb1904eac04b658e8afcb5fc01f7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.9
|
Release files / pye_extension-0.1.1-py3-none-any.whl
| Download URL | pye_extension-0.1.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63a0de722e8b83604ebc80506eb97d9d42f8040d5f7538d80cf2c4cf8a6d4bbb
|
|
BLAKE2b-256 checksum How to use checksums |
f796497866cbfadaef49378ea917d62fc4f4ecb6351fb2680ca7c9532e97eb9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.9
|
Security for pye-extension 0.1.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.
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.