The most complete open-source steganography toolkit
Project description
๐ก๏ธ StegoForge
The ultimate hybrid of steganography, digital forensics, and covert communications.
โก Quick Launch (Standalone Binaries)
StegoForge is a complex Python framework, but you shouldn't have to deal with broken environments when doing active forensics. We have compiled zero-dependency, native executables that automatically resolve their own AI and Media requirements.
Head over to the Releases Page and download the binary for your OS.
- No
pip installrequired. - No
PATHconfigurations. - Just execute it.
๐ Quick Start in 30 Seconds
# 1. Hide a file inside an image (AES-256-GCM encrypted, auto-method)
stegoforge encode -c photo.png -p secret.pdf -k "my-pass"
# 2. Retrieve the hidden file
stegoforge decode -f photo_stego.png -k "my-pass"
# 3. CTF one-click forensic dump on any suspicious file
stegoforge ctf -f suspicious.mp3
# 4. Compare original vs stego โ pixel heatmap
stegoforge diff -c photo.png -s photo_stego.png
# 5. Batch embed a secret into every carrier in a folder
stegoforge batch -d ./carriers/ -p secret.txt -k "my-pass"
# 6. Check capacity and stealth score of a carrier
stegoforge capacity -c photo.png --depth 2
# 7. Simulate Twitter recompression and test payload survives
stegoforge encode -c photo.png -p secret.txt -k "my-pass" --target twitter --test-survival
# 8. Launch the local web UI (no data ever leaves your machine)
stegoforge web
# Install tab-completion (bash)
eval "$(stegoforge completion bash)"
# Use env var to avoid key in shell history
export STEGOFORGE_KEY="my-pass"
stegoforge decode -f stego.png # key read from env
๐ง What is StegoForge?
The Concept in Plain English: Steganography is the art of hiding secrets in plain sight. StegoForge takes your secret message or file and mathematically weaves it into the pixels of a normal photo, the soundwaves of a song, or the frames of a video. To the rest of the world, it just looks like a regular meme or MP3 track. To you, it's an invisible vault.
StegoForge is a modular, enterprise-grade steganography toolkit engineered for the full lifecycle of covert data: from embedding payloads into images, audio, video, and active network protocols, to deploying machine-learning steganalysis to forcibly extract anomalies from suspicious carrier files.
Built for security researchers, CTF players, and digital forensics practitioners, it doesn't try to be one thing. It executes the entire forensic spectrum seamlessly.
$ stegoforge encode --carrier cover.png --payload secret.txt --key "mypassword" --method lsb
[+] Payload encrypted with AES-256-GCM
[+] Embedded 2048 bits across RGB channels (1-bit depth)
[+] Output: cover_stego.png
[+] Statistical profile: indistinguishable from baseline (chiยฒ = 0.021)
$ stegoforge ctf --file suspicious.mp3
[*] Running all detectors on suspicious.mp3 ...
[โญ] Chi-square LSB anomaly SKIPPED
[โญ] RS analysis SKIPPED
[!] Blind extractor found payload at: audio-lsb, depth=1, AES encrypted blob
[+] Extracted 412 bytes โ saved to extracted_payload.bin
Feature Overview
stegoforge/
โโโ Image Carriers PNG ยท JPEG ยท BMP ยท GIF ยท WebP
โ โโโ LSB / Adaptive LSB 1โ4 bit depth + WOW-style content-aware cost ordering
โ โโโ DCT + JND-safe cap JPEG frequency-domain embedding + Watson-style perceptual budget
โ โโโ Fingerprint LSB PRNU-aware embedding mode
โ โโโ Alpha / Palette Transparency and indexed-color channels
โ
โโโ Video Carriers MP4 ยท WebM
โ โโโ Video DCT Keyframe embedding with block-cost ranking
โ โโโ Video Motion Temporal+texture masked block embedding (MP4)
โ
โโโ Audio Carriers WAV ยท FLAC ยท MP3 ยท OGG
โ โโโ Sample LSB Psychoacoustic-style cost-ordered PCM LSB
โ โโโ Phase coding Segment-phase encoding
โ โโโ Spectrogram art Visual payloads in spectrum domain
โ
โโโ Document Carriers TXT ยท PDF ยท DOCX ยท XLSX
โ โโโ Unicode whitespace Adaptive insertion-point ranking (ZWSP/ZWNJ/ZWJ)
โ โโโ Linguistic mode Key-aware synonym-channel text steganography
โ โโโ PDF streams Object/stream/metadata injection
โ โโโ Office XML Custom XML parts and streams
โ
โโโ Binary Carriers ELF ยท PE/EXE/DLL (CLI)
โ โโโ ELF slack/notes 2-bit masked region-cost embedding
โ โโโ PE slack/overlay 2-bit masked region-cost embedding
โ
โโโ Network Covert Channels (CLI)
โ โโโ TCP field channels ip_id, tcp_seq, ttl
โ โโโ Timing channel Inter-packet delay encoding
โ
โโโ Crypto + Survivability
โ โโโ AES-256-GCM + Argon2
โ โโโ Decoy mode Dual-payload plausible deniability
โ โโโ Wet-paper wrapping Reed-Solomon resilience wrapper
โ โโโ Platform profiles Social-media-aware method selection/simulation
โ
โโโ Interfaces
โโโ CLI Hybrid-first grouped method selection + full command mode
โโโ Web UI (Flask) Grouped method pills, hybrid badges, local SSE streaming
โโโ CTF mode One command, all relevant detectors, ranked report
๐ป Developer Installation
If you wish to build StegoForge from source or utilize the Python APIs natively:
git clone https://github.com/Nour833/StegoForge.git
cd StegoForge
pip install -r requirements.txt
pip install -r requirements-web.txt
pip install -e .
Fire up the Glassmorphism Web App instantly:
stegoforge web # Automatically deploys at http://localhost:5000
Note on ML Architecture: StegoForge implements true Machine Learning steganalysis. The very first time you boot the engine, it will silently interface with HuggingFace to download the ONNX CNN weights directly into your
~/.stegoforge/modelscache.
๐จ Interactive Menu (Recommended for Beginners)
Don't want to memorize terminal commands? Just run the tool on its own to access the interactive CLI!
stegoforge
The menu features a cinematic startup sequence, grouped method selection, and guided transitions between Encoding, Decoding, and Forensics.
Pro-Tips for Automation:
STEGOFORGE_FAST_UI=1 stegoforgeskips animations for rapid, zero-delay bootups.STEGOFORGE_UI_STAGE_DELAY=0.45 stegoforgefine-tunes the pacing of the visual display.
๐ป Advanced Command Line Interface
If you prefer raw terminal throughput, the CLI supports hyper-specific routing for all modules.
๐ฅท 1. Payload Encoding
# Basic LSB into PNG
stegoforge encode -c photo.png -p message.txt -k "passphrase"
# Stealth JPEG DCT with custom bit depth
stegoforge encode -c photo.jpg -p secret.bin -k "key" --method dct
# Spectrogram Art โ Hide a visual image inside playable audio
stegoforge encode -c music.wav -p logo.png --method spectrogram
# Decoy mode โ Generates two keys, hiding two payloads in one file for plausible deniability
stegoforge encode -c photo.png -p real_secret.txt -k "realkey" \
--decoy decoy_message.txt --decoy-key "duresskey"
๐ 2. Payload Decoding
stegoforge decode -f photo_stego.png -k "passphrase"
stegoforge decode -f music_stego.wav -k "key" --method phase
๐ต๏ธ 3. Blind Forensics & CTF Mode (Zero-Knowledge)
# Run the complete heuristic gauntlet natively (Highly Recommended)
stegoforge ctf -f suspicious.png
# Targeted ML / Statistical Detection
stegoforge detect --chi2 -f image.png
stegoforge detect --rs -f image.png
๐ฐ๏ธ 4. Covert Protocols (Dead Drops)
# Embed a payload and securely POST it as a disguised HTTP packet
stegoforge deadrop post -c cover.png -p msg.txt -k "shared_key"
# Monitor a remote image URL for an incoming payload change
stegoforge deadrop monitor --url "https://example.com/image.png" -k "shared_key" --interval 20
๐ฌ Detection Methods Overview
Click to expand full list of Forensic Capabilities
| Method | Target File | What It Automatically Detects |
|---|---|---|
| Chi-square | Images | LSB frequency distribution anomalies |
| RS Analysis | Images | Payload capacity estimation without a key |
| ML Steganalysis | Images | Learned stego likelihood from HuggingFace ONNX CNN models |
| Fingerprint | Images | PRNU inconsistency + in-browser tamper heatmaps |
| Video anomaly | MP4/WebM | Keyframe DCT-distribution anomalies |
| Audio anomaly | WAV/FLAC/MP3 | Sample bit-plane and statistical irregularities |
| PDF anomaly | Suspicious /EmbeddedFile, JS, or tail entropy |
|
| Blind extractor | Multimedia | Auto-tries common bit-patterns and AES-magic headers |
๐ System Architecture
Click to explore StegoForge's Module Tree
stegoforge/
โโโ core/
โ โโโ image/ # LSB, Adaptive WOW, DCT, PRNU Fingerprinting, Palette
โ โโโ audio/ # PCM LSB, Phase-Coding, Spectrogram visual embedding
โ โโโ video/ # Keyframe block-cost, motion temporal masks
โ โโโ document/ # PDF Streams, Office XML, Unicode Zero-Width
โ โโโ network/ # Timing channels, TCP field covert channels
โ โโโ crypto/ # AES-256-GCM, Decoy Deniability, Argon2 KDF
โ โโโ binary/ # ELF / PE Slack space embedding
โโโ detect/ # Statistical analysis, HuggingFace ONNX CNNs, Brute-forcing
โโโ protocol/ # HTTP Dead Drops, X25519 Stego Key Exchange
โโโ web/ # High-performance Flask dashboard & Server-Sent Events
๐ Supported Capabilities Matrix
| Carrier Format | Injection Method | Extraction Status | Forensic Blind Detection |
|---|---|---|---|
| PNG | โ LSB, Alpha, Palette | โ Supported | โ Supported |
| JPEG | โ DCT | โ Supported | โ Supported |
| MP4 | โ Video DCT, Motion | โ Supported | โ Supported |
| WAV / MP3 | โ Sample, Phase, Spectro | โ Supported | โ Supported |
| โ Object/Stream | โ Supported | โ Supported | |
| Office XML | โ XML Streams | โ Supported | โ Supported |
| ELF / PE | โ Slack Space / Header | โ Supported | โ Supported |
Social survivability targets currently supported via Reed-Solomon wrapping: twitter, instagram, telegram, discord, whatsapp, signal.
โ๏ธ Legal Disclaimer & Contributing
Strictly Educational Disclaimer: StegoForge was engineered strictly for digital forensics research, Capture The Flag (CTF) competitions, and lawful offensive security testing. Concealing illegal content, orchestrating unauthorized data exfiltration, or attempting to evade lawful surveillance is universally illegal. The author accepts zero liability for any misuse of this technology.
Contributing:
Pull requests are heavily welcomed. Please ensure new encoding methods implement the BaseEncoder interface and contain robust PyTest coverage.
If you find StegoForge useful, educational, or just plain cool, consider leaving a โญ!
Report a Bug โข Request a Feature
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stegoforge-1.1.4.tar.gz.
File metadata
- Download URL: stegoforge-1.1.4.tar.gz
- Upload date:
- Size: 2.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cc8b085b2fa3085307c4ba4432dbd2432007fcfe65c49b8bd53b89a82bfba065
|
|
| MD5 |
725a9b624349b9e41159ee423b807e77
|
|
| BLAKE2b-256 |
66dbc023a674e02aad80633c5ec796956614eeebda348d391d5c9b9dcba42320
|
File details
Details for the file stegoforge-1.1.4-py3-none-any.whl.
File metadata
- Download URL: stegoforge-1.1.4-py3-none-any.whl
- Upload date:
- Size: 181.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d63c13f87a589af507b5a4d48511722e3fb1a030d43a50d2dea47f1f832aff46
|
|
| MD5 |
6edf104c60cbee5c445146d742c91af8
|
|
| BLAKE2b-256 |
018f77a9166bc66ad7f6b8e9bb1f7c1ae39387be7c239d87c040a9d8b57cd9e2
|