Don't assume that a root exploit is safe or effectively hidden. If an app can exploit root to load KernelSU, then *all* other apps including banking apps can detect that root access much more easily than you might think!
Many people see posts about the LSPromise exploit chain which allows an ordinary app to gain root/kernel privileges with a 100% success rate without touching memory or relying on race conditions, and think: "If a standard app can so easily break out and gain root access, bypassing every security mechanism must be a breeze!"
You can use Xray-core's sniffing feature and network routing rules, combined with iptables/ip6tables commands to redirect all your traffic into Xray-core, to block ads domain instead of mounting a custom hosts file into the system.
What was supposed to be the most restricted isolated process in the Android system actually possesses numerous privileges—a truly peculiar paradox.
* Random UID, a former MagiskHide bypass solution, which Magisk has already addressed.
https://t.me/magiskalpha/255
* App Zygote's setuid capability was unrestricted when SELinux was disabled; now invalidated.
https://t.me/vvb2060_Channel/81
* App Zygote can detect SELinux status; KernelSU (KSU) has already addressed this.
https://t.me/magiskalpha/714
* App Zygote native lacks unshare and shares the same mount namespace as init, making it impossible to hide.
https://t.me/vvb2060_Channel/60
Now, we have discovered yet another privilege of the isolated process: Process Traversal. The isolated process possesses GID 3009, granting it unrestricted access to /proc.
This capability has existed since the inception of the isolated process, yet went unnoticed for 10 years. In 2020, Project Zero accidentally discovered that App Zygote possessed GID 3009. Unfortunately, they failed to notice that the longer-existing isolated process suffered from the exact same issue. To make matters worse, the fix patch deliberately ignored the isolated process scenario, clearing groups only for is_child_zygote—an ironic outcome, to say the least.
Because we observed wild exploitation in a certain hardening packer, we have decided to directly disclose the details of this vulnerability. We have also written a PoC, using root detection as an example: https://github.com/LSPosed/Privisolated