Neural Ghost Protocol is a state-of-the-art steganography toolkit designed for secure data hiding with AI-resistant features. Unlike traditional cryptography that encrypts data, NGP hides data in plain sight within images using advanced LSB (Least Significant Bit) manipulation combined with adversarial noise injection.
- AES-256 Encryption: Optional password-based encryption before hiding
- Data Compression: zlib compression for larger messages
- Multi-Level Security: 3 security levels (Fast, Balanced, Maximum Stealth)
- Adaptive Noise: Smart noise injection based on image complexity
- Batch Processing: Process multiple images at once
- Verification Mode: Verify encoded data integrity
- Metadata Extraction: View image statistics and EXIF data
- Steganography Detection: Built-in detector to identify hidden data
- Shuffled pixel encoding for enhanced security
- Channel scattering for distributed data hiding
- Statistical analysis resistance
- AI/ML detector evasion capabilities
pip install -r requirements.txt
- Python 3.8+
- numpy >= 1.21.0
- opencv-python >= 4.5.0
- Pillow >= 9.0.0
- cryptography >= 36.0.0
python main.py --mode encode --img input.jpg --msg "Secret Message" --out output.pngpython main.py --mode encode --img input.jpg --msg "Secret" --pass "mypassword" --out secure.png
python main.py --mode decode --img secure.png
python main.py --mode decode --img secure.png --pass "mypassword"python main.py --mode batch-encode --folder ./images --msg "Hidden Data" --pass "key123" --recursive
python main.py --mode batch-decode --folder ./processed --pass "key123"python main.py --mode meta --img image.png
python main.py --mode verify --img suspicious_image.png
| Option | Description |
|---|---|
--mode |
Operation mode: encode, decode, batch-encode, batch-decode, meta, verify |
--img |
Input image path (single file mode) |
--msg |
Message to hide (encode mode only) |
--msg-file |
Read message from file (alternative to --msg) |
--out |
Output path (default: ghost_out.png) |
--pass |
Encryption password (AES-256) |
--level |
Security level: 1=Fast, 2=Balanced, 3=Maximum Stealth |
--compress |
Compress message before encoding |
--verify-out |
Verify output after encoding |
--folder |
Folder for batch operations |
--pattern |
File pattern for batch mode (default: *.png) |
--recursive |
Search recursively in batch mode |
--stats |
Show detailed statistics |
--noise-profile |
Adversarial noise: low, medium, high, adaptive |
- Minimal noise injection
- No pixel shuffling
- Best for quick operations
- Moderate noise injection
- Pixel shuffling enabled
- Channel scattering
- Good balance of speed and security
- High noise injection
- Full pixel shuffling
- Channel scattering
- Redundancy encoding
- Maximum resistance to detection
- Message Processing: Optional encryption and compression
- Binary Conversion: Text converted to binary stream
- Pixel Selection: Shuffled/random pixel selection (Level 2+)
- LSB Modification: Hide bits in least significant bits
- Noise Injection: Add adversarial perturbations
- Output: Save as PNG with lossless compression
python main.py --mode encode \ --img photo.jpg \ --msg "This is a very long secret message that needs maximum protection!" \ --pass "StrongPassword123!" \ --level 3 \ --compress \ --verify-out \ --stats \ --out protected.png
python main.py --mode batch-decode \ --folder /path/to/images \ --pass "password" \ --recursive \ --pattern "*.jpg"
This tool is provided for research and educational purposes only. The authors are not responsible for any misuse of this software. Always ensure you have permission to modify images and comply with local laws regarding data privacy and security.
MIT License - See LICENSE file for details
Contributions welcome! Please submit pull requests or open issues for bugs and feature requests.