Subscribe to the Non-Human & AI Identity Journal

Capability-based isolation

A design approach that removes dangerous powers from untrusted code rather than trying to block individual risky functions. It is stronger than a blocklist because the runtime simply does not expose the capability needed to spawn processes, reach sensitive files, or call protected services.

Expanded Definition

Capability-based isolation is a runtime design pattern that limits what untrusted code can do by withholding the ability itself, rather than trying to detect every bad action after the fact. In NHI and agentic AI environments, this usually means an agent, plugin, function, or service account is given only the narrow capabilities it needs to complete a task, with no ambient authority to browse the filesystem, spawn subprocesses, or call unrelated services.

Compared with blocklists, this approach is more robust because it treats authority as explicit and distributable. That aligns closely with least privilege ideas in the NIST Cybersecurity Framework 2.0, but the implementation details vary across runtimes and orchestrators, and no single standard governs this yet. In practice, capability-based isolation often sits alongside sandboxing, token scoping, and policy enforcement so that access is constrained even if the code is compromised. NHI Management Group treats this as a control boundary, not just an application-hardening tactic. The most common misapplication is assuming a denylist is equivalent to isolation, which occurs when developers expose broad runtime permissions and then try to filter dangerous calls afterward.

Examples and Use Cases

Implementing capability-based isolation rigorously often introduces integration overhead, requiring organisations to weigh tighter containment against developer convenience and operational friction.

  • An AI agent can read a single approved dataset through a scoped token, but cannot enumerate other datasets or reach the underlying database console.
  • A build job is allowed to write artifacts to one temporary directory, while process creation and outbound network access are removed from its runtime profile.
  • A plugin that summarizes tickets can access only ticket content, not the parent SaaS tenant, reducing blast radius if the plugin is manipulated.
  • A service account used for payment validation can call one internal API and nothing else, reflecting the kind of governance challenges discussed in the Ultimate Guide to NHIs.
  • Container or microVM isolation is paired with capability tokens so even if code execution is achieved, the runtime cannot inherit broad host permissions.

These patterns are especially important where capability scope must be proven, not assumed. Guidance in the NIST Cybersecurity Framework 2.0 supports the same practical direction, even when the technical mechanism differs by platform.

Why It Matters in NHI Security

Capability-based isolation matters because NHI compromise usually becomes severe only when a compromised identity can move laterally, access secrets, or invoke privileged workflows. NHI Management Group notes that Ultimate Guide to NHIs reports 97% of NHIs carry excessive privileges, which makes authority reduction a core control objective rather than an optional hardening step. When untrusted code is isolated by capability, a stolen token or poisoned agent prompt has far less room to cause escalation, data exposure, or unauthorized service calls.

This is especially relevant in agentic systems where the line between code execution and identity use is blurred. Capability-based isolation helps translate Zero Trust principles into operational limits for software entities, including APIs, bots, and service accounts. It also complements broader NHI hygiene such as secret rotation and offboarding, because even well-managed credentials remain dangerous if the runtime is over-permissioned. Organisations typically encounter the need for capability-based isolation only after a service account abuse, container escape, or agent-driven data leak, at which point the term becomes operationally unavoidable to address.

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 Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
OWASP Non-Human Identity Top 10 NHI-03 Isolation limits agent and service-account blast radius, matching runtime privilege controls.
NIST Zero Trust (SP 800-207) AC-6 Zero Trust requires least privilege and explicit access decisions for every resource request.
NIST CSF 2.0 PR.AC-4 This term operationalizes least privilege by constraining what a workload can invoke.

Remove unnecessary runtime capabilities and test that compromised NHI workloads cannot exceed them.