Security Model
This page lists the checks an agent makes before it runs an action. It is written for the security team that reviews Endpoint Management before it is switched on.
The checks, in the order an action meets them:
| Check | What it proves | Who holds the key |
|---|---|---|
| TLS with a pinned certificate | The agent is talking to its own collection server | The collection server |
| Command signing | This action came from your xAssets server, unchanged, within the last 5 minutes | The agent and your app server |
| Script seal | People you named approved this exact script code | Your approvers |
The first two stop a forged action. The third stops an unapproved script, even one sent by your own server.
The connection
The agent opens the connection to its collection server over TLS. A certificate that Windows validates through a public or enterprise authority is accepted. A self-signed certificate is accepted on the first connection, and its thumbprint is recorded for that host and port. A different thumbprint later is refused. See Network Requirements and Certificate Change.
Command signing
Every action is signed for each target computer with HMAC-SHA256. Each agent has its own key. Only the agent and your app server hold it. The collection server relays actions and cannot sign them.
The agent checks three things before it runs an action:
- The signature matches the action, byte for byte, under its own key.
- The timestamp is within 5 minutes of the agent's clock.
- The agent has not accepted the same signature before. Accepted signatures are kept on disk, so a service restart does not reopen a replay.
An action kept for an offline computer for more than 5 minutes is signed again by your app server before it is sent. The server signs again only an action it signed for that computer, for the same run, while the run waits for its reply. The action also carries its first signature. The agent checks both and refuses an action it has already received, so an action sent twice runs once.
The agent keeps the first signing key it receives. An action signed by any other key is refused with "failed signature verification". A computer first keyed by another xAssets database refuses this one. Installing the agent from this database with administrator credentials takes the computer over. See Agent States.
If the server cannot sign an action, it refuses the run. There is no unsigned mode and no setting to switch signing off.
Command signing protections
| Attacker | Result |
|---|---|
| Controls the network between the agent and the collection server | Cannot read or change actions (TLS). Cannot make the agent trust a new collection server (pinned certificate). |
| Controls a collection server | Can delay or drop actions. Cannot create or change one. Every action it relays must carry a signature from the app server. Cannot invent an agent's result. See Signed results. |
| Captures a signed action | Cannot run it again. The signature is refused as already used, and after 5 minutes as expired. |
| Runs another xAssets database | Cannot send actions to your computers. They hold your key. |
Signed results
The agent signs what it sends back with a key made from its own signing key. That covers its answer to each run, each health reading and each discovery inventory. The Windows, Mac and Linux agents all sign. The collection server relays the results and never holds the key.
Your app server checks each signature against the keys it holds for that computer. A result changed on the way, or made by another computer, is refused. A health reading taken more than 30 days ago, or dated in the future, is refused too.
The AgentResultSignatures setting sets how strict the check is:
| Value | Effect |
|---|---|
| Blank (default) | A signed result is checked. An unsigned result is accepted, as older agents send. |
1 |
An unsigned success, reading or inventory is refused as well. An unsigned failure is still recorded. |
0 |
Nothing is checked. |
A refused answer to a run is recorded as a failure with the reason. A refused reading is logged and dropped. A refused inventory is set aside and not loaded.
Set 1 only when every agent runs this release. With 1, agentless discovery and network scans load nothing for a computer that has an agent. Agents also send each inventory whole, so traffic from the collection server to the app server grows.
A collection server can still make a run fail by dropping it. It cannot make one succeed. For results from computers without an agent, see Agentless result proof.
Script seal
Command signing proves an action came from your server. It cannot tell whether the person at the server should have sent it. In 2026 an attacker took over a large company's device management console with a stolen administrator account. The console then sent its own correctly signed commands to every managed device.
The script seal covers that case for script code. Every script block an action sends is checked against signatures from named people before it runs. A stolen administrator account cannot add those signatures.
Signed content
The agent computes a SHA-256 fingerprint over the script's language and its exact text. A seal is a signed statement of that fingerprint, its kind and its expiry time. Signatures use ECDSA with the P-256 curve and SHA-256.
A changed character changes the fingerprint. The seal then no longer matches, and the agent refuses the script.
Values are passed to a script as environment variables named XA_<Name>. The server never pastes a value into sealed code. If the code differs before and after values are added, the server refuses the run.
Signers
| Seal | Signed by | Valid for |
|---|---|---|
| Shipped | xAssets, when the product is built | The life of that product version |
| Library | Your approvers | 3 days from the first signature (setting ScriptApprovalWindowDays, 1 to 30) |
| Emergency approval | One of your approvers | 4 hours. Only when your keyring allows it. |
The server checks seals before it sends a script. The agent checks them again on the computer. A script without a valid seal is refused at both points.
Run Command uses the same seal. Each exact command line is approved once, as a one-line script. See Run Command.
Approver keys
Each approver makes a key pair on their own work PC, through the xAssets icon by the clock. The key is made in the PC's TPM where there is one, otherwise in the user's profile. It cannot be exported. The server stores the public key only.
Every approval and every keyring change is signed on an approver's PC. The approver types a two-digit number from the browser of the person who asked. A new approver is signed in by a current approver, who types the new approver's approval number.
One person counts once. The server allows one approval per person. The agent counts distinct keys.
The xAssets key
xAssets signs the scripts that come with the product when the product is built. Nothing is signed at run time, and no seal service is called. The private key is never sent to a customer server. Its public key is built into the agent. Agent installers are signed releases too.
xAssets staff approve nothing for a customer. The customer decides the chain of approval, and how long that chain is.
The keyring
The keyring is the signed list of your approvers' public keys. It also holds your approval rule:
| Field | Range | Default |
|---|---|---|
| Company approvals a library script needs | 1 to 5 | 2 |
| Emergency approval allowed | Yes or No | No |
The agent stores the keyring and reads the rule from it. A rule changed on the server has no effect until the computer accepts a signed keyring with the new rule.
The agent accepts a new keyring only when all of these hold:
- Its version number is higher than the version the agent holds.
- From version 2, enough keys in the version the agent holds have signed it. Stricter changes need one approver. Looser changes need the number of current approvers you set.
- It names the same database as the first keyring the agent accepted.
- If you set a wait (DMPCApproveGrantDelayHours), the agent counts it from when it receives the change. The server cannot shorten it.
A computer whose keyring has expired runs read-only and routine actions only until its approvers renew it. Only the expired keyring's approvers can renew it, so a server cannot wait out the expiry and install its own keyring.
Your server alone can never add an approver or relax the rule. By default one current approver signs a new approver (DMPCApproveGrantCount is 1). With Lock Approvers on, two people sign.
The first keyring lists one approver. That person signs it, and it needs no other signature. It can be made only while the first approver window is open. An administrator opens that window on the server console, never from a web login. Add a second approver so one lost PC cannot lock you out. xAssets cannot recover your approvers. Each agent refuses a recovery keyring signed by xAssets. If too many approvers leave, your recovery custodians replace them. See If Your Approvers Leave. If the custodians are lost too, or none were set up, a local administrator clears the approver list on each PC as the last resort. A PC moved to another database keeps its list until a local administrator clears it. See First Approver and Lock Approvers.
See Approvers and the Keyring.
Stolen administrator account
| Action | Result |
|---|---|
| Run a new script on your computers | Refused by the server and by the agent. The script has no seal. |
| Change an approved script | Refused. The fingerprint changes and the seal no longer matches. |
| Approve a script alone | Refused. The rule needs the number of approvals you set (2 by default). The account holder needs an approver's PC. |
| Add an approver or relax the rule | Refused by the agent. A new keyring needs the number of current approvers you set, signing on their own PCs. |
| Make their own laptop an approver | Refused. A current approver must sign it on their PC and type the approval number. Every approver and your security mailbox are emailed about the request at once. |
| Issue an agent install code | Possible. Your security mailbox is emailed when the login is not an approver. The new computer is an ordinary endpoint. |
| Push their own agent package | Refused. Agents install and upgrade only a package named in a release manifest signed by xAssets. |
| Use Emergency Approval | Possible only if your keyring allows it. The attacker also needs that approver's PC. Every run is labeled BREAK-GLASS: in Activity. |
| Run a built-in action, such as a restart | Possible. Built-in actions are part of the signed agent and need no seal. Each run is recorded in Activity > Jobs. |
Scope
- Seals cover script code and Run Command. Built-in actions are code inside the signed agent. Command signing covers them.
- Seals are checked by agents from version 7.3.6009. An older agent ignores seals until it upgrades.
- A local administrator on a computer controls that computer. The agent cannot defend its own files or settings against one.