How Bad Binder, a Rogue Update Server, and Frida Compromised... - #2718
Open
carlospolop wants to merge 1 commit into
Open
How Bad Binder, a Rogue Update Server, and Frida Compromised...#2718carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://computerweekly.com/news/366649396/Revealed-Cyber-spies-used-malware-from-GitHub-to-hack-EncroChat-cryptophone-network Content Categories: Based on the analysis, this content was categorized under "Mobile Pentesting > Android Applications Pentesting > Insecure In-App Update RCE and Frida Tutorial; cross-reference Android Malware Post-Exploitation and add CVE-2019-2215/Bad Binder under Android privilege escalation or rooting techniques". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview and attack chain
French government hacking teams compromised EncroChat's locked-down Android phones in 2020 by chaining control of the trusted update path, Android/Linux kernel privilege escalation through CVE-2019-2215 (Bad Binder), and process instrumentation with Frida. The resulting implant obtained persistent
root, disabled SELinux and logging, instrumented the EncroChat application, and exfiltrated plaintext ...🔧 Technical Details
Turning a local exploit into remote compromise through trusted updates: A locked-down device may prohibit browsers, sideloading, and arbitrary applications while still silently trusting an update service. Control of the update server, DNS, routing, load balancer, hosting environment, TLS credentials, or signing process can therefore provide initial access. Reconstruct or impersonate the expected service, advertise a malicious package as a legitimate update, and allow the device's automatic updater to deliver it without user interaction. The EncroChat chain used a network load balancer and a replica of
update.encrochat.ch.Kernel escalation through a use-after-free: CVE-2019-2215 leaves a stale reference to freed memory in the Android Binder kernel driver. Exploitation reclaims the freed region with controlled content and triggers the dangling reference so the kernel processes attacker-controlled data. The resulting root privileges...
🤖 Agent Actions
Updated:
src/mobile-pentesting/android-app-pentesting/insecure-in-app-update-rce.mdAdded:
Validation passed for Markdown structure, citations, internal links, forbidden sources, diff formatting, and JavaScript syntax.
mdbookwas unavailable in the environment.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.