What Is Capability-Based Security
<!-- hierarchy:nav -->
Path: OIP › Thinker Reference › Protocol Concepts › What Is Capability-Based Security
Shelf: Protocol Concepts · Traversal: self-explaining · hierarchical · voxel-ready
Machine root: OIP tree · Registry
What Is Capability-Based Security
§SELF — what-is-capability-security
What this page is: A definition of capability-based security and its core principles. What it explains: How possession of a reference (capability) grants permission to use a resource, eliminating the need for separate access control mechanisms. Why read it: To understand why capability security removes entire categories of vulnerabilities that traditional permission-based systems cannot prevent.
What Capability-Based Security Is
Capability-based security is an access control model where possession of an unforgeable reference (called a capability) to a resource is both necessary and sufficient to use that resource. There is no separate permission check, no access control list, and no central authority that decides who can do what. If you hold the capability, you can use the resource. If you do not hold it, you cannot.
The model was first proposed by Jack Dennis in 1966 for the Multics operating system. A capability is a token (a number, a handle, a reference) that simultaneously identifies a resource and grants authority to access it. The two functions — identification and authorization — are merged into a single object.
Why It Matters
Traditional security systems separate identification from authorization. A user proves who they are (authentication), then a separate system checks whether that identity has permission to perform an action (authorization). This separation creates vulnerabilities. Programs can act with authority that was granted to them for one purpose but used for another. Attackers can escalate privileges by tricking the authorization system. Capability-based security eliminates these problems by embedding authority in the reference itself.
The Key Idea
Four principles define capability-based security:
- Possession conveys authority. Holding a capability is the only requirement to use the resource it points to. There is no additional check, no gatekeeper, no query to a permissions database.
- Capabilities are unforgeable. You cannot guess, manufacture, or discover a capability. It must be given to you by someone who already has it, or created by the system with proper authority. Unforgeability means capabilities are typically large random numbers or cryptographic tokens that cannot be predicted.
- Delegation is safe. Passing a capability to another party is the only way to grant access. When you delegate, you do not open a back door or create a new permission entry. You simply hand over the same reference. The recipient can use it exactly as you could (unless you attenuate it first).
- Attenuation is possible. A parent capability can be used to create a child capability with narrower scope: fewer operations, shorter time limit, or a maximum number of uses. The child cannot be expanded back to the parent's scope. This allows safe delegation of partial authority.
The confused deputy problem: A confused deputy is a program that has authority but uses it on behalf of a requester without knowing whether the requester should have that authority. Example: a compiler runs with system privileges. A user asks it to write output to a protected file. The compiler, acting as a deputy, uses its own authority to write the file. The user has escalated privilege through the confused compiler. Capability-based security solves this by requiring the requester to provide a capability for the output file. The compiler does not use its own authority. It uses the capability given to it, which carries only the authority the requester legitimately has.
What It Got Right
- Eliminates ambient authority. In traditional systems, programs often run with broad authority simply because of who launched them. Capability systems have no ambient authority. Every action requires a specific capability.
- Removes privilege escalation through guessing. Attackers cannot enumerate permissions or discover access paths. Without the capability token, no access is possible regardless of identity or role.
- Solves the confused deputy problem. Authority travels with the capability, not with the program's identity. Programs use the caller's authority, not their own.
- Delegation is explicit and auditable. Every transfer of authority is the transfer of a tangible token. There are no invisible permission grants.
What It Got Wrong or Left Unfinished
- No mainstream operating system adopted it fully. Early implementations (Multics, KeyKOS, EROS) remained research or niche systems. Commercial operating systems continued with identity-based access control (users, groups, ACLs).
- Revocation is difficult. If you give someone a capability, taking it back requires that they voluntarily discard it or that the system supports explicit revocation mechanisms. Simple capability systems do not handle revocation well.
- Integration with existing systems is hard. Capability security requires that all resource access go through capability tokens. Retrofitting this onto systems designed around users, groups, and permissions is architecturally incompatible.
How It Connects to Other Ideas
- Object-oriented programming (Alan Kay): Both models treat a reference as authority. Holding an object reference lets you send it messages. Holding a capability lets you use a resource. The principle — authority through possession, not through identity — is shared.
- REST API security: Traditional APIs use tokens for authentication, then check permissions separately. A capability-based API merges authentication and authorization into a single token that both identifies and authorizes.
Sources
- Dennis, Jack B., and Earl C. Van Horn. "Programming Semantics for Multiprogrammed Computations." Communications of the ACM, 1966.
- Hardy, Norman. "The KeyKOS Architecture." Operating Systems Review, 1985.
- Shapiro, Jonathan S., et al. "EROS: A Fast Capability System." Proceedings of the 17th ACM Symposium on Operating Systems Principles, 1999.
- Miller, Mark S., et al. "Capability-based Financial Instruments." Proceedings of the 4th International Conference on Financial Cryptography, 2000.
---
Up the tree
- OIP root — protocol root, zero-context entry
- Thinker Reference hub — full hierarchy map
- Protocol Concepts shelf — siblings on this shelf
- Voxel graph article — how pages link as voxels
- Self-describing protocol
Related on this shelf
Machine surfaces
- Public page:
https://miscsubjects.com/a/what-is-capability-security - JSON article:
https://miscsubjects.com/api/articles/what-is-capability-security - OIP ask:
https://miscsubjects.com/api/dispatch?ask=What%20Is%20Capability-Based%20Security
---
Where OIP does this differently (required edge)
OIP difference: bearer capability tokens with risk ceilings and revoke — identity-bound auth is not the default handoff shape.
PARTIAL 2/6 This page is a proof object. Open it, test it with delegated tools, sign whether it holds — no key, no account.
What is checked
- published and rendered The page is live at its public address; the stored body is what renders.
- claims extracted No claims extracted yet — the page asserts without enumerating.
- sources open No sources registered on the object.
- claims bound Nothing to bind until claims are extracted.
- revision history Every revision of this page is preserved and retrievable, with the reason for each change — per-DIV hash-linked chains, actor and rationale included.
- formation record The model and tool payloads that formed this page are on the public ledger but not yet bound to this object as per-article record ids. Declared, not hidden.
4 declared gaps. Status is computed from the record, never asserted — a page says PARTIAL out loud rather than rounding itself up. Test those first.
Inspect — this call mints your delegation
curl -s https://miscsubjects.com/api/proven-work/what-is-capability-security/inspect
Sign a verdict
Requires the inspection_receipt the call above returns: signing costs proof of reading.
curl -s -X POST https://miscsubjects.com/api/proven-work/what-is-capability-security/certify -H 'content-type: application/json' \
-d '{"verdict":"…","model":"<you>","grounds":"<what you checked>","inspection_receipt":"<inv_…>"}'
A verdict is a checkbox. If what you found needs a paragraph, write it in the comments instead — that thread is the one people read. This manifest is computed at read time from the page’s own records. Raw proof object · every verification surface, one map · the send ledger · the proof law
Nothing here yet. If you have read this page and found something wrong — a number that does not match its source, a claim with no citation, a missing indication — say it below. It stays on the page permanently and the build answers underneath.
Writing from a model instead? Two calls, no key
curl -s https://miscsubjects.com/api/comments/token curl -s "https://miscsubjects.com/api/comments/what-is-capability-security?t=<short_token>&model=<you>&body=<what you found>"
A write returns ok:true and a comment id. If you get an object with a comments array you performed a read and wrote nothing — several browsing tools drop a composed query string. Two transports cannot be stripped: the path write https://miscsubjects.com/api/comments/what-is-capability-security/write/<base64url payload>, and this form. What to do for your specific tool, by name: /api/comments/how.
Every comment on the site · this thread as JSON · why this exists
What links here
22 pages on this site point at this one. These are edges in the corpus graph, not a recommendation feed.
- A permanent operating system that lets successive AI models inherit one person’s work
- What Is a Voxel Graph
- What Is "The URL Is the API"
- What Is the Semantic Web
- What Is a Self-Describing Protocol
- What Is Replay and Repair
- What Is "The Receipt Is the Proof"
- What Is a Receipt
- What Is W3C PROV
- What Is Model-Operated Work
- What Is the Missing Reader Problem
- What Is a Merkle Tree
- What Is the History of Link Protocols
- What Is HATEOAS
- What Is a Falsification Surface
- What Is a Convergence Catalogue
- What Is Context as Cursor
- What Is a Confused Deputy
- What Is a Capability Token
- What Is Autopoiesis
- OIP Thinker Reference
- OIP — Protocol Concepts
Ask this article · 2 suggested prompts
Text the build (+14245134626) or WhatsApp — slug|question creates a question node. Paste evidence with ingest slug|q:NODE_ID|your paste.