soranerai/vpnhide_next
About
VPNHide Next (VPNHide with many improvements)
Systems & InfrastructureMeasured star growth
- in 24h
- +8
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.en.md
Original
VPNHide Next
A system-level solution designed to hide active VPN connections on Android devices from selected applications.
Installing the kernel backend
Full protection requires one of the two kernel backend options. Do not install kmod on top of a kernel with kpatch; choose the option that matches your device.
kmod (GKI2)
- Check the Android version and kernel version on your device.
- From the latest release,
download the ZIP matching your Android branch and kernel KMI. For example:
vpnhide-kmod-android14-6.1.zip. - Install the ZIP through KernelSU, Magisk, or another root manager.
- Reboot the device. The module must be active after reboot.
kmod supports GKI2 only. The available variants are listed in the releases and cover Android 12–17 with kernels 5.10–6.18. If there is no matching variant for your kernel, check whether you can install a matching pre-built GKI2 kernel with kpatch or apply a patch manually.
kpatch + bridge
This option is intended for pre-built GKI2 kernels with kpatch already applied. Older kernels require manual patching of the specific kernel; instructions are available in the private backend repository.
- Install a kernel with kpatch applied. Pre-built kernels for standard GKI2 are published in the GKI_KernelSU_SUSFS repository; for manual patching of a specific kernel, follow the instructions in the private backend repository vpnhide_next_private.
- From the latest release,
download
vpnhide-bridge.zipand install it through your root manager. - Reboot the device. The bridge must match the app and built-in kernel versions.
After installing the kernel backend, install the VPNHide Next APK, enable it for System Framework in LSPosed, and reboot again if you have not already done so. The app will show which backend is active and whether the bridge loaded in Diagnostics.
[!WARNING] Requires kernel-level and system framework-level integration Stable operation across all devices, ROMs, and kernel versions is not guaranteed. The software is provided "AS IS" under the MIT License. The author assumes no liability for any device issues.
Architecture and Integration Methods
The project implements a two-component hiding model that combines low-level system call interception in the kernel with system framework response modification:
- Kernel Module (LKM or Built-in):
- LKM (Loadable Kernel Module): Distributed as a loadable module for Android GKI kernels (Android 12–17, versions 5.10–6.18). Android 17 / kernel 6.18 is included in release publishing and automatic updates. Uses
kretprobesto intercept network-related system calls and filesystem operations. - Built-in Mode: Direct integration of the hiding logic into the monolithic kernel source at build time. Provides zero call overhead, absolute resistance to syscall timing attacks, and maximum stability without depending on runtime module loading. Pre-built builds are available in the following repositories:
- Standard GKI2: GKI_KernelSU_SUSFS
- LKM (Loadable Kernel Module): Distributed as a loadable module for Android GKI kernels (Android 12–17, versions 5.10–6.18). Android 17 / kernel 6.18 is included in release publishing and automatic updates. Uses
- LSPosed Module:
- Intercepts Binder IPC calls inside the
system_serverprocess (specifically, Parcel serialization forNetworkCapabilities,NetworkInfo, andLinkProperties). This prevents VPN info leaks via Java APIs without injecting code into the target app processes.
- Intercepts Binder IPC calls inside the
Key Features
- 100% Stealth (built-in): The hiding logic is compiled directly into the kernel, eliminating the use of external modules and kretprobe hooks. This makes the protection mechanisms completely invulnerable to syscall timing attacks and undetectable by any user-space analysis or anti-tamper SDKs.
- Unlimited Target Applications: The filtering mechanism supports an unlimited number of target applications. The effective UID list is computed dynamically on the daemon side, preventing system buffer overflows.
- List Modes (Blacklist / Whitelist):
- Blacklist Mode: Hides VPN interfaces and socket options only from explicitly selected applications.
- Whitelist Mode: Hides VPN from all installed applications except those explicitly selected in the exclusion list.
- Dynamic Port Rules: Kernel-level blocking and redirection of connections to local VPN daemon ports using the
security_socket_connect/security_socket_bindhooks. Port rules are managed dynamically without relying on iptables rules or ProcFS. - Port Access Monitoring: Ability to track and monitor which network ports targeted applications are requesting access to.
- Dynamic Hook Configuration: Hiding parameters and protection levels can be toggled on the fly via the
/dev/vpnhide_ctrlcontrol device. Changes are applied immediately without rebooting. - Automatic Controller Hiding: The VPN client applications and the VPNHide Next manager are automatically hidden from target applications at runtime.
- Work Profile Support: Full separation of hiding logic and target lists between the primary user and isolated Android work profiles (Multi-user/Work Profile).
Protection Levels
Protection levels can be toggled dynamically via the dashboard, configuring the active set of kernel hooks:
| Level | Description | Covered Detection Vectors |
|---|---|---|
| Minimum (Min) | Basic network isolation | Interface enumeration filtering (ioctl, netlink), port blocking, and hiding routes in /proc/net/route. |
| Average (Avg) | Socket and network parameter isolation | All features of Min + getsockopt/setsockopt interception (MTU, MSS, TCP_INFO, SO_BINDTODEVICE, SO_TIMESTAMPING spoofing), preventing socket mark leakage (SO_MARK). |
| Maximum (Max) | Comprehensive system isolation | All features of Avg + hiding entries in /proc/net/{dev,if_inet6,fib_trie} and optionally hiding /sys/class/net via SUSFS or NoMount, zeroing eBPF traffic statistics, UDP timing attack protection, IPv6 link-local bruteforce protection, and hiding VPN qdisc. |
Detection Coverage
Comparison with the detailed VPN Hide coverage map describes the intended coverage for selected apps. Next requires an active kernel backend and LSPosed; hook availability depends on the kernel and configuration.
Native layer
| Detection vector | SELinux | Next: kernel | Original: kmod / KPM | Original: Zygisk |
|---|---|---|---|---|
ioctl(SIOCGIFFLAGS) |
— | ✓ | ✓ | ✓ |
ioctl(SIOCGIFNAME) |
— | ✓ | ✓ | ✓ |
ioctl(SIOCGIFMTU) |
— | ✓ | ✓ | ✓ |
ioctl(SIOCGIFCONF), including 32-bit compat |
— | ✓ | 64-bit only¹ | ✓ |
Other SIOCGIF* |
— | ✓ | ✓ | ✓ |
getifaddrs() |
— | ✓ | ✓ | ✓ |
Netlink RTM_GETLINK |
— | ✓ | ✓ | ✓ |
Netlink RTM_GETADDR IPv4 / IPv6 |
— | ✓ | ✓ | ✓ |
Netlink RTM_GETROUTE |
— | ✓ | ✓ | ✓ |
Netlink RTM_GETRULE |
— | ✓ | ✓ | ✓ |
SO_BINDTODEVICE / SO_BINDTOIFINDEX |
— | ✓ | ✓ | libc |
/proc/net/route |
denied | ✓ | ✓ | ✓ |
/proc/net/ipv6_route |
denied | ✓ | ✓ | ✓ |
/proc/net/if_inet6 |
denied | Max | ✓ | ✓ |
/proc/net/tcp, tcp6 |
denied | ✓ | — | ✓ |
/proc/net/udp, udp6 |
denied | — | — | — |
/proc/net/dev |
denied | Max | — | — |
/proc/net/fib_trie |
denied | Max | — | — |
/sys/class/net/tun0/ |
denied | opt.² | opt. | opt. |
NetworkInterface.getNetworkInterfaces() |
— | ✓ | ✓ | ✓ |
/proc/net/route via Java |
denied | ✓ | ✓ | ✓ |
TCP_INFO, MSS, MTU, SO_MARK |
— | Avg | — | — |
| VPN interface qdisc | — | Max | — | — |
| eBPF traffic statistics | — | Max | — | — |
RTM_GETROUTE: single IPv4 lookup |
— | partial³ | — | — |
Netlink: requests by hidden interface index (GETSTATS, GETNEIGH, GETADDRLABEL, GETQDISC, GETTCLASS, GETTFILTER) |
— | partial⁴ | — | — |
| Netlink: strict dumps of addresses, multicast, anycast and bridge FDB by index | — | partial⁴ | — | — |
getsockname() on a connected socket |
— | ✓ | — | — |
getsockopt: IP_MTU, IPV6_MTU, TCP_MAXSEG, TCP_INFO |
— | Avg | — | — |
Loopback: connect() to hidden ports |
— | ✓ | iptables | iptables |
Loopback: bind() to probe an occupied port |
— | ✓⁵ | — | — |
TrafficStats / NetworkStatsService |
— | Max | — | — |
LSPosed and system framework
| Detection vector | Next | Original |
|---|---|---|
NetworkCapabilities |
✓ | ✓ |
NetworkInfo |
✓ | ✓ |
ConnectivityManager.getActiveNetwork() |
✓ | ✓ |
ConnectivityManager.getAllNetworks() |
✓ | ✓ |
LinkProperties: interface name |
✓ | ✓ |
LinkProperties: VPN routes |
✓ | ✓ |
ConnectivityDiagnostics callbacks |
✓ | — |
NetworkCallback and getNetworkForType() |
✓ | ✓ |
TrafficStats / NetworkStatsService |
✓ | — |
Work profile detection through UserManager |
✓ | — |
✓ means filtering or spoofing is implemented; Avg / Max denotes the protection level; ? means Next coverage is unconfirmed; — means coverage was not found or is not listed in the original map. In the SELinux column, — means no restriction is listed. libc can be bypassed by direct syscalls; opt. denotes optional filesystem hiding; denied means SELinux often restricts access, depending on the ROM.
¹ The original map reports no 32-bit compat in kmod and unverified KPM coverage. ² Path hiding requires SUSFS or NoMount and the appropriate configuration. ³ Simple IPv4 destination lookups are routed through the physical interface; other request forms follow their normal path. ⁴ Only certain request formats and available hook points are handled. ⁵ Configured hidden ports are redirected to port 0 on bind.
Recent backend changes added compat SIOCGIFCONF, single IPv4 route lookup redirection and handling of several indexed netlink requests. A dash in the original columns means the map does not list coverage; it does not prove the implementation lacks it.
Diagnostics and Monitoring
The application features a built-in diagnostic module performing 77 automated checks (70 native-level and 7 Java-level checks) to assess hiding on the device.
Intercept statistics are accumulated by the daemon in an in-memory ring buffer and can be queried in real time via the vpnhide.stats.v1 abstract socket.
Screenshots
| Dashboard | App List | Statistics |
|---|---|---|
![]() |
![]() |
![]() |
| Hook Settings | App Settings | Diagnostics |
![]() |
![]() |
![]() |
Many Thanks
- KernelSU / KernelSU-Next — for the excellent root solution.
- wildkernels — for the base of the built-in mode.
- okhsunrog/vpnhide — for the base and inspiration of this project.
- LSPosed — for the powerful system framework hooking mechanisms.
- SUSFS — for the file/path hiding concept in kernel-space.
Explore related projects
Loading…





