Device Security Kit provides DeviceVerify, SafetyDetect, TrustedAppService, and TrustedAuthentication to protect apps from security threats and ensure app data security.
DeviceVerify: Checks and manages the status of an app on a device, including determining whether the app is installed for the first time on the device or whether the user has obtained a coupon on the device, to support new user acquisition campaigns.
SafetyDetect: Checks whether the device environment is secure, for example, whether the device environment is jailbroken or simulated. You can determine how to respond accordingly. SafetyDetect also checks whether the URL accessed by a user is malicious. If the URL is malicious, you can evaluate the risk and either warn the user of the risk or block the URL. In app risk control scenarios, SafetyDetect provides a unified risk control credential capability to obtain system risk control factor data and security credentials, helping you quickly build a reliable risk control system.
TrustedAppService: Provides the data security attestation for location security verification, ensuring that location data is not tampered with.
TrustedAuthentication (digital shield): Provides TUI-based PIN authentication and TUI-based transaction confirmation to enhance financial security for finance apps in digital shield transaction scenarios. TUI is short for trusted user interface.
Device token: a token generated by Device Security Kit to identify a device and app.
nonce: generated by the developer and included in the system integrity check result. The caller verifies the nonce value to determine whether the check result has been under replay attacks.
Security attestation: a service provided by the TrustedAppService module to verify data authenticity and integrity and ensure that data is not tampered with during generation, transmission, and storage.
Attestation key: an encryption key generated in the security attestation service. It is used to generate and verify the digital signature of data.
Attestation session: context of the security attestation service. Before using the location security verification function, you need to create an attestation session to verify the validity of the attestation key.
Digital shield, Universal Keystore Kit, and User Authentication Kit jointly provide the trusted UI, trusted authentication, and trusted signature capabilities for digital shield development of finance apps.
The service relationship is as follows.

| Scenario | Country/Region |
|---|---|
| DeviceVerify | See Supported Countries/Regions. |
| SafetyDetect - System Integrity Check | Chinese mainland |
| SafetyDetect - URL Check | Chinese mainland |
| SafetyDetect - Local System Integrity Check | See Supported Countries/Regions. |
| SafetyDetect - Enhanced System Integrity Check | Chinese mainland |
| SafetyDetect - Unified Risk Control Credential | See Supported Countries/Regions. |
| TrustedAppService | Chinese mainland |
| TrustedAuthentication (digital shield) | Chinese mainland |
| Scenario | Supported Device |
|---|---|
| DeviceVerify | Phones, tablets, PCs/2-in-1 devices, wearables, and TVs |
| SafetyDetect | Phones, tablets, PCs/2-in-1 devices, and wearables |
| TrustedAppService | Phones, tablets, and PCs/2-in-1 devices |
| TrustedAuthentication (digital shield) | Phones, tablets, and PCs/2-in-1 devices |