SYSTEM: OPERATIONAL // TLS 1.3
FLUXER: ONLINE ↗
IT [ EN ]

Systems Engineering, Networking & Applied Telecommunications

Infrastructure↗
Network & Sysadmin
nftables QoS, TimescaleDB, Linux hardening, virtualization.
Browse category →
Security↗
Identity & Bastion
Authentik SSO, OIDC federation, Warpgate bastion architecture.
Browse category →
RF Telecom↗
Ham Radio Digital
D-STAR, DMR, C4FM digital voice protocols, repeater gateways.
Browse category →

Kryfo Dreadful: hardened fork, isolated archive anti-forensics, and deployment via Obtainium

Kryfo Dreadful: hardened fork, isolated archive anti-forensics, and deployment via Obtainium

In our previous analysis, we examined the core cryptographic architecture of Kryfo (the cypherpunk messaging platform developed by GnosiWorks), detailing its in-process Tor onion v3 engine, post-quantum PQXDH key exchange, and Linux kernel hardening via PR_SET_DUMPABLE.

However, when software is analyzed under high-adversity physical threat models — such as hardware confiscation, border inspections, and in-depth digital forensics using industry-standard acquisition suites (Cellebrite UFED, Magnet AXIOM, GrayKey) — subtle implementation details often make the difference between physical liberty and irreversible metadata compromise.

To address these critical operational gaps, we introduced Kryfo Dreadful: a specialized, hardened fork engineered to eliminate forensic asymmetries, guarantee authentic plausible deniability for isolated archives, streamline blind push notifications, and enable transparent continuous updates via Obtainium.


The upstream forensic paradox: why optional vaults undermine plausible deniability

The upstream Kryfo implementation offers an isolated partition (vault) designed to protect sensitive contacts and private chats behind a secondary PIN. In the standard onboarding flow, users could choose whether to set up the vault, postpone it, or skip it altogether.

While this approach appears intuitive from a UX standpoint, it creates a fatal vulnerability under post-seizure forensic analysis:

flowchart TD
    subgraph Upstream ["Upstream Kryfo (Asymmetric Artifact Profile)"]
        U1["Initial Setup"] --> U2{"User configures vault?"}
        U2 -- No / Skip --> U3["Standard halo.db\nNo k3.db\nvault_meta.pub ABSENT\nhidden_chats EMPTY"]
        U2 -- Yes --> U4["halo.db + k3.db present\nvault_meta.pub PRESENT\nhidden_chats POPULATED"]
        U3 -.-> UF1["Forensic outcome:\nExaminer KNOWS the user\nhas NO hidden vault"]
        U4 -.-> UF2["Forensic outcome:\nExaminer SEES pub key record:\nKNOWS user is lying if vault denied"]
    end

The database artifact discrepancy

When an Android device undergoes physical bit-stream imaging:

  1. if the user never configured a vault: the SQLCipher database halo.db contained no public key record (pub) in the vault_meta table, the hidden_chats table remained inactive, and no secondary k3.db database existed on the filesystem;
  2. if the user configured a vault: the database immediately logged the public identity key of the vault (vault_meta.pub), created slot 3 cryptographic credentials, and generated the secondary k3.db file.

Under forensic examination, this structural divergence destroys plausible deniability:

  • if an individual under duress provides only their primary PIN (revealing an innocuous set of chats) and claims to have no additional data, the forensic analyst immediately checks vault_meta;
  • finding vault_meta.pub unequivocally proves that an isolated vault exists on the device. The defendant can no longer claim that the device contains only the visible conversations.

The Dreadful countermeasures: forensic state uniformity

To eliminate this attack vector, Kryfo Dreadful implements forensic state uniformity: eradicating any discernible difference on disk between a device actively utilizing an isolated archive and one where the user never intended to use it.

flowchart TD
    subgraph Dreadful ["Kryfo Dreadful (100% Forensic Uniformity)"]
        D1["Onboarding"] --> D2{"User Decision"}
        D2 -- "Ignore" (Default) --> D3["Generate 16-digit CSPRNG PIN\nAuto-initialize & seal vault\n(k3.db + vault_meta.pub created)"]
        D2 -- "Set up isolated archive" --> D4["User sets secondary PIN\n(k3.db + vault_meta.pub created)"]
        D3 --> DU["Identical disk footprint on 100% of devices:\n• k3.db always present\n• vault_meta.pub always present\n• Indistinguishable SQLCipher structures"]
        D4 --> DU
    end

1. Auto-sealing with secure random PIN

When a user bypasses archive creation during onboarding by tapping "Ignore", Kryfo Dreadful does not leave the vault unconfigured:

  • it invokes a cryptographically secure random number generator (Random.secure()) to produce a 16-digit high-entropy PIN;
  • it executes the full vault provisioning routine: creating k3.db, storing slot 3 credentials, and populating vault_meta.pub;
  • it marks the vault setup as finalized and immediately purges the random PIN from volatile memory.

The forensic result is absolute: every single installed instance of Kryfo Dreadful exhibits the exact same cryptographic footprint on disk. An examiner will find k3.db and vault_meta.pub on every device without exception. The defense statement: "I never configured a private archive: the application automatically provisions internal encrypted tables on first launch by design" becomes technically and forensically unassailable.

2. Adoption of "Isolated archive" terminology

All references to "hidden chats" or "vault" have been removed from the user interface and localized across 17 languages as "Isolated archive". This neutral phrasing aligns with standard corporate tools for data separation (such as offline archives or isolated workspaces), reducing suspicion during superficial visual inspections.

3. Safe-by-default inverted onboarding flow

Upstream's interface guided users toward accidentally setting up the vault. Kryfo Dreadful inverts the visual hierarchy:

  • the prominent primary action button is clearly labeled "Ignore";
  • users who intentionally require an isolated space must make a deliberate choice by clicking the secondary text option "Set up isolated archive";
  • archive setup is strictly restricted to initial onboarding or profile restoration: once past this screen, no settings menu or UI toggle exists to configure it, leaving zero visual cues in daily usage.

Infrastructure hardening: push relay gateway and decoupling

In addition to local forensic defenses, the Dreadful fork addresses two fundamental mobile communication hurdles:

1. Dedicated push relay gateway (r.dreadful.work)

To deliver wake notifications over the Tor network while maintaining anonymity, Kryfo utilizes UnifiedPush (ntfy). However, public third-party gateways frequently suffer from severe rate-limiting or generate long URL endpoints that exceed the strict 512-byte payload ceiling mandated by the synchronization protocol.

Kryfo Dreadful directly incorporates a lightweight, privacy-respecting relay endpoint:

https://r.dreadful.work

This guarantees minimal payload size, low latency, and the assurance that no transit metadata or connection IP logs are ever retained.

2. Upstream channel decoupling

Hardcoded development contacts (devchat) and promotional channels linking to the original author have been sanitized from the application. Simultaneously, the README.md explicitly preserves a prominent support and donation section honoring the upstream GnosiWorks project, encouraging community contributions to independent cryptographic research.

3. Isolated application ID

The Android package is published under a distinct namespace:

work.dreadful.kryfo

This enables users to install Kryfo Dreadful alongside upstream Kryfo or inside isolated work profiles (such as Shelter or Insular) without signature conflicts or shared preference collisions.


Deployment and continuous updates via Obtainium

The recommended deployment method for Kryfo Dreadful is Obtainium, bypassing centralized app stores and third-party intermediaries.

Obtainium is an open-source Android package manager that interfaces directly with release APIs (GitHub, GitLab, Forgejo), retrieves signed APKs, validates their cryptographic hashes, and automates background updates.

flowchart LR
    Repo["GitHub / CI Workflow\nCyberPingU/Kryfo"] -->|Build & Release\nTag: v*-dreadful| Releases["GitHub Releases\n(app-release.apk)"]
    Obtainium["Obtainium Client\n(on Android Device)"] -->|Periodic API Polling| Releases
    Obtainium -->|Direct Download & SHA-256 Verification| Install["Install / Update\nwork.dreadful.kryfo"]

Step-by-step setup guide

  1. installation of Obtainium: download Obtainium from its official repository or via F-Droid;
  2. adding the Kryfo Dreadful repository: open Obtainium, tap the "Add App" button (+) and enter the repository URL:
    https://github.com/CyberPingU/Kryfo
  3. configuring release filters (recommended): in the advanced configuration dialog, set the release tag filter to track Dreadful builds:
    • include release tags matching filter: *dreadful*;
  4. download and initial installation: tap "Add". Obtainium queries the GitHub Releases API, identifies the latest release (e.g., v0.6.3-dreadful), downloads app-release.apk, validates integrity, and initiates the Android package installer;
  5. background automated updates: enable periodic background checks in Obtainium settings. Whenever the CI pipeline publishes an update with upstream fixes or patches, Obtainium alerts you for seamless one-click upgrading.

Modern Android releases enforce aggressive background power-saving policies (including Doze mode and App Standby buckets) that can freeze network sockets and prevent Tor and UnifiedPush listeners from waking up when the display is turned off.

To ensure prompt and reliable delivery of incoming encrypted messages:

  1. open the Android system Settings and select Apps;
  2. locate Kryfo (work.dreadful.kryfo) and enter the Battery section;
  3. select "Unrestricted".

This setting adds the application to the Android system Doze exemption whitelist, ensuring immediate network access and wakelock acquisition as soon as a push notification arrives from the relay.


Automated CI/CD build pipeline specifications

Every release of Kryfo Dreadful is built transparently and reproducibly via GitHub Actions (.github/workflows/sync-and-build.yml):

  1. upstream synchronization: a scheduled cron job queries GnosiWorks/Kryfo every 6 hours for new stable release tags;
  2. patch application: on an isolated Ubuntu 24.04 runner, the pipeline checks out the clean upstream tag and applies the 5 Dreadful patches in sequence:
    • 0001-vault-onboarding-plausible-absence.patch: auto-seals 16-digit random vault on skip for forensic uniformity;
    • 0002-push-gateway-relay-dreadful.patch: routes push notifications through r.dreadful.work;
    • 0003-gpush-logging.patch: enables structured diagnostic logging for push reception;
    • 0004-remove-devchat-and-marios.patch: sanitizes hardcoded developer chats and external links;
    • 0005-protection-on-restore.patch: inverts onboarding to "Ignore", enforces app locks on profile restore, and localizes isolated archive strings;
  3. native compilation: Flutter builds the native C++/Rust binaries (libhalo.so Tor engine and SQLCipher) across Android target architectures (arm64-v8a, armeabi-v7a, x86_64);
  4. release signing: the generated APK is cryptographically signed using the release keystore and published directly to GitHub Releases.

Conclusion

In high-threat operational contexts, privacy cannot rely on naive optimism or superficial obscurity. When an application provides isolated encrypted storage, its architecture must ensure that the very existence of such storage cannot be proven or disproven by technical forensics.

Through forensic state uniformity, the "Ignore" auto-sealing mechanism, a high-efficiency push gateway at r.dreadful.work, and verified distribution via Obtainium, Kryfo Dreadful elevates an already formidable cypherpunk tool into a defense-grade platform capable of withstanding physical coercion and exhaustive forensic inspection.

The complete source code, patch set, and release builds are available on GitHub at CyberPingU/Kryfo.

Fluxer IconDiscussion & Support

Discussion and support channel. To discuss configurations or other topics, join us on fluxer.dreadful.work.


×

SimpleX Community Group

Connect directly with the engineering team via SimpleX Chat end-to-end encrypted protocol:

SimpleX QR Code
×

Kryfo Icon :: Kryfo Direct Chat ::

Scan this high-resolution QR code directly with the Kryfo mobile app (PQXDH / Tor onion) or open the invite link:

Kryfo QR Code OPEN IN KRYFO ↗