Skip to content

StegoForge 1.5.0: working video embedding, hardened web UI, redesigned CLI

Latest

Choose a tag to compare

@Nour833 Nour833 released this 22 Oct 10:00

StegoForge 1.5.0

A correctness and security release. Several things that looked supported in 1.1.x did not work end to end (video embedding, decoy containers, batch encoding, the web UI's security checks). They do now, and the docs no longer claim more than the tool can do.

StegoForge CLI

Highlights

  • Video embedding works. video-dct and video-motion embed in the luma plane and write lossless H.264. Every output is decoded and checked before it is written. The files are large and must not be re-encoded.
  • Authenticated, method-bound encryption (v3 envelope). Argon2id + AES-256-GCM, with the method and the padding flag bound into the authenticated data. Decoding no longer guesses whether padding was used. Files written by 1.1.5 still open.
  • Decoy containers work. The decoy key could not open its own slot before. Each key now opens its own slot.
  • Batch encoding works (stegoforge batch, --jobs for parallel). It used to fail on every file.
  • Web UI redesigned and hardened. Anchored CORS (localhost.evil.com used to be accepted), Host allow-list against DNS rebinding, Origin check on POSTs, constant-time token compare, plaintext embeds only on an explicit tick-box, no server paths or exception text in responses, hostile file content escaped, fonts served locally (no Google Fonts request).
  • CLI redesigned. Compact aligned summaries, one detector table with an inconclusive state, errors on stderr with a hint and a stable code in --json, shell completion for bash/zsh/fish, stegoforge doctor, and a guided menu when you run stegoforge with no arguments.
  • Detectors recalibrated. Fewer false positives on clean system binaries (including BOLT-optimised interpreters), a head/tail check in chi-square, and the video detector now only reports payloads it can actually extract. Numbers are in docs/DETECTOR-EVAL.md; they are a smoke test, not a benchmark.
  • Windows output fixed. With piped or redirected output, Windows used a code page that cannot show ✓, and commands crashed with UnicodeEncodeError. The CLI now handles it.
  • No more downloading and running third-party binaries. core/sysmgr.py no longer fetches ffmpeg, and --offline is enforced.

Upgrading from 1.1.5

Files made by 1.1.5 Open with 1.5.0: lsb (depth 1-4), adaptive-lsb, fingerprint-lsb, alpha, dct, audio-lsb, unicode, pdf, docx, xlsx, elf, wet-paper, old decoy containers (real key). Checked by creating the files with the published 1.1.5 release.
Files made by 1.5.0 Do not open with 1.1.5. The envelope, the decoy layout and SKX3 key files are new.
keyx with a peer still on 1.1.5 Use stegoforge keyx complete --legacy-v1. Two upgraded peers use the new peer-bound key by default.
Embedding without a key Refused unless you pass --allow-plaintext.

Two problems already present in 1.1.5 are not fixed retroactively: some --depth 3 embeds were written with corrupted tail bits (1.1.5 cannot read them either), and the decoy key of a 1.1.5 decoy container never worked from the CLI.

Install

pipx install "stegoforge==1.5.0"          # CLI
pipx install "stegoforge[web]==1.5.0"     # CLI + web UI

A .deb and standalone binaries are attached below. ffmpeg is optional and only needed for MP3/FLAC/OGG (sudo apt install ffmpeg).

Known limitations

  • dct + wet paper survives the simulated recompression of 7 of 10 platform profiles. It fails for WhatsApp, Facebook and TikTok (JPEG quality about 80 and below).
  • palette (GIF / indexed PNG) cannot carry an encrypted payload: its capacity is a few bytes and the envelope is at least 50.
  • Wet-paper payloads still start with a fixed WETP header, so --no-magic does not hide them.
  • The bundled ONNX model is an ImageNet classifier, so the ml detector runs its heuristic fallback. Treat it as triage only (docs/MODEL-CARD.md).
  • Every detector can miss a payload. A clean result never proves a file is clean.
  • Python 3.10: supported, but Pillow's fixes for 24 image-decoder advisories (patched in 13.0.0) need Python 3.11+. On 3.10 you get Pillow 12.3.0. Use 3.11 or newer when you analyse files you do not trust.

Packaging notes (for downstream maintainers)

  • Removed from the requirements: pydub, python-docx, openpyxl (never imported). Added: lxml (was imported but undeclared). Web UI extra: flask, flask-cors.
  • The wheel now ships models/model_quantized.onnx and stegoforge_ops/schemas/.
  • Man page: docs/stegoforge.1. Shell completion: stegoforge completion bash|zsh|fish.
  • Pillow>=13.0.0 on Python 3.11+ (>=12.3.0 on 3.10). The CLI also runs on Typer 0.9, the declared minimum, so the .deb works against Ubuntu's own Python libraries.
  • Lock files (requirements.lock, requirements.hash.lock) are universal for Python 3.10+ and regenerated with scripts/compile_lock.sh.

Verification

431 tests pass on Python 3.10 (clean environment from the hashed lock), 3.12 and 3.14. The CI run on this exact commit is green, including a real apt install of the .deb on Ubuntu 24.04. Lint and type checks are clean, pip-audit reports no known vulnerabilities, and a real-browser run drives encode, download, decode and detect. The full changelog is in CHANGELOG.md.