MITRE ATT&CKtechnique
T1541 Foreground Persistence
- Domain
- mobile
- Tactics
- Defense Evasion, Persistence
- Platforms
- Android
- Version
- 2.1
- Created
- 2019-11-19
Description
Adversaries may abuse Android's `startForeground()` API method to maintain continuous sensor access. Beginning in Android 9, idle applications running in the background no longer have access to device sensors, such as the camera, microphone, and gyroscope. Applications can retain sensor access by running in the foreground, using Android’s `startForeground()` API method. This informs the system that the user is actively interacting with the application, and it should not be killed. The only requirement to start a foreground service is showing a persistent notification to the user.
Malicious applications may abuse the `startForeground()` API method to continue running in the foreground, while presenting a notification to the user pretending to be a genuine application. This would allow unhindered access to the device’s sensors, assuming permission has been previously granted.
Malicious applications may also abuse the `startForeground()` API to inform the Android system that the user is actively interacting with the application, thus preventing it from being killed by the low memory killer.
Related
Referenced by MITRE ATT&CK · mitigates (1)
- M1011 User Guidance mitigation
References
- https://developer.android.com/guide/topics/sensors/sensors_overview#sensors-practices Android-SensorsOverview
- https://developer.android.com/guide/components/services.html#Foreground Android-ForegroundServices
- https://blog.trendmicro.com/trendlabs-security-intelligence/fake-photo-beautification-apps-on-google-play-can-read-sms-verification-code-to-trigger-wireless-application-protocol-wap-carrier-billing/ TrendMicro-Yellow Camera
- https://i.blackhat.com/eu-19/Thursday/eu-19-Sutter-Simple-Spyware-Androids-Invisible-Foreground-Services-And-How-To-Abuse-Them.pdf BlackHat Sutter Android Foreground 2019
- https://pages.nist.gov/mobile-threat-catalogue/application-threats/APP-19.html NIST Mobile Threat Catalogue