- Home
- Techniques
- Mobile
- Modify System Partition
Modify System Partition
If an adversary can escalate privileges, he or she may be able to use those privileges to place malicious code in the device system partition, where it may persist after device resets and may not be easily removed by the device user.
Many Android devices provide the ability to unlock the bootloader for development purposes. An unlocked bootloader may provide the ability for an adversary to modify the system partition. Even if the bootloader is locked, it may be possible for an adversary to escalate privileges and then modify the system partition.
Procedure Examples
Name | Description |
---|---|
BrainTest |
BrainTest uses root privileges (if available) to copy an additional Android app package (APK) to /system/priv-app to maintain persistence even after a factory reset.[1] |
Dvmap |
Dvmap replaces |
FlexiSpy | |
Monokle |
Monokle can remount the system partition as read/write to install attacker-specified certificates.[4] |
Pegasus for Android |
Pegasus for Android attempts to modify the device's system partition.[5] |
Pegasus for iOS |
Pegasus for iOS modifies the system partition to maintain persistence.[6] |
ShiftyBug |
ShiftyBug is auto-rooting adware that embeds itself as a system application, making it nearly impossible to remove.[7] |
SpyDealer |
SpyDealer maintains persistence by installing an Android application package (APK) on the system partition.[8] |
Zen |
Zen can install itself on the system partition to achieve persistence. Zen can also replace |
Mitigations
Mitigation | Description |
---|---|
Lock Bootloader | |
Security Updates | |
System Partition Integrity |
Detection
Android devices with the Verified Boot capability [10] perform cryptographic checks of the integrity of the system partition.
The Android SafetyNet API's remote attestation capability could potentially be used to identify and respond to compromised devices.
Samsung KNOX also provides a remote attestation capability on supported Samsung Android devices.
iOS devices will fail to boot or fail to allow device activation if unauthorized modifications are detected.[11]
References
- Chris Dehghanpoor. (2016, January 6). Brain Test re-emerges: 13 apps found in Google Play Read more: Brain Test re-emerges: 13 apps found in Google Play. Retrieved December 21, 2016.
- R. Unuchek. (2017, June 8). Dvmap: the first Android malware with code injection. Retrieved December 10, 2019.
- K. Lu. (n.d.). Deep Technical Analysis of the Spyware FlexiSpy for Android. Retrieved September 10, 2019.
- Bauer A., Kumar A., Hebeisen C., et al. (2019, July). Monokle: The Mobile Surveillance Tooling of the Special Technology Center. Retrieved September 4, 2019.
- Mike Murray. (2017, April 3). Pegasus for Android: the other side of the story emerges. Retrieved April 16, 2017.
- Lookout. (2016). Technical Analysis of Pegasus Spyware. Retrieved December 12, 2016.
- Michael Bentley. (2015, November 4). Lookout discovers new trojanized adware; 20K popular apps caught in the crossfire. Retrieved December 21, 2016.
- Wenjun Hu, Cong Zheng and Zhi Xu. (2017, July 6). SpyDealer: Android Trojan Spying on More Than 40 Apps. Retrieved September 18, 2018.
- Siewierski, L. (2019, January 11). PHA Family Highlights: Zen and its cousins . Retrieved July 27, 2020.
- Android. (n.d.). Verified Boot. Retrieved December 21, 2016.
- Apple. (2016, May). iOS Security. Retrieved December 21, 2016.