Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Explains MITRE ATT&CK T1541 Foreground Persistence, where Android apps abuse startForeground() to keep sensor access and avoid being killed.
65% 78%+13 ptsof test cases passed
Passed 18 of 23 test cases with the skill, and 15 of 23 without it.
3 of 3 safety checks passed
Not used yet
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.
Platforms: Android
Determine if the target mobile environment is susceptible to Foreground Persistence by examining the target platforms (Android).
Review whether mitigations for T1541 are in place. If defenses are absent or misconfigured, this technique may be exploitable.
If a user sees a persistent notification they do not recognize, they should uninstall the source application and look for other unwanted applications or anomalies.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.