Subscribe to the Non-Human & AI Identity Journal

What breaks when contractors use non-human identities for their work?

The usual human access review process stops seeing the full picture. Keys, tokens, scripts, and service accounts can remain active after the contractor leaves unless they are separately inventoried and revoked. This creates hidden persistence outside the human account and makes access appear closed when it is not.

Why This Matters for Security Teams

When contractors use non-human identities for delivery work, the security model shifts from managing a person to managing a set of autonomous artefacts: API keys, service accounts, tokens, scripts, CI/CD credentials, and automation hooks. That matters because human offboarding does not reliably remove machine access. NHI Management Group notes that only 20% of organisations have formal processes for offboarding and revoking API keys, and even fewer rotate them consistently in the Ultimate Guide to NHIs.

The practical risk is hidden persistence. A contractor can leave, the HR record can close, and the human account can be disabled, while the NHI that was used to deploy code, call internal APIs, or access storage remains valid. That creates a false sense of closure and can leave active access in places human access reviews never inspect. The issue is not just ownership, but lifecycle control, inventory, and revocation discipline across both human and non-human identities. Guidance from the NIST Cybersecurity Framework 2.0 reinforces that identity governance must cover access throughout the full asset lifecycle, not just at login. In practice, many security teams discover contractor-created NHIs only after an incident response review or a failed offboarding check, rather than through intentional inventory.

How It Works in Practice

The breakdown usually starts with ownership gaps. A contractor is granted access to build pipelines, cloud resources, or internal services, then creates or inherits NHIs to do the work faster. Those identities may be embedded in scripts, stored in vaults, distributed across environments, or passed to third-party tools. If the organisation tracks only the human user, it loses sight of the machine path that actually performs the work.

Good practice is to bind contractor activity to a governed NHI lifecycle: inventory every service account, token, certificate, and API key; assign a business owner; classify its purpose; and set a clear expiry or rotation schedule. Offboarding must revoke both the contractor’s human access and any NHIs created or used for their tasks. Where possible, use short-lived credentials, workload identity, and just-in-time provisioning so the identity exists only for the approved task window. This is especially important for automation pipelines, where secrets can be copied into multiple jobs without a single clear source of truth.

Practitioners should also treat contractor NHIs as high-risk third-party access. The JetBrains GitHub plugin token exposure shows how quickly token-based access can become persistent and difficult to trace when it is not governed as a first-class identity. At the policy level, the NIST Cybersecurity Framework 2.0 is most useful here when identity, access, and recovery controls are mapped to the same asset registry and reviewed together.

  • Track contractor-created NHIs separately from human accounts.
  • Require ownership, purpose, and expiry for each secret or service account.
  • Revoke machine access at offboarding, not only the contractor login.
  • Rotate or replace long-lived credentials with short-lived alternatives where feasible.

These controls tend to break down in teams that allow contractors to self-provision secrets across multiple cloud accounts because no single system sees the full issuance and revocation chain.

Common Variations and Edge Cases

Tighter contractor NHI control often increases delivery overhead, requiring organisations to balance developer speed against revocation certainty. That tradeoff is real, especially in outsourced engineering, DevOps augmentation, and support arrangements where contractors need broad but temporary access.

Best practice is evolving for environments where contractors operate shared automation or manage customer-facing workloads. In those cases, a single service account may support many tasks, which makes individual attribution harder. Current guidance suggests reducing shared secrets wherever possible and using per-task identities, but there is no universal standard for every platform yet. Organisations should be cautious about assuming that RBAC alone solves the problem, because role assignment does not reveal whether a contractor has copied a token into a script, vault, or CI variable.

This is also where the business model matters. If contractors own integrations on behalf of the organisation, the company still needs a revocation path that survives personnel changes, vendor transitions, and emergency termination. The NHI Management Group’s research on the Ultimate Guide to NHIs is clear that visibility and rotation are weak points across most enterprises, and that weakness becomes more severe when third parties are involved. In practice, the hardest failures happen when the NHI was created for convenience, never added to inventory, and later treated as if disabling the human account was enough.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST AI RMF set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Covers rotation and revocation gaps that leave contractor NHIs active.
NIST CSF 2.0 PR.AC-4 Identity and access control must cover both human and machine access paths.
NIST AI RMF Useful where contractor-managed automation includes AI or agentic workflows.

Map contractor NHIs to access inventories and review them with the same rigor as user accounts.