Device Fraud Detection protects mobile apps, H5 pages, and miniapps against device-level fraud. It detects emulator attacks, app multi-instance attacks, malicious tool execution, and tampered device parameters, protects against technical attacks, and generates a unique device ID. Deploy it in key business scenarios — registration, logon, ordering, and coupon collection — to reduce fraud losses and grow your genuine user base.
Editions
Device Fraud Detection offers two editions to match your risk control requirements.
| Feature | Basic Edition | Enhanced Edition |
|---|---|---|
| Real-time computing | Supported | Supported |
| Service response | Risk tag | Risk tag and unique device ID |
| Simple Log Service (SLS) delivery | Not supported | Supported. Grant authorization to enable log delivery. Logs are stored for one year at no charge. |
Service input parameters
Service event parameters are passed via the ServiceParameters common request parameter in JSON format. For more information, see Common parameters.
SDK for native apps on Android and iOS
| Field name | Description | Data type | Example | Required |
|---|---|---|---|---|
deviceToken | The device token returned by the Device Fraud Detection SDK. | String | Tk9SSUQuMS*** | Yes |
A token is typically around 600 bytes. On poor network connections, tokens can exceed 2.5 KB. If you consistently receive oversized tokens, verify that the client has a stable network connection, and make sure at least 2 seconds elapse between callinginitand callinggetSession.
Service response parameters
Device Fraud Detection returns a risk tag and, in Advanced Edition, a device ID.
Device ID
The device ID is returned only in Advanced Edition (device_risk_pro). It is the value of theextendfield in theDataresponse parameter.
Risk tags
The tags field in the Data response parameter contains the risk tags. Multiple tags are separated by commas (,).
| Value | Description |
|---|---|
is_emulator | The device is suspected of being an emulator. |
is_rooted | The device is suspected of being rooted. |
is_virtual | The device is suspected of running multiple instances of the app. |
For the full list of device risk tags, go to the Fraud Detection console and navigate to Provisioning. Go to console
For common response parameters, see the "Common response parameters" section in Common parameters.