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
- Starts a session, from the CLI or the browser
- Reveals the account’s credentials
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.Prerequisites
- The Product Admin role in PAM
- A SentinelOne connection whose service user can view the endpoints that your users connect from
- The Infisical CLI on each user’s computer
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.
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
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.- CLI
- 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 device has no SentinelOne agent
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.
Protection is off or a threat is active
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.
The CLI can't read the serial number on Linux
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.The code expired
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.
SentinelOne rejected the API token
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 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.