Services

Services are used for long running tasks which should be run in background.

Ex: Downloading/Uploading a large size file, Media Controls.

Exported Service

Like Activities exported services can also be started by malicious apps, depending on how the service is using the intent received from malicious application impact can vary.

Impact: Malicious apps can start vulnerable app's services.

Mitigation: Do not export the services, Use Permissions to safeguard services from being used by malicious apps.

Exported Bound Service using Messenger

Bound services are services which can send & receive data from other apps which binds to the service.

The service which returns messenger instance in onBind method of service implementation are generally vulnerable to this attack method.

Impact: Malicious Apps can bind & communicate to vulnerable services using message handlers.

Mitigation: Use Local Binders, Do not allow external app to bind to services, Use permissions to protect services.

Last updated