ThreatDeviceSecurity

@objc
public final class ThreatDeviceSecurity : Threat

Provide details of threats related to the device. A range of checks are performed to determine the security health of the user’s device. For example, if the device is jailbroken, if the user has set a screen lock or if a debugger is attached to the process.

  • The Boolean value indicating whether the device has been compromised or is in an insecure state.

    For example, if the device has been jailbroken or is connected to a debugger, the property will return true

    Declaration

    Swift

    public var isDeviceCompromised: Result<Bool, Error> { get }
  • The current risk level as a result of evaluating the device integrity.

    If the device has been compromised a high ThreatLevel will be returned.

    Declaration

    Swift

    public var compromisedDeviceRisk: Result<ThreatLevel, Error> { get }
  • A Boolean value indicating whether app is running on an emulator.

    Declaration

    Swift

    public var isAppRunningOnEmulator: Result<Bool, Error> { get }
  • The level of risk posed by the state of the app emulator detection.

    For example, if app is running on an emulator then a HIGH ThreatLevel is returned.

    Declaration

    Swift

    public var runningOnEmulatorRisk: Result<ThreatLevel, Error> { get }
  • A Boolean value indicating whether a screen lock (e.g. passcode, or TouchID, or FaceID) is enabled on the device.

    Declaration

    Swift

    public var isScreenLockEnabled: Result<Bool, Error> { get }
  • The level of risk posed by the state of the device screen lock.

    For example, if no screen lock has been configured by the user this would be deemed a medium ThreatLevel.

    Declaration

    Swift

    public var screenLockRisk: Result<ThreatLevel, Error> { get }
  • The specific type of threat being checked

    Declaration

    Swift

    public override var type: Result<ThreatType, Error> { get }