Skip to content

feat(neostego): add NeoStego, steganography and watermarking (io.github.ElCruncharino.NeoStego) - #1005

Merged
jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github.ElCruncharino.NeoStego
Nov 6, 2026
Merged

jing2uo merged 1 commit into
flatpark:mainfrom
rhgKc2yp:add/io.github.ElCruncharino.NeoStego

Conversation

@rhgKc2yp

@rhgKc2yp rhgKc2yp commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Add NeoStego (io.github.ElCruncharino.NeoStego), a desktop application for hiding files in images and WAV audio and embedding invisible watermarks.

Packaging

Fetch the official neostego_1.3.1_amd64.deb from ElCruncharino/neostego at install time, pinned by SHA-256 and size. Preserve its complete jpackage bundle and bundled Java runtime. Use Freedesktop 26.08 on x86_64. The resolver tracks the latest stable Linux amd64 Debian release. Export the upstream icon, a desktop launcher with the measured window class, and upstream's classic-mode desktop action. No upstream approval is claimed.

Sandbox

X11 and IPC support the Java desktop interfaces; DRI supports Compose rendering. Documents and Pictures support input files and saved results. Persist .java privately for Compose preferences; core preferences use the redirected XDG configuration directory. Music, Downloads and other folders are opt-in overrides documented in the metainfo, including reset instructions. No network, audio playback or host-command permission is granted.

Tested

  • Descriptor parsing/audit, AppStream validation, shell syntax and live update resolution passed. The downloaded Debian payload matches GitHub's published SHA-256 and size.
  • Final check-apply-extra.sh passed offline as uid 0 without capabilities. Signed local repository build/install passed; final metadata was installed using flatpak update without uninstalling.
  • Fresh profile launch and restart rendered on private Xwayland. The measured default WM_CLASS is com-elcruncharino-neostego-compose-MainKt, matching the desktop entry. The classic interface also starts and draws.
  • The user selected the message, cover and output through the real desktop portal. GUI Adaptive embedding with AES128 saved a PNG; CLI extraction recovered the exact original payload bytes.
  • CLI encrypted round trips with Adaptive PNG, RandomLSBMatch PNG and WavLSB audio recovered byte-identical payloads. DWTSVD signature generation, embedding and verification returned correlation 1.0 for the marked image and 0.0 for the original.
  • Changed the theme to Dark in the GUI, stopped the app, updated the local package, restarted and visually confirmed the setting persisted under the app-private Java preferences.
  • Home and desktop/autostart entry listing diffs were empty. No filtered bus-name ownership requests. A second launch creates a second window; upstream does not enforce a single instance. No tray or media-player functionality is advertised.

Not tested: native hardware GPU acceleration (the private display uses Skiko's software fallback), screen-reader accessibility, every algorithm/format, split/batch workflows or watermark robustness after image transformations. Linux aarch64 is not listed because this release has no Linux arm64 artifact.

Flathub and demand

User-requested packaging. Name search in the configured Flatpak catalog and Flathub web/API search found no NeoStego listing; the appstream endpoint returns 404. GitHub issue searches found no prior Flatpak request in upstream or NeoStego submission in flathub/flathub.

Test fixtures, screenshots, logs, helper scripts, local repository, app profile and installed application have been retained at the user's request.

Prepared with OpenAI Codex

Thanks!

@jing2uo

jing2uo commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Review: NeoStego (io.github.ElCruncharino.NeoStego)

Reviewed at head a619d679 against docs/reviewers/review-runbook.md. This is static review only: no build command, resolver, apply_extra, maintainer script or app was run. pr-checks has not run yet: run 42108945430 is action_required, waiting for a maintainer to approve the workflow.

Recommendation: PASS, once pr-checks is approved and green. One question about the testing record (3.10) and a few non-blocking nits at the end.

# Phase Check Tier Verdict Evidence
0 Safety Static-only; artifacts handled in an isolated dir ★ ✅ The .deb and the Temurin JDK used for comparison were fetched as bytes into a scratch dir. Entries listed before extraction, extracted with --no-same-owner --no-same-permissions. Nothing in them executed, and the maintainer scripts were only read
1.1 Scope Classification ★ ✅ New app: 8 files, all under registry/io.github.ElCruncharino.NeoStego/ (+178/−0)
1.2 Scope High-scrutiny surface ★ ✅ No .github/, scripts/, config/ or existing resolver touched. The resolver is in the new app dir
2.1 Provenance Submitter account ★ ✅ rhgKc2yp: account from 2026-10-22, 9 public repos, no followers, no profile. New account, but a record here: 23 PRs, 19 merged, 4 open. Not the upstream author
2.2 Provenance Source repo ★ ⚠️ ElCruncharino/neostego: created 2026-06-16, GPL-2.0, 4★, 0 forks, last push 2026-11-03, dependabot active. Small, but corroborated: owner ElCruncharino is from 2020-01 (24 repos, name Nick Haghiri, blog haghiri.net), the same name and Homepage as the .deb's control. The README presents it as a fork of OpenStego by Samir Vaidya, and the Java sources keep the OpenStego headers. 12 releases since 2026-06-16, all published by the Release workflow
2.3 Provenance Commit identity ★ ✅ One commit, rhgKc2yp <[email protected]>, matching the account
2.4 Provenance Timeline ★ ✅ v1.3.1 was published 2026-09-14 14:20 UTC by github-actions[bot] (Release run 34854474279, success, on tag commit caa1db73). The PR was opened 2026-11-05, almost two months later, by an unrelated account
2.5 Provenance Trust tier ★ ✅ unknown-but-plausible (new account with a merged track record here; small but real upstream)
2.6 Provenance Artifact tier ★ ✅ Tier 1: open source (GPL-2.0), official upstream jpackage .deb
3.1 Manifest Source types ★ ✅ One extra-data (sha256 + size: 114300532, x86_64-only). The rest are local file sources. No git, no archive
3.1b Manifest Nothing remote built into /app ★ ✅ buildsystem: simple only installs the 5 in-repo files. The .deb is extra-data, so it never enters the ref
3.2 Manifest finish-args escape perms ★ ✅ None. ipc, x11, dri, xdg-pictures, xdg-documents, --persist=.java, each commented. No network, no audio, no bus names
3.3 Manifest policy: honest ★ ✅ proprietary: false (GPL-2.0). dangerous_permissions: [] is correct, since none is used
3.4 Manifest build-commands / injected code ★ ✅ Install-only. The wrapper execs /app/extra/launcher, a symlink to upstream's jpackage launcher. No env vars, no LD_PRELOAD, no patch. apply_extra moves the /opt/neostego tree whole
3.4b Manifest packaging: declarations ★ ✅ None needed: nothing injected, no host commands, no sandbox switched off
3.5 Manifest Source URLs genuine ★ ✅ github.com/ElCruncharino/neostego/releases/download/v1.3.1/neostego_1.3.1_amd64.deb
3.6 Manifest App id matches vendor ★ ✅ io.github.ElCruncharino.* is the upstream owner's GitHub namespace. Upstream ships no Flatpak of its own. The metainfo says it is a community package of the official release
3.7 Manifest update.command ★ ✅ ./resolve-update.sh
3.8 Manifest Download host ★ ✅ Upstream's GitHub releases, uploaded by github-actions[bot] in upstream's repo, not the submitter
3.9 Manifest Optional caps opt-in ★ ✅ Only Pictures and Documents are granted, which covers cover images and output. Music, Downloads and arbitrary folders are flatpak override lines in the metainfo, with --reset to undo
3.10 Manifest Testing record ★ ⚠️ The PR body lists what passed (descriptor/AppStream checks, check-apply-extra.sh as uid 0 without caps, signed local repo install and flatpak update, fresh-profile launch, classic mode, WM_CLASS, GUI embed + CLI round trips for Adaptive/RandomLSBMatch/WavLSB/DWTSVD, theme persisting across an update, home/autostart diff) and what wasn't (GPU, screen reader, every algorithm, batch, aarch64). One claim doesn't match the artifact: "selected the message, cover and output through the real desktop portal". StegoKt.pickFiles runs zenity/kdialog through ProcessBuilder and falls back to Swing JFileChooser. Neither binary is in the Freedesktop runtime, and nothing in the app jars calls org.freedesktop.portal.FileChooser, which is also why the manifest needs the Pictures/Documents grants. Please say which dialog you actually saw
4.1 Runtime No fetch-and-exec ★ ✅ No network permission. The only processes spawned are gdbus/gsettings for dark-mode detection (SystemTheme, reading org.freedesktop.portal.Settings) and zenity/kdialog for file dialogs. No updater, no class loading from outside the bundle (URLClassLoader/defineClass absent)
4.2 Runtime Resolver as code ★ ✅ Reads releases/latest of the hard-coded ElCruncharino/neostego (optionally with GITHUB_TOKEN; latest already skips drafts and prereleases). Requires exactly one asset matching ^neostego_[0-9][0-9A-Za-z.+~-]*_amd64\.deb$, else error. Prints JSON via jq, no eval, no writes. The URL is the asset's browser_download_url, so it stays on GitHub release storage. CI computes the sha256
4.3 Runtime Network × filesystem ★ ✅ No --share=network, so the two folder grants can't be sent anywhere. URLs in the app jars are the project homepage, openstego.com, a watermarking reference page and the SVG namespace. No IP literals
5.1 Artifact sha256 == pin ★ ✅ 0c801451…cd0d29056, 114300532 bytes, equal to GitHub's asset digest and size
5.2 Artifact Inspected per type ★ ✅ .deb: debian-binary, control.tar.zst, data.tar.zst. Data: 410 entries, all root/root, all under ./opt/neostego/: 73 dirs, 184 files, 153 symlinks. Every symlink is runtime/legal/<module>/{LICENSE,ASSEMBLY_EXCEPTION,ADDITIONAL_LICENSE_INFO} -> ../java.base/…, inside the tree. No .., no absolute paths, no setuid/setgid. Control has preinst/postinst/prerm/postrm. They're jpackage templates: postinst runs xdg-desktop-menu install, links /usr/bin/neostego, copies the icon and refreshes caches. prerm undoes the menu entry. preinst/postrm are no-ops. apply_extra only extracts data.tar*, so none of them runs
5.3 Artifact Open-source: nothing injected 1 ✅ The launcher, its NeoStego.cfg (com.elcruncharino.neostego.compose.MainKt, the jar classpath, -Djpackage.app-version=1.3.1 -Dsun.java2d.xrender=true) and all jars run unmodified. The SVG icon is byte-identical to the .deb's lib/app/neostego.svg (sha256 dfbe28e0…669bac1). The desktop file is upstream's neostego-NeoStego.desktop with Exec/Icon renamed for the sandbox, a rewritten Comment, Security added to Categories, StartupWMClass added and the empty MimeType= dropped. The --classic action is kept
5.4 Artifact Shipped == official ★ ✅ apply_extra.sh pipes data.tar* into bsdtar --no-same-owner, finds the launcher from upstream's own .desktop Exec=, checks that the launcher, the .cfg and libjvm.so exist, moves opt/neostego to /app/extra/neostego, adds a launcher symlink beside it and deletes the .deb. Nothing inside the tree is rewritten
5.5 Artifact Bundled runtime vs upstream ★ ✅ jlink'd Temurin 25.0.4.1+1 (release: JAVA_VERSION="25.0.4.1"; libjvm: "Eclipse Adoptium", built 2026-08-18; matches upstream's release.yml using actions/setup-java distribution: temurin, JDK 25 for jpackage). Against Adoptium's OpenJDK25U-jdk_x64_linux_hotspot_25.0.4.1_1.tar.gz, all 40 native files in lib/runtime are byte-identical (cmp). The jpackage launcher bin/NeoStego and lib/libapplauncher.so occur byte-for-byte inside that JDK's lib/modules. All 58 third-party jars in lib/app match their published .jar.sha1: 43 on Maven Central (Compose Multiplatform, Kotlin/kotlinx, Skiko, FlatLaf, TwelveMonkeys, JSVG, picocli, jspecify, org.jetbrains.runtime:jbr-api; library-desktop-1.11.1.jar is org.jetbrains.compose.components:components-resources-desktop:1.11.1) and 15 on Google Maven (androidx annotation/collection/arch-core/lifecycle/navigationevent/compose-runtime). None differs
5.6 Artifact IOC scan ★ ✅ No hits for xmrig, stratum+, /dev/tcp, nc -e, bash -i, crontab, .bashrc, .profile, autostart, systemctl, LD_PRELOAD in the launcher, the jars or the 197 classes of the three app jars. All 42 ELF files in the tree are accounted for by 5.5. The only RPATH is $ORIGIN on 36 JDK libraries, identical to Temurin's. Natives packed inside jars (libflatlaf-*, flatlaf-*.dll/.dylib, libskiko-linux-x64.so) come with jars that match Maven (5.5)
6.1 Compliance Purpose ★ ✅ Steganography and watermarking tool, a modern fork of OpenStego. Legal, general-purpose and long distributed in mainstream distros (OpenStego, steghide). GPL-2.0 allows redistribution, and extra-data keeps the bytes off FlatPark's storage anyway
6.2 Compliance Non-FOSS not a reason ★ ➖ Open source
7.1 Verdict Overall ★ ✅ PASS (after pr-checks is approved and passes)
7.2 Verdict Hard-fail triggers ★ ✅ None
7.3 Verdict Recommends only ★ ✅ A maintainer approves the workflow run and merges

Files read

  • io.github.ElCruncharino.NeoStego.yml: finish-args and their comments, the one module, the managed extra-data block. Same layout as io.github.simonschubert.Kai, the other Compose/jpackage app (x11 + dri, --persist=.java, wrapper execs the jpackage launcher).
  • flatpark.yml: x86_64-only, update.command, policy:.
  • apply_extra.sh: see 5.4. Fails loudly if the .deb, the upstream desktop entry, the launcher, the .cfg or libjvm.so is missing, or if Exec= isn't under /opt/*/bin/.
  • neostego-wrapper: a single exec /app/extra/launcher "$@".
  • resolve-update.sh: see 4.2.
  • io.github.ElCruncharino.NeoStego.desktop, .svg: diffed against the .deb (5.3).
  • io.github.ElCruncharino.NeoStego.metainfo.xml: GPL-2.0-only, community-package paragraph, override list, homepage upstream, bug tracker FlatPark, one screenshot (resolves, 200), release 1.3.1 dated 2026-09-14, matching the GitHub release.

Reproduce

curl -fsSLo neostego.deb https://github.com/ElCruncharino/neostego/releases/download/v1.3.1/neostego_1.3.1_amd64.deb
sha256sum neostego.deb; stat -c %s neostego.deb            # 0c801451…, 114300532
bsdtar -tvf neostego.deb                                     # debian-binary control.tar.zst data.tar.zst
bsdtar -xOf neostego.deb 'control.tar*' | bsdtar -tvf -      # control + 4 maintainer scripts (read, not run)
bsdtar -xOf neostego.deb 'data.tar*' | bsdtar -tvf - > data.lst
grep '^l' data.lst | awk '{print $11}' | sort | uniq -c       # 3 × 51, all ../java.base/…
mkdir x && bsdtar -xOf neostego.deb 'data.tar*' | bsdtar --no-same-owner --no-same-permissions -xf - -C x
A=x/opt/neostego; cat $A/lib/app/NeoStego.cfg $A/lib/runtime/release
sha256sum $A/lib/app/neostego.svg registry/io.github.ElCruncharino.NeoStego/io.github.ElCruncharino.NeoStego.svg
diff $A/lib/neostego-NeoStego.desktop registry/io.github.ElCruncharino.NeoStego/io.github.ElCruncharino.NeoStego.desktop

# bundled runtime vs Adoptium
curl -fsSLo jdk.tgz 'https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.4.1%2B1/OpenJDK25U-jdk_x64_linux_hotspot_25.0.4.1_1.tar.gz'
mkdir u && tar -xzf jdk.tgz -C u; J=$(echo u/*)
(cd $A/lib/runtime && find . -type f \( -name '*.so' -o -path './bin/*' -o -name jexec -o -name jspawnhelper \)) |
  while read f; do cmp -s "$A/lib/runtime/$f" "$J/$f" && echo same || echo "DIFF $f"; done | sort | uniq -c
python3 -c 'import sys; m=open(sys.argv[1],"rb").read(); [print(f, open(f,"rb").read() in m) for f in sys.argv[2:]]' \
  $J/lib/modules $A/bin/NeoStego $A/lib/libapplauncher.so

# third-party jars vs Maven: sha1 of each jar == <repo>/<group>/<artifact>/<ver>/<artifact>-<ver>.jar.sha1
sha1sum $A/lib/app/*.jar

# IOC / RPATH
find $A -type f -exec sh -c 'head -c4 "$1" | grep -q ELF && readelf -d "$1" | grep -E "RPATH|RUNPATH"' _ {} \;
for j in neostego-app neostego-core neostego; do unzip -qo $A/lib/app/$j.jar -d jars/$j; done
LC_ALL=C grep -raE 'xmrig|stratum\+|/dev/tcp|nc -e|bash -i|crontab|\.bashrc|autostart|LD_PRELOAD' jars $A/lib/app $A/bin
LC_ALL=C grep -ralE 'java/lang/ProcessBuilder|URLClassLoader|defineClass|org.freedesktop.portal' jars

Not covered

  • Nothing was built or run here (runbook Phase 0). The build, check-apply-extra.sh and the rest of pr-checks.yml haven't run on this PR yet (workflow awaiting approval).
  • The three NeoStego jars (neostego-app, neostego-core, neostego) are upstream's own build output with nothing to hash them against. They were string-scanned, not decompiled. The Kotlin/Java source wasn't audited (Tier 1: glanced at only through the artifact).
  • GPU rendering, screen readers, batch/split workflows, watermark robustness and aarch64, as the PR says.

Nits (non-blocking)

  • 3.10 above: please correct or explain the "real desktop portal" line. If the file dialog you saw was Swing's JFileChooser, the PR body should say so. If upstream later moves to the portal, the Pictures/Documents grants could go.
  • The screenshot URL points at master, so it can change or disappear without a version bump. A tag URL (…/neostego/v1.3.1/docs/screenshots/hide-data-light.png) would stay stable.
  • The upstream repo is young and small (4★, created 2026-06). The author's identity checks out and the release is CI-built, so this doesn't block, but it's worth a glance on later bumps that releases are still uploaded by the Release workflow.

@jing2uo
jing2uo merged commit 9ca7c90 into flatpark:main Nov 6, 2026
@rhgKc2yp
rhgKc2yp deleted the add/io.github.ElCruncharino.NeoStego branch November 6, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants