Skip to content

Latest commit

 

History

675 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Fork-Secure Android CI License: GPL v2 or later Latest Release

Telegram Fork-Secure is a privacy-hardened Telegram Android fork based on the official Telegram Android client (v12.10.5). It adds a transparent, end-to-end encrypted security overlay for standard 1:1 cloud chats and Saved Messages using the Signal Double Ratchet protocol (SecureOverlay), without requiring server-side cooperation or breaking compatibility with standard Telegram chat routing.


Key Features

  • Signal Protocol E2EE (SecureOverlay): End-to-end encrypted messaging using X3DH, Double Ratchet, Ed25519/X25519 keys, and XChaCha20-Poly1305 authenticated encryption over standard Telegram 1:1 carriers.
  • Encrypted Rich Media: Complete encryption of photos, voice notes, round video notes, audio/music files, documents, and stickers. Native playback runs directly from the decrypted cache with preserved waveforms and metadata.
  • Encrypted Contacts & Live/Static Geo-Location: Dedicated secure payload codecs for TYPE_CONTACT (vCard / phone / name) and TYPE_GEO_LOCATION with secret mode protected map rendering.
  • Authenticated Remote Deletion: Cryptographically signed remote delete control packets (TYPE_CONTROL_DELETE) with carrier digest verification and automatic purge of ciphertext, decrypted cache, and disk files.
  • Secure Media Forwarding: Forward protected media across secure sessions; media is decrypted locally and safely re-encrypted under the recipient's ratchet chain, preserving captions, waveforms, and dimensions.
  • Anti-Spoofing Link Guard & Phishing Warning: Integrated SecureLinkGuard detects IDN homoglyphs (confusable Cyrillic/Latin/Greek alphabets), Punycode (xn--), BiDi directional override characters, zero-width spaces, and URI authority spoofing (user:pass@host), requiring explicit user confirmation before external browser launch.
  • Screen Protection & Anti-Leak Guards: Enforced FLAG_SECURE window protection across chat, profile, and media viewer; blocked gallery exports, screenshots, and sharing of decrypted media; cloud drafts and link previews suppressed in protected chats; unencrypted reactions blocked fail-closed.

Downloads (v12.10.5)

Signed multi-architecture packages:

Architecture Package Checksum
arm64-v8a telegram-fork-secure-12.10.5-arm64-v8a.apk SHA-256
universal telegram-fork-secure-12.10.5-universal.apk SHA-256
armeabi-v7a telegram-fork-secure-12.10.5-armeabi-v7a.apk SHA-256
x86_64 telegram-fork-secure-12.10.5-x86_64.apk SHA-256
x86 telegram-fork-secure-12.10.5-x86.apk SHA-256

Release notes and verification details: Releases.


Repository Structure & Documentation Map

telegram-secure-android/
├── TMessagesProj/          # Telegram Android app sources (UI, networking, media, DB)
├── TMessagesProj_App/      # Android application packaging, flavors, and build configuration
├── SecureOverlay/          # Isolated Signal protocol layer, codecs, storage, and tests
├── docs/                   # Architectural blueprints, security audits, and developer guides
├── scripts/                # Local build, check, and deployment scripts
└── .github/workflows/      # Multi-architecture CI/CD workflows

Development & Branching Workflow

We follow a strict git branching model for all contributions:

  1. dev: The default integration branch for ongoing development. All feature PRs target dev.
  2. feature/<name>: Individual feature or bugfix branches created from dev.
  3. main: Production release branch containing tagged, verified releases (v<version>).

Local Build & Testing

The repository provides a reproducible Nix development shell (shell.nix) containing JDK 21, Android SDK platform/build-tools 35 & 36, NDK 27.2.12479018, and CMake 3.22.1.

Prerequisites

  1. Obtain your own api_id and api_hash from my.telegram.org.
  2. Configure local.properties (see local.properties.example).

Build Commands

# Verify environment and dependencies
./scripts/check-local-mvp.sh

# Build ARM64 debug APK locally
./scripts/build-local-mvp.sh

# Run connected Android instrumentation tests on device
nix-shell --run 'ANDROID_SERIAL=<device_serial> ./gradlew :SecureOverlay:connectedDebugAndroidTest --console=plain'

# Build production multi-architecture release APKs
./gradlew :TMessagesProj_App:assembleAfatRelease --console=plain

Security & Independent Review Notice

Warning

Fork-Secure is a beta implementation for research, evaluation, and device testing. The independent cryptographic review status remains CHANGES REQUIRED (see docs/protocol-review/REVIEW-DECISION.md). Do not rely on this client for critical confidential communications until the formal review process is fully resolved.

About

Telegram Secure Fork with libsignal

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages