Skip to content

About

GeDefense Mobile is a native Android security platform that combines a local VPN enforcement plane, endpoint telemetry, XDR/EDR correlation, threat intelligence, app-risk analysis, encrypted evidence storage and optional Android Device Owner controls.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

GeDefense Mobile

GeDefense Mobile

Local-first Android endpoint security, network defense and XDR.
Built by VisionGaiaTechnology for environments where security telemetry should stay on the device.

English · Deutsch · Русский · 简体中文

Version VersionCode Android Kotlin Go NDK Android runtime dependencies Security posture Privacy License

Tip

Download Latest Release — 0.31.0 (VC 62, Android 10+):

Note

Installation & Update Notice for Version 0.31.0 (VC 62): Devices already running 0.28.0-beta1 (VC 59), 0.28.0-beta2 (VC 60) or 0.30.0 (VC 61) can update directly in-place (0.31.0 uses the same signing identity). Only pre-0.28.0 installations require a clean uninstall/reinstall first due to the key migration in 0.28.0-beta1.

Important

GeDefense Mobile is currently a public-beta / pre-production security candidate. The release gates are extensive, but OEM behavior, VPN lifecycle details and update/migration paths must still be validated on real devices before high-risk production deployment.

GeDefense Mobile

What GeDefense is

GeDefense Mobile is a native Android security platform that combines a local VPN enforcement plane, endpoint telemetry, XDR/EDR correlation, threat intelligence, app-risk analysis, encrypted evidence storage and optional Android Device Owner controls.

The architecture is intentionally local-first: security decisions are made on the device. GeDefense does not require a VGT cloud account and does not upload packet payloads, package inventories, scan artifacts or XDR evidence to a VGT backend. Optional threat/ASN data updates are downloaded as bounded, validated data inputs; they do not turn the product into a cloud verdict service.

Core capabilities

Area Capability
Network protection Full Flow VpnService, direct L4 egress, selective routing and WireGuard L3 transport
Threat intelligence Local compiled threat policy with deterministic feed authority, bundled offline IPv4/IPv6 GeoIP seed and offline lookups
Telemetry Shield 626 curated local rules (MALICIOUS_TELEMETRY enforced in Conservative/Balanced/Strict, 34 ESSENTIAL_* guards, DNS NXDOMAIN + 120s RFC 2308 SOA negative caching, TLS/QUIC SNI blocking & XDR retry-storm detection) without TLS interception
Encrypted DNS control 19 verified DoH/DoT bootstrap domains + port-853 DoT/DoQ controls in strict profiles, without installing a MITM root CA
EDR / XDR Package, behavior, network, integrity and device-hardening evidence correlated locally
InstallGuard Pre-egress flow gate plus bounded Fast/Deep app scanning for newly installed packages
Malware analysis Local app/package and bounded shared-storage inspection
Secure Telemetry Vault Domain-separated AES-256-GCM storage with authenticated snapshots and update-stable key custody
Evidence Encrypted, authenticated local evidence ledger with bounded recovery semantics
Resilience Bounded recovery supervisor, health checks and fail-closed degradation behavior
TITAN Optional Device Owner policy plane for managed-device hardening and lockdown controls
Diagnostics Aggregate-only support export plus a no-egress Threat Policy Self-Test for the loaded policy/index/serialization path

Why the privacy model matters

Many mobile security products improve visibility by sending telemetry to central infrastructure. GeDefense is designed around the opposite default: analyse locally first, keep evidence local, export only when the user explicitly chooses to do so.

The Telemetry Shield also protects against telemetry generated by other applications where it can be identified at the network/policy layer. It deliberately does not perform TLS interception. Selective mode does not claim system-wide telemetry filtering; system-wide Telemetry Shield enforcement requires Full Flow. If an application mixes functional traffic and telemetry inside the same encrypted first-party endpoint, GeDefense will not pretend that network metadata can magically separate the two.

See PRIVACY.md, NETWORK-EGRESS.md and SECURE-TELEMETRY-VAULT.md.

Architecture at a glance

Android UI / Control Plane (Kotlin)
        |
        | authenticated Unix-domain control channel
        | SCM_RIGHTS descriptor transfer
        v
GaiaNet V2 Data Plane (Go, separate process)
        |
        +-- Threat policy / Telemetry Shield / Package gate
        +-- Direct L4 transport
        `-- WireGuard L3 transport
                |
                v
          Physical network

The Android host owns lifecycle, policy, Keystore access and UI state. GaiaNet is executed as a separate process from the APK native-library directory and receives only the bounded file descriptors/configuration required for the active transport path. It is not loaded through JNI in the packet hot path.

The current toolchain is pinned to Go 1.26.8, Kotlin 1.9.24, Gradle 8.7, JDK 17, Android API 36 and NDK r27c. See TOOLCHAINS.lock and SUPPLY-CHAIN.md.

Security model

GeDefense is built around a few non-negotiable invariants:

  • fail closed for security-critical integrity, VPN and evidence failures;
  • no TLS interception by default;
  • no dynamic code loading or WebView-based security plane;
  • bounded queues, parsing, scanning, retries and background work;
  • no whole-UID WireGuard bypass: only exact upstream transport sockets are protected/bound;
  • independent key domains for persisted security state;
  • update-stable encryption custody that is not derived from APK hashes or version numbers;
  • crash-safe authenticated state publication (stage -> fsync -> verify -> atomic replace -> directory fsync);
  • explicit trust boundaries between Android host, GaiaNet, external datasets and Android platform services.

Read SECURITY.md, THREAT-MODEL.md, ARCHITECTURE.md and SUPPLY-CHAIN.md before deploying GeDefense in a sensitive environment.

Protection modes

GeDefense supports multiple operating profiles so users can trade blast radius, compatibility and enforcement strength deliberately.

  • Selective: routes only policy-selected threat prefixes into the protection plane.
  • Full Flow / Direct: processes device traffic through GaiaNet and emits approved traffic through direct kernel sockets.
  • WireGuard: routes Full Flow traffic through the embedded wireguard-go L3 transport.
  • Strict / Lockdown: designed to cooperate with Android Always-on VPN / lockdown semantics and fail closed when the secure transport is unavailable.

Building

Required toolchain

  • JDK 17
  • Gradle 8.7
  • Android SDK Platform 36
  • Android Build Tools 36.0.0
  • Android NDK 27.2.12479018 (r27c)
  • Go 1.26.8

The Android application keeps its runtime surface minimal: :app now contains exactly two pinned, locally vendored Apache-2.0 QR-scanner artifacts (ZXing Android Embedded + ZXing Core) for local WireGuard QR import; :core remains free of third-party runtime libraries. GaiaNet uses a small, pinned, vendored Go dependency set including wireguard-go and selected golang.org/x/* modules.

Run the complete release-readiness gate:

bash tools/release-readiness.sh

For the exact offline/reproducible build procedure, see BUILD-RUNBOOK.md.

Verification and release gates

The repository includes machine-verifiable gates for, among other things:

  • Core logic and crypto/store regression tests;
  • Go tests, race tests and Android-helper tagged tests;
  • WireGuard protocol/source invariants;
  • main-thread / startup ANR boundaries;
  • vault migration and continuity rules;
  • Privacy Shield and onboarding behavior;
  • InstallGuard and resilience invariants;
  • ASN evidence provenance;
  • source-manifest verification;
  • 16 KiB ELF PT_LOAD alignment;
  • deterministic CycloneDX SBOM validation;
  • release artifact metadata/signature checks;
  • lint with a zero-warning release policy.

See RELEASE-CHECKLIST.md and BETA-TEST-PLAN.md for the remaining real-device acceptance work.

Architecture dossier

The original master dossier is German. Translated editions are provided for repository readers:

Language PDF
Deutsch (original) GeDefense Mobile - Master Architecture - DE
English GeDefense Mobile - Master Architecture - EN
Русский GeDefense Mobile - Master Architecture - RU
简体中文 GeDefense Mobile - Master Architecture - ZH-CN

Recent Changes / Changelog

Version 0.31.0 (VersionCode 62) — Curated 626-Rule Telemetry Shield, Malicious Telemetry & Anti-Retry-Storm Protection

  • Expanded 626-Rule Privacy Intelligence Core: Upgraded privacy_intelligence_v1.tsv from 27 to 626 license-audited rules covering OEM telemetry (Xiaomi/HyperOS, Samsung, Huawei, Oppo/ColorOS/HeyTap, Vivo, Motorola), analytics, ads, attribution, diagnostics/crash endpoints, 34 ESSENTIAL_* protection overrides (FCM push, captive portal, Play Integrity, OEM OTA/cloud/IoT connectivity), and 19 verified ENCRYPTED_DNS bootstrap domains (CONSERVATIVE: 262 active blocks, BALANCED: 417, STRICT: 584).
  • Hostile Telemetry Enforcement (MALICIOUS_TELEMETRY): Added PrivacyCategory.MALICIOUS_TELEMETRY (30 rules covering firmware exfiltrators such as Adups/AdSunflower/AdFuture, cloaked Dark AdTech clusters, compromised attribution SDK endpoints, Yandex AppMetrica, ByteDance mssdk fingerprinting, and session-replay harvesters) — blocked out-of-the-box in CONSERVATIVE, BALANCED and STRICT and escalated to XdrSeverity.HIGH in XdrEngine.
  • Anti-Retry-Storm Negative Caching & XDR Correlation: Added RFC 2308 negative-cache SOA Authority records (TTL=120s) to blocked NXDOMAIN replies in GaiaNet (netstack/dns.go), plus bounded sliding-window TelemetryRetryStormTracker alerts (privacy.retry_storm) in FullFlowAnalytics / XdrEngine and Stage-2 license/suffix-trie feed compiler tools/privacy_feed_compiler.py.

Highlights Since 0.28.0-beta1 (0.28.0-beta2 VC 60 & 0.30.0 VC 61)

  • Offline Linux GeoIP Seed (0.30.0 / VC 61): Bundled coalesced IPv4 (329,323 ranges) and IPv6 (13,860 ranges) seed tables plus ::ffff:x.x.x.x normalization and "ZZ" closed-flow backfill so country resolution works offline from first launch.
  • Compact Notification Card, LAN Discovery & Port Sentinel (0.30.0 / VC 61): Redesigned collapsed glass notification strip with accurate alert-only crimson triggers, NET_CAPABILITY_NOT_VPN LAN discovery filtering, ephemeral mDNS fallback and PortSentinel link-change rebinding.
  • Data-Flow Atlas & Passive TLS/QUIC SNI Inspection (0.28.0-beta1 / VC 59): Zero-MITM TLS ClientHello / QUIC Initial SNI enforcement across Direct and WireGuard modes, rolling 7-day time windows, and per-app Smart-Firewall egress controls.

For full historical release logs, see CHANGELOG.md.

Documentation

Document Purpose
ARCHITECTURE.md System architecture and trust boundaries
SECURITY.md Security invariants and vulnerability reporting
THREAT-MODEL.md Threat assumptions, boundaries and known limitations
PRIVACY.md Product privacy model
NETWORK-EGRESS.md Explicit network-egress inventory
SECURE-TELEMETRY-VAULT.md At-rest encryption and key lifecycle
THREAT-INTELLIGENCE.md Threat-feed authority model
ASN-EVIDENCE.md ASN evidence provenance and semantics
SUPPLY-CHAIN.md Dependency and build-chain controls
SBOM.cdx.json CycloneDX SBOM
BUILD-RUNBOOK.md Reproducible build workflow
RELEASE-CHECKLIST.md Release gates and real-device acceptance
BETA-TEST-PLAN.md Public-beta test plan
CONTRIBUTING.md Contribution rules
SUPPORT.md Support and safe diagnostics

Repository layout

app/            Android application, UI, services and platform integration
core/           Android-independent Kotlin security/domain logic
netstack/       GaiaNet V2 Go data plane
third_party/    Pinned vendored Go source used by GaiaNet
tools/          Security, reproducibility and release gates
docs/           Public web docs, assets and architecture dossiers
.github/        CI and GitHub contribution templates

Security reporting

Please do not disclose exploitable vulnerabilities or sensitive device evidence in public issues.

Security contact: security@visiongaia.de

Use GitHub private vulnerability reporting when available. Include the affected GeDefense version, Android/OEM version, protection mode, sanitized reproduction steps and whether the device is rooted or uses a custom ROM.

Contributing

Security fixes and compatibility evidence are welcome. Changes must preserve bounded resource use, fail-closed behavior and reproducible build properties. Start with CONTRIBUTING.md.

License

GeDefense Mobile is distributed under the GNU Affero General Public License v3.0 or later (AGPL-3.0-or-later). See LICENSE.


VisionGaiaTechnology
Experimental sovereign security & software engineering.

About

GeDefense Mobile is a native Android security platform that combines a local VPN enforcement plane, endpoint telemetry, XDR/EDR correlation, threat intelligence, app-risk analysis, encrypted evidence storage and optional Android Device Owner controls.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages