Skip to main content
Device posture checks require users to have a company computer that your endpoint security service protects before they reach sensitive accounts. 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 adds the Require Device Posture policy to an account template. 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: 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, 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 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.
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

Set up device posture

1
Go to Privileged Access Management > Account Templates and open the template.
2
On the General tab, turn on Require Device Posture.
3
Select Add Provider and choose SentinelOne.
4
Under Connection, choose your SentinelOne connection. If you haven’t created one yet, you can create it from the same list.
5
Under Checks, turn on the SentinelOne checks the device must pass. Disk Encrypted starts on.
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: 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.
infisical 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.

Auto-approve requests from a passing device

A folder’s auto-approval 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

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.
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.
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.
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.
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 in SentinelOne, then update the SentinelOne connection in Infisical with it.

Next steps

Account templates

See the other policies a template can set.

Auto-approval

Approve requests from a device that passes your checks.