> ## Documentation Index
> Fetch the complete documentation index at: https://docs.verisoul.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Device

> Understanding device data and risk scores in Verisoul fraud prevention

Device data provides critical information about the hardware and software environment a user is using, helping to identify suspicious activities and potential fraud.

## Device Data

Verisoul collects various device signals to create a comprehensive profile of the user's environment. This data helps in identifying legitimate users and detecting potentially fraudulent activities.

### Example Device Data

```json theme={null}
{
  "browser": {
    "type": "Chrome",
    "version": "132.0.0.0",
    "language": "en",
    "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36",
    "timezone": "America/Chicago"
  },
  "device": {
    "category": "desktop",
    "type": "Mac",
    "os": "macOS 10.15.7",
    "cpu_cores": 16,
    "memory": 8,
    "gpu": "ANGLE (Apple, ANGLE Metal Renderer: Apple M4 Max, Unspecified Version)"
  }
}
```

### Device Categories

The `device.category` field indicates the type of device used in the session. In practice, 99%+ of traffic will be `desktop`, `mobile`, and `tablet`. The rest are edge cases from the user agent parser.

| Category   | Description                           | Examples                        |
| ---------- | ------------------------------------- | ------------------------------- |
| `desktop`  | Windows, Mac, and Linux computers     | MacBook, Windows PC, Chromebook |
| `mobile`   | Phones                                | iPhone, Android phones          |
| `tablet`   | Tablets                               | iPad, Android tablets           |
| `console`  | Gaming console browsers               | PlayStation, Xbox, Nintendo     |
| `smarttv`  | Smart TV browsers                     | Samsung TV, LG webOS, Roku      |
| `wearable` | Smartwatch browsers                   | Apple Watch, Wear OS            |
| `embedded` | IoT and kiosk devices                 | Kiosks, embedded browsers       |
| `other`    | Anything that doesn't match the above | —                               |

### Data Collection Limitations

It's important to note that the device information collected is not guaranteed to be complete or accurate due to several limitations:

* **Privacy-preserving browsers**: Browsers like Brave, Firefox, and Safari may intentionally mask or limit access to certain device characteristics.
* **Memory reporting**: Some browsers restrict access to accurate memory information.
* **User agent spoofing**: Users can modify their user agent strings to appear as different browsers or devices.
* **Hardware access restrictions**: Browser security measures may limit access to detailed hardware information.
* **OS-level restrictions**: Operating systems may prevent access to certain device characteristics.

These limitations are part of the evolving privacy landscape in web browsers and should be considered when analyzing device data.

## Device Risk Score

The device risk score is a machine learning model output that evaluates how likely a device is to be associated with fraudulent activity.

### Example Device Risk Score

```json theme={null}
{
  "device_risk": 0.0295
}
```

### Understanding Device Risk

The device risk score is triggered when characteristics about the device deviate from patterns seen in normal devices. Higher scores indicate greater likelihood of suspicious activity.

Factors that can influence the device risk score include:

* **Browser automation**: Signs that the browser is being controlled programmatically
* **Bot activity**: Patterns consistent with automated bot behavior
* **Emulators**: Evidence that the device is an emulated environment rather than physical hardware
* **Virtual machines**: Indicators that the session is running in a virtualized environment
* **Inconsistent device signals**: Contradictory or impossible combinations of device characteristics
* **Tampering**: Signs that device fingerprinting is being actively circumvented
