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

# Device posture

> Require users to have a company device protected by SentinelOne that passes the checks you choose before they reach PAM accounts.

Device posture checks require users to have a company computer that your endpoint security service protects before they reach sensitive [accounts](https://infisical.com/docs/documentation/platform/pam/accounts/overview.md). For example, you can require that users have a laptop with an active SentinelOne agent, no active threats, and an encrypted disk before they reach a production database.

To turn the checks on, a [Product Admin](https://infisical.com/docs/documentation/platform/pam/concepts/access-control.md#product-membership) adds the **Require Device Posture** policy to an [account template](https://infisical.com/docs/documentation/platform/pam/templates/overview.md). The policy then applies to every account that uses the template.

## Device checks

The policy lists one or more device posture providers, each with its own checks. The device must pass the checks of every provider. SentinelOne, an endpoint detection and response (EDR) service, is the only provider.

### Actions that trigger a check

Infisical requires a passed device check, and refuses the action without one, when a user does one of the following on an account that requires device posture. A passed check can be used for 5 minutes, for the same account and action:

* Submits an [access request](https://infisical.com/docs/documentation/platform/pam/access-requests/overview.md)
* Starts a [session](https://infisical.com/docs/documentation/platform/pam/sessions/overview), from the CLI or the browser
* Reveals the account's [credentials](https://infisical.com/docs/documentation/platform/pam/accounts/view-credentials.md)

Machine identities have no device, so they can't use accounts whose template has **Require Device Posture**.

Users see only whether their device passed, not which checks failed or the device's details, so they can't use the check to read another device's posture. Every device check adds a **Check PAM Device Posture** event to the [audit log](https://infisical.com/docs/documentation/platform/pam/auditing.md), with the result, the device's serial number, and each failed check with its reason, such as an OS version below the minimum.

### Device identification

The [Infisical CLI](https://infisical.com/docs/cli/overview.md) reads the computer's hardware serial number, and Infisical looks up the SentinelOne agent with that serial number. Everything else Infisical checks, such as threats, disk encryption, and the OS version, comes from SentinelOne, not from the computer. SentinelOne doesn't record who a device belongs to, so any user can pass on any company device that passes the checks. The CLI can read the serial number on macOS and Windows. On Linux, the serial number must be readable by the user who runs the CLI.

> [!WARNING]
>
> Device checks aren't hardware-backed attestation. Infisical trusts the serial number that the CLI sends from the user's computer, and serial numbers are often printed on the device. A user who learns the serial number of another company device that passes the checks could send it. Treat a passed check as confirmation that a compliant company device exists, not as proof of which computer sent the request.

## Prerequisites

* The [Product Admin](https://infisical.com/docs/documentation/platform/pam/concepts/access-control.md#product-membership) role in PAM
* A [SentinelOne connection](https://infisical.com/docs/integrations/app-connections/sentinelone.md) whose service user can view the endpoints that your users connect from
* The [Infisical CLI](https://infisical.com/docs/cli/overview.md) on each user's computer

## Set up device posture

**Step 1**

Go to **Privileged Access Management** > **Account Templates** and open the template.

**Step 2**

On the **General** tab, turn on **Require Device Posture**.

**Step 3**

Select **Add Provider** and choose **SentinelOne**.

**Step 4**

Under **Connection**, choose your SentinelOne connection. If you haven't created one yet, you can create it from the same list.

**Step 5**

Under **Checks**, turn on the [SentinelOne checks](#sentinelone-checks) the device must pass. **Disk Encrypted** starts on.

**Step 6**

Select **Save Changes**.

To stop checking devices, turn off **Require Device Posture** and save the template.

### SentinelOne checks

Every device runs the **Protected Device** check, which passes when SentinelOne reports all of the following:

* A SentinelOne agent with the device's serial number, which isn't decommissioned or uninstalled
* The agent is active
* The device isn't infected and has no active threats
* SentinelOne protection is fully on

You can add these checks:

| Check | Passes when |
| - | - |
| **Disk Encrypted** | SentinelOne reports the disk as encrypted, such as with FileVault on macOS or BitLocker on Windows |
| **Minimum OS Version** | The device's OS version is at least the minimum you enter for its platform. macOS and Windows have separate minimums, such as `15.0` and `10.0.22631`. If you leave a platform empty, any version passes. The check doesn't apply to Linux devices |

If Infisical can't reach SentinelOne, or SentinelOne rejects the connection's token, the device check fails.

## Check your device

Users check their device with the Infisical CLI, whether they connect from the CLI or from the browser.

> [tab] CLI
>
> [`infisical pam access`](https://infisical.com/docs/cli/reference#pam-access) checks the device automatically when the account needs it, before it opens the session. It also checks the device when it files an access request. The CLI prints whether the device passed, and stops if it didn't.

> [tab] Browser
>
> **Step 1**
>
> When you launch a session or reveal credentials, Infisical starts the device check on its own. When you request access, select **Verify Device**.
>
> **Step 2**
>
> In a terminal on the same computer, run the [`infisical pam verify-device`](https://infisical.com/docs/cli/reference#pam-verify-device) command that Infisical shows, such as `infisical pam verify-device ABCD-EF23`. The CLI must be logged in as the same user as the browser, and the code expires after 5 minutes.
>
> **Step 3**
>
> Return to your browser. Infisical shows whether the device passed.
>
> A passed check is valid for 5 minutes. If the device fails, contact your IT team. They can see why in the audit log. After they fix it, select **Check Again**. Changes in SentinelOne can take a few minutes to show up.

## Auto-approve requests from a passing device

A folder's [auto-approval](https://infisical.com/docs/documentation/platform/pam/access-requests/auto-approval.md#device-posture) rules can use the device check too. A rule with the **Device passes the posture checks** condition approves a request from a device that passes this policy's checks, without waiting for an approver. Access that the rule approves is limited to the serial number the user's computer reported.

## Troubleshooting

> [accordion] The device has no SentinelOne agent
>
> The audit log shows that the serial number has no SentinelOne agent. Install the SentinelOne agent on the device, or connect from a device that already has it. SentinelOne doesn't report serial numbers for some Linux machines.

> [accordion] Protection is off or a threat is active
>
> SentinelOne reports the device as infected, with active threats, or with protection turned off. Ask your security team to resolve the threats or turn protection back on in SentinelOne, then check again.

> [accordion] The CLI can't read the serial number on Linux
>
> On most Linux systems, only root can read the serial number. Ask your IT team to make `/sys/class/dmi/id/product_serial` readable by your user, for example with a `udev` rule. Don't run the CLI as root for this, since the whole session would then run as root. Virtual machines and some hardware don't have a readable serial number.

> [accordion] The code expired
>
> Each code works once and expires after 5 minutes. Select **Try Again** in the browser to get a new code, then run the new command.

> [accordion] SentinelOne rejected the API token
>
> SentinelOne API tokens expire on the date you set when you created them. Until you replace the token, every device check fails with an error that says SentinelOne rejected the token. [Create a new token](https://infisical.com/docs/integrations/app-connections/sentinelone.md#step-1-create-a-service-user-and-api-token) in SentinelOne, then update the SentinelOne connection in Infisical with it.

## Next steps

> [card] [Account templates](https://infisical.com/docs/documentation/platform/pam/templates/overview.md)
>
> See the other policies a template can set.

> [card] [Auto-approval](https://infisical.com/docs/documentation/platform/pam/access-requests/auto-approval.md)
>
> Approve requests from a device that passes your checks.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.