Provide details of threats related to the device. More...
Inherits Threat.
A range of checks are performed to determine the security health of the users device. For example, if the user has rooted the device, whether the disk is unencrypted, if the user has set a screen lock, or if the device is running in developer mode.
Public Member Functions | |
boolean | isDeviceCompromised () |
Return whether the device has been compromised or is in an insecure state. More... | |
ThreatLevel | getCompromisedDeviceRisk () |
Return the current risk level from evaluating the device integrity. More... | |
boolean | isDiskUnencrypted () |
Return the state of disk encryption for the device. More... | |
ThreatLevel | getDiskUnencryptedRisk () |
Return the current risk level related to disk encryption on the device. More... | |
boolean | isDeveloperModeEnabled () |
Return the state of the Android developer mode on the device. More... | |
ThreatLevel | getDeveloperModeRisk () |
Return the current risk level related to the application running in developer mode. More... | |
boolean | isScreenLockDisabled () |
Return whether a screen lock is not configured by the user. More... | |
ThreatLevel | getScreenLockRisk () |
Return the current risk level related to the state of the device screen lock. More... | |
boolean | isDeviceAttestationFailed () |
Return the state of the Android Safetynet device attestation checks. More... | |
ThreatLevel | getDeviceAttestationRisk () |
Return the current risk level related to the device attestation checks. More... | |
boolean | isRunningOnEmulator () |
Returns true or false based on whether the app is running on an Emulator or on a device. | |
ThreatLevel | getRunningOnEmulatorRisk () |
Return the current risk level related to the application running on an Emulator. More... | |
Public Member Functions inherited from Threat | |
ThreatType | getType () |
Indicate the type of threat being checked. More... | |
long | getEvaluatedTime () |
Determine when the check last completed. More... | |
ThreatLevel | getRiskLevel () |
Return the level of risk posed by the threat. More... | |
boolean | getDetectionEnabled () |
Check whether the threat is being evaluated. More... | |
boolean | isEnabled () |
Return whether the detection for this threat is enabled by configuration. More... | |
String | getInfo () |
Get information on possible remediation actions to the threat. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Threat | |
boolean | isChecked () |
Return if the check has been executed by the runtime. More... | |
boolean isDeviceCompromised | ( | ) |
Return whether the device has been compromised or is in an insecure state. For example, if the device has been rooted or is connected to a debugger.
ThreatLevel getCompromisedDeviceRisk | ( | ) |
Return the level of risk posed by the current device state. If the device has been compromised a HIGH risk level will be returned.
boolean isDiskUnencrypted | ( | ) |
Return whether the native disk encryption feature is enabled within Android on the device.
ThreatLevel getDiskUnencryptedRisk | ( | ) |
Return the level of risk posed by the Android native disk encryption state on the device.
boolean isDeveloperModeEnabled | ( | ) |
Return whether the native developer mode is enabled on the device.
ThreatLevel getDeveloperModeRisk | ( | ) |
Return the level of risk posed by the app running in developer mode.
boolean isScreenLockDisabled | ( | ) |
Return whether a screen lock (pattern, pin, password) is not currently enabled on the device.
ThreatLevel getScreenLockRisk | ( | ) |
Return the level of risk posed by the state of the device screen lock. If no screen lock has been configured by the user this would be deemed a MEDIUM risk level.
boolean isDeviceAttestationFailed | ( | ) |
Return the state of the Android Safetynet device attestation checks.
ThreatLevel getDeviceAttestationRisk | ( | ) |
Return the level of risk posed by the device attestation checks. If device attestation fails this could mean the boot loader is compromised and the security risk is level is HIGH.
ThreatLevel getRunningOnEmulatorRisk | ( | ) |
Return the level of risk posed by the app running on an emulator.