A policy is a rule NHI Security holds your estate to. An evaluation applies every runnable policy to everything a connector has reported and writes the findings. Risk is derived from the findings that are still open. Nothing in this chain is a score the product invents: every number traces to a finding, and every finding traces to evidence a connector recorded.

The policy catalogue

The catalogue is fixed in the product. You can switch a policy off and retune its parameters; you cannot write a new one, and you cannot delete one. Forty-two policies ship. All are enabled by default except agent_invocation_rate_anomalous.

Identity and credential policies

Third-party policies

These apply only to an identity a provider names a third party for, and need third_party_inventory: until some connector has named one, both are unavailable rather than clean.

Activity policies

These need activity_events, which no connector collects. See Activity and exposure policies.

Agent policies

Twelve further policies (unowned_agent, agent_autonomy_undeclared, unsupervised_agent_mutates, agent_tool_reaches_high_impact, agent_tool_effect_unknown, agent_credential_shared, agent_acted_outside_its_tools, shadow_agent_unprofiled, agent_delegated_authority_unowned, agent_delegates_to_agent, agent_lineage_unknown and agent_invocation_rate_anomalous) hold AI agents to rules about ownership, declared autonomy, the tools they may use and who they act for. Five more (agent_tool_description_instructs_model, agent_mutating_tool_without_approval, agent_privilege_exceeds_tools, mcp_server_unauthenticated and agent_credential_long_lived) check tool descriptions, per-action approval, agent privilege, unauthenticated MCP servers and agent credential lifetime; one of them is a labelled heuristic. See AI Agent & MCP Checks. Four more (mcp_tool_description_instructs_model, mcp_tool_definition_changed, mcp_tool_high_risk_capability and mcp_server_protocol_inconsistent) judge the opt-in protocol assessment of an MCP server you run; two of them are labelled heuristics. See MCP Server Assessment.
Only the AWS and Google Cloud connectors discover AI agents, and only when turned on, so on most estates filled only by connectors these twelve policies have no subject. Those needing agent_inventory report as unavailable; the rest raise nothing. agent_lineage_unknown is unavailable on every estate, because no adapter produces the lineage edge it needs. shadow_agent_unprofiled cannot raise a finding at all: its only outcomes are pass and not assessable. See Limitations.

Reading and tuning a policy

GET /api/v1/policies returns the whole catalogue with your organization’s overrides and each policy’s availability; GET /api/v1/policies/{policyKey} returns one. Both need policy:read, which every role holds. PUT /api/v1/policies/{policyKey} enables, disables or retunes one. It needs policy:manage, which inside TRUSTIVAN is an Organization Admin. A parameter outside its range is refused with 422 and a per-parameter problem (unknown_parameter, not_a_number, not_an_integer, below_minimum, above_maximum); the rejected value is not echoed back. An unknown policy key is 404. Every policy can be switched off. None is mandatory.

Availability: what a policy needs before it can run

Each policy declares the facts it requires, drawn from a fixed list: identity inventory, identity ownership, identity usage, credential inventory, permission grants, resource classification, resource reachability, activity events, credential exposure, agent inventory, agent tool grants, agent autonomy, agent delegation, agent lineage, MCP server inventory and third-party inventory. When no connected environment supplies a required fact, the policy is unavailable and names what is missing. It is not reported as zero findings.
An unavailable policy is skipped entirely. Findings it raised on an earlier run are not resolved, because nothing looked at them. If you disconnect the environment a policy depended on, its findings stay open until the facts come back and an evaluation clears them, or you close them by hand.
Availability is about the whole organization. A single subject the policy could not assess is reported separately as not assessable, with one of a fixed set of reasons and a plain-English explanation of what was missing. Those tallies appear on the evaluation run, not in the findings queue.

Evaluation runs

An evaluation opens a run, applies every runnable policy in batches, writes the findings, captures risk snapshots, and closes the run. GET /api/v1/policies/evaluations lists runs newest first, with policy:read.

What triggers one

  • A person, through POST /api/v1/findings/evaluate or Policies → Run evaluation. This needs policy:manage, so inside TRUSTIVAN only an Organization Admin can start one. A Security Analyst can triage findings but cannot run the evaluator.
  • A synchronization that collected something, automatically, straight afterwards. A run that collected nothing triggers nothing.
Evaluation is synchronous: the request returns when the run finishes. There is no queue and no evaluation scheduler, so a large estate can exhaust an HTTP timeout. Unattended evaluation happens only as a consequence of scheduled discovery, which is itself off unless the deployment enables it. See Discovery and synchronization.
Two refusals: 409 when a run is already in progress for your organization (enforced by a database constraint, not by a check that could race) and 422 when there is no identity inventory or no runnable policy. If evaluation throws, the run is recorded as failed, audited, and the error is returned to the caller.

Findings

A finding is one policy’s conclusion about one subject, with the facts that produced it. It is identified by the policy and the subject together, so re-running evaluation updates the same finding rather than creating a second one. Findings are never deleted.

Status

PATCH /api/v1/findings/{findingId}/status needs finding:manage, which is an Organization Admin or a Security Analyst. Setting resolved is refused with 422: that status is the evaluator’s reading of evidence, not an opinion. Setting the status it already has is 409. There is no route that creates a finding. Several at once. With finding:manage, the All view of Findings has a checkbox on each row and a bar above the table: select rows or the whole page, choose a status and an optional note, and Apply. Each finding is changed with the same request as above, one after another; any the API refuses (for example, already in that status) are listed by name and stay selected.

What an evaluation does to an existing finding

  • Still matches, and it was suppressed (risk_accepted, false_positive): left alone.
  • Still matches, and it was resolved: reopened to open.
  • No longer matches: resolved, unless it is false_positive, which stays.
Every status change writes a history row with the previous status, the new one and who made the change. GET /api/v1/findings/{findingId}/history returns it, and /evidence returns the observations behind the finding.

Reading the queue

In the console, Findings groups the queue by issue with Priority and All views and a side panel; see Finding your way around the console. GET /api/v1/findings lists findings, sorted by severity, with finding:read. GET /api/v1/findings/summary gives the counts plus whether this organization has ever evaluated, so an empty queue on a never-evaluated organization does not read as a clean estate.
exposureId, resourceId and subjectKind are accepted by the list endpoint and currently have no effect on the results. Filter by identityId, credentialId, status, severity, policy, kind, provider, unownedOnly or actionableOnly instead.

Risk

Per identity

An identity’s severity is the highest severity among its open findings, not a band derived from its score. Its score is the sum of its open findings’ severity points, clamped to the range 0 to 100: Risk is computed when you read it, from the findings as they stand, so it cannot disagree with the findings page. Each contributing finding is shown with the score. GET /api/v1/findings/risk returns risk by identity; /risk/identity/{identityId}/comparison compares the live score with the most recent earlier snapshot.

Snapshots, history and posture

Every evaluation run captures a snapshot per identity that has at least one open finding (its score, severity and the findings behind it) and one organization-wide posture snapshot holding the findings by severity, the identities by risk band, how many subjects were not assessable and how many policies were unavailable. An identity with nothing open is omitted rather than written as a zero. GET /api/v1/findings/risk/posture returns the trend, up to 30 points by default and 180 at most. /risk/identity/{identityId}/history returns one identity’s snapshots, newest first. A trend point is improving, worsening, unchanged or no_comparison: band first, score as the tiebreak. A posture comparison is marked not comparable when the later run assessed less than the earlier one: if more subjects were skipped or more policies were unavailable, a lower finding count is a coverage change, not an improvement, and NHI Security says so rather than drawing an encouraging line.

Posture grades (A to F)

Every live identity gets a letter from its open findings, computed when you read it like the score: An identity that no successful policy evaluation has looked at since it was first discovered is not graded, never A: it has no findings because nothing looked. Owners, teams and connectors take the worst grade among their graded identities, never an average, so one critical identity is not diluted by a hundred clean ones; the count of identities at each grade is shown beside it. This is the same roll-up rule the AppSec grades use. The grade appears in the Identities list, on Ownership → Grades (by owner) and on the Overview (by connector). GET /api/v1/posture-grades?by=owner or ?by=connector returns the organization’s grade, each group and the formula; GET /api/v1/posture-grades/identities?ids=<id>,<id> returns up to 200 identities’ grades. Both need finding:read.

Policy exceptions

An exception records that your organization has deliberately exempted a subject from a policy, with a justification, an owner and an end date. Request it with POST /api/v1/policy-exceptions (policy:exception:request, Organization Admin or Security Analyst); decide it with POST /api/v1/policy-exceptions/{id}/decision (policy:exception:approve, Organization Admin).
  • Exactly one scope: an identity, a credential, a resource or a team. There is no “everything”.
  • Duration is 1 to 90 whole days, and expiresAt is always set: no exception is permanent. Renewal is a new request, never an extension.
  • The approver must be a different person from the requester. The attempt is refused with 403 and recorded in the audit trail as a failure.
  • Withdrawing is the requester’s act; revoking is an approver’s, and needs a reason.
What an exception does to a finding. A finding covered by an approved, unexpired exception says so. GET /api/v1/findings and GET /api/v1/findings/{findingId} return exception: {"id", "expiresAt"} on it, the findings list shows Exception until the end date under the status, and the finding page links to the exception. The exception covers a finding when the policy matches and the scope contains the finding’s subject: that identity, credential or resource, or the team that owns the finding’s identity. When several cover one finding, the one ending soonest is shown. The cover is worked out each time the finding is read and is stored nowhere, so it ends by itself: the first read after expiresAt, or after a revocation, returns exception: null. A request that has not been approved covers nothing. From a finding. With policy:exception:request, a finding’s page offers Request an exception under Triage when no exception already covers it. The dialog asks for a reason and how long (7, 30, 60 or 90 days), scopes the request to the finding’s identity, credential or resource under its policy, and makes you its owner. It opens the request’s page, where an approver decides it. A finding with no subject (an unattributed exposure or access) has nothing to scope an exception to, so the button is not shown.
An exception accepts a finding. It does not suppress it: the finding still appears in the queue, keeps its status and severity, still counts as open, and still contributes its points to the identity’s risk score. There is no filter for covered findings. See Limitations.

Remediation

A remediation action is a proposed fix, optionally linked to the finding that prompted it, that a second person approves before it is carried out. NHI Security carries out one kind of remediation: quarantine_identity. It changes NHI Security’s own record of the identity, so the runtime gate refuses every action by it and synchronization does not lift it. It changes nothing at the provider: the identity’s credentials keep working there.
  • Propose with POST /api/v1/remediation (remediation:propose, Organization Admin or Security Analyst). There is no propose form in the console.
  • It needs an approval, and the approver must not be the proposer.
  • Carry it out with POST /api/v1/remediation/{actionId}/execution.
  • Once it has succeeded it can be rolled back once, which releases the identity.
The other eight kinds are refused when proposed, with 422 and a reason, and the attempt is audited as a failure: GET /api/v1/remediation/summary returns proposableKinds, the kinds the deployment accepts. A finding’s recommended action may still name any of the nine: it says what to do, not what NHI Security will do.

Activity and exposure policies

Five activity policies and credential_exposed depend on facts no connector collects: what identities actually did, and where credential material has turned up. NHI Security does not pretend to have them: the policies report as unavailable and name the missing fact. Both facts arrive through ingestion endpoints instead, for a pipeline you run: Both permissions belong to the Organization Admin role inside TRUSTIVAN. A record that cannot be matched to anything in your inventory is still stored, marked unresolved. A record that is refused, for example for an unreadable time or a field shaped like a secret, is counted back to you rather than silently dropped. Each activity submission is recorded as an ingestion run you can list; an exposure submission is recorded in the audit trail instead. Activity, synchronizations and exposures has the request bodies, the limits and how matching works.
NHI Security has no API keys of its own. Every request is authenticated by your TRUSTIVAN session, except the runtime gate, which uses its own bearer credentials. A pipeline that ingests activity has to carry a session, which makes this an integration to plan rather than a header to set. See Limitations.