NetSecure
Your Network. Your Rules.Total Visibility.
Created on 11th March 2026
•
NetSecure
Your Network. Your Rules.Total Visibility.
The problem NetSecure solves
Most Android users have no idea what their installed apps are doing behind the scenes like which app are silently connecting to tracking servers, leaking personal data to third-party domains, or communicating with known malicious infrastructure.
Traditional firewalls only block or allow traffic; they don't tell you where your data is going, what protocol is being used, or whether a destination is a threat. Users are left blind to the network behavior of the very apps they trust daily.
NetSecure solves this by providing real-time, per-app deep packet inspection directly on the device i.e. capturing every connection, classifying traffic using nDPI protocol analysis, geo-locating destination servers via MaxMind, and automatically scanning suspicious domains and IPs through IntelOwl threat intelligence.
It transforms an opaque, invisible attack surface into a transparent, actionable dashboard ,giving users and security researchers full visibility into their device's network activity without requiring root access, external hardware, or cloud-based proxies.
Challenges we ran into
-
Native Cross-Compilation : Getting four C libraries (zdtun, nDPI, libpcap, PCAPdroid engine) to compile under Android NDK across four CPU architectures required heavy CMake customization and header path patching.
-
Rootless Packet Capture : Android blocks raw sockets without root. We routed all traffic through a VPN TUN interface with split routes, feeding packets to the native engine while avoiding infinite loops from capturing our own traffic.
-
DNS Visibility : Android's Private DNS (DNS-over-TLS) hides domain names from the VPN tunnel. We had to force fallback to plain DNS so nDPI and IntelOwl can actually see what domains apps connect to.
-
Real-Time UI at Scale : Thousands of connections per second from native code would crush Compose. Solved with batched StateFlow updates and capped rendering to keep the UI at 60fps.
-
JavaMail on Android : SMTP via javax.mail conflicts with Android's internal stubs. Required the android-mail fork, META-INF packaging exclusions, and encrypted credential storage via AndroidKeyStore.
-
Async Threat Intelligence : IntelOwl API calls are slow. Scanning hundreds of domains/IPs needed fully async coroutine pipelines with cooldowns, retries, and reactive flows to avoid blocking the UI.
-
MaxMind as Source Submodule : Including the GeoIP reader as a source-level Gradle dependency instead of a JAR meant managing a secondary Java source tree alongside Kotlin and bundling the .mmdb asset correctly.
Technologies used
