Abstract
Least privilege was named in a 1973 Multics memo and published in 1974. Today it is a control in the NIST SP 800-53 catalogue, a theme of cloud providers’ own tooling, and a SHOULD in the optional authorization flow of the Model Context Protocol for AI agents. Why do broad grants still turn up so often when incidents and exposures are reconstructed? The principle is easy to state and hard to apply: as Fred Schneider argued, no general procedure decides the minimum for arbitrary general-purpose code. Implementations approximate it, from setuid, seccomp, pledge and Capsicum to OpenSSH’s privilege separation, usage-trimmed cloud policies and scoped tokens. Microsoft’s assessments found identities using 1% of the permissions granted to them. Unit 42 found unused permissions on 99% of the identities it sampled. The public record shows an account-wide storage token, a cloud role inferred to be too broad, widely held internal tools and a signing key whose scope failed. One hypothesis is that denials draw immediate attention while the risks created by unused grants are less visible. The article treats escalation, sandboxing and the confused deputy as one problem and proposes measures a team can track.
A requirement written into the catalogues
NIST’s glossary carries four definitions of least privilege. One, from CNSSI 4009-2022 and SP 800-12, says a system “should restrict the access privileges of users (or processes acting on behalf of users) to the minimum necessary to accomplish assigned tasks.” The other three, attributed to SP 800-53 Rev. 5, SP 800-171r3 and CSWP 50 (two of them citing CNSSI 4009-2022 as well), frame it as a property of architecture, in slightly different words: each entity “is granted the minimum system resources and authorizations that the entity needs to perform its function”, in the SP 800-53 version.1 The architectural framing asks which components exist and what each can reach, as well as who may log in.
SP 800-53 Rev. 5 turns the principle into control AC-6: “Employ the principle of least privilege, allowing only authorized accesses for users (or processes acting on behalf of users) that are necessary to accomplish assigned organizational tasks.” Its discussion adds that organizations consider “the creation of additional processes, roles, and accounts as necessary to achieve least privilege”, which is privilege separation in catalogue language. The control enhancements, where a baseline or an organization selects them, make it operational. AC-6(2) requires users of accounts or roles with access to defined security functions to “use non-privileged accounts or roles, when accessing nonsecurity functions”. AC-6(5) restricts privileged accounts to defined “personnel or roles”. AC-6(7) requires a periodic review “to validate the need for such privileges” and to “Reassign or remove privileges, if necessary”. AC-6(9) requires logging “the execution of privileged functions”, and AC-6(10) requires preventing non-privileged users from executing privileged functions.2 The frequencies, roles and functions in brackets are left to the organization. NIST’s August 2025 minor release (5.2.0) changed other controls and left AC-6 as it was.2
Vendor studies show how far practice sits from the text in the estates they sample, though each counts something different. Palo Alto Networks’ Unit 42 analysed “680,000+ identities across 18,000 cloud accounts from 200 different organizations” and reported that “99% of cloud users, roles, services, and resources were granted excessive permissions which were ultimately left unused”, counting a permission as excessive when unused for 60 days or more.3 That is a share of identities with at least some excess. Microsoft’s 2023 report, drawn from “over 500 risk assessments”, reported a share of permissions: “identities are now only using 1% of their permissions granted”.4 The two figures have different units and cannot be combined, and “unused for 60 days” is not the same as “unneeded”.
Where the principle came from
Jack Dennis and Earl Van Horn’s 1965 MIT report described a computation “as proceeding within some sphere of protection specified by a list of capabilities or C-list for short”, each capability locating an object and indicating “the actions that the computation may perform with respect to that object”.5 A computation holding a C-list has the authority on the list, so the mechanism itself bounds what a program can do.
The name appears in Jerome Saltzer’s Project MAC memo of 14 February 1973, which discusses “a design principle suggested by David J. Edwards, of the National Security Agency”: the principle “simply states that every program should be granted the least privilege necessary to get its job done.”6 Saltzer’s 1974 paper on Multics published it as the fourth of five design principles: “Every program and every privileged user of the system should operate using the least amount of privilege necessary to complete the job.” Its purpose was to reduce “the number of potential interactions among privileged programs to the minimum necessary to operate correctly”, and he added that if a mechanism can provide “firewalls”, the principle “provides a rationale for where to install the firewalls.”7 The 1974 wording addresses programs and privileged users. Saltzer and Schroeder’s 1975 paper widened it to “Every program and every user of the system should operate using the least set of privileges necessary to complete the job” and gave the primary benefit as limiting “the damage that can result from an accident or error”, with a secondary one for incident response: “the number of programs that must be audited is minimized.”8
Norm Hardy’s 1988 account of the Tymshare compiler that overwrote the billing file named a failure the 1975 text did not. The compiler “serves two masters and carries some authority from each to perform its respective duties. It has no way to keep them apart.”9 The library’s article on security design principles walks through the story and the 1975 principles in detail. The point that matters here is a distinction Mark Miller and Jonathan Shapiro drew in 2003 between permission, what an access-control system says a subject may do directly, and authority, what the subject can bring about, including through other programs that act for it. They wrote: “It is unclear whether Saltzer and Schroeder’s Principle of Least Privilege is best interpreted as least permission or least authority. As we will see, there is an enormous difference between the two.”10 Their example is cp foo.txt bar.txt: because the shell passes names, cp must be able to open any file the user could name, so “cp’s least authority still includes all of your authority to the file system.” With cat < foo.txt > bar.txt the shell opens the two files and passes the descriptors. “Although cat also runs with all your authority, for this example at least, it does not need to.”10 Passing handles makes it possible to confine the copy; removing cat’s ambient authority takes a separate mechanism.
Fred Schneider took the analysis a step further. A least-privilege policy depends “not only on the code to be executed but also on what job that code is intended to do”, and computing the minimal privilege set requires establishing that the code meets its specification, a question that “cannot be decided for general-purpose programming and specification languages.” He left a door open: “There might exist specialized languages, however, for which µPriv(Ext, ΣExt) could be computed; this is a research question that bears closer scrutiny.” He suggested that least privilege may be like Belady’s optimal page replacement, useful “as a benchmark against which to compare policies that are being enforced”.11 The limit is on a general procedure. A concrete analysis can still bound what a particular program needs, under stated assumptions about its code, behaviour and environment, and the mechanisms that follow are ways of enforcing such bounds.
One problem with three names
Privilege escalation, sandboxing and the confused deputy are usually taught separately. They meet in one quantity: the authority a component holds beyond what its current task needs, and who can steer that authority.
Privilege escalation is an attacker coming to exercise authority they were not meant to have. One case is a setuid program that fails to drop privilege, as in the sendmail examples below.12 A cloud case is stealing credentials from a workload whose role allows more than the workload does. In both, the attacker starts from the component’s effective authority: its own permissions plus what it can reach through delegates, open handles and stored credentials. An independent flaw elsewhere can add more.
Sandboxing is containment designed for a threat model. Chromium’s design document states its model: for threat modelling, “we consider the sandbox compromised (that is, running malicious code) once the execution path reaches past a few early calls in the main() function.” It lists least privilege as a design principle that applies “both to the sandboxed code and to the code that controls the sandbox.”13 Chromium’s Rule of Two tells developers to “Pick no more than 2 of” untrustworthy inputs, an unsafe implementation language and high privilege, which makes low privilege one of three ways to make parsing hostile input acceptable.14 The memory safety article covers how Chromium applies it.
The confused deputy can produce escalation without a memory-safety bug. A component with authority acts on a request whose designation came from a party with less authority. Hardy writes that the compiler’s code “was correct” when written and “became wrong when we added home files license” to it.9 Server-side request forgery against a cloud metadata service has the same shape: a web-facing component with network reach a user lacks is induced to fetch something on the user’s behalf. AWS’s own post on the metadata service names “misconfigured-open reverse proxies” and “unpatched SSRF vulnerabilities” among the paths it defends against.15
Seen together, the three suggest one question for any component: if an attacker controlled it now, through a bug or through its inputs, what could they do that its job does not require? That difference is what least privilege removes, and it is the quantity worth measuring. An MIT case study’s reconstruction of the Capital One breach, discussed below, fits this pattern. On the authors’ account, inferred from the criminal complaint and public reporting, a misconfigured web application firewall relayed requests to the metadata service, and the credentials it obtained belonged to a role that could list and copy buckets.16 The complaint records Capital One’s statement that the role did not ordinarily list buckets.17
Operating systems: forty years of retrofits
setuid: privilege attached to a file
Dennis Ritchie’s patent on the set-user-ID bit, filed in July 1973 and granted in January 1979, describes it plainly: “When this bit is set to one, the identification of the current user is changed to that of the owner of the executable file.” It continues: “The program in the executable file then has access to all data files owned by the same owner.”18 The grant follows the owner’s identity, not the part of the owner’s authority that the program needs.
The discipline that followed was to drop privilege early. Hao Chen, David Wagner and Drew Dean’s 2002 study found that the uid-setting system calls were “poorly designed, insufficiently documented, and widely misunderstood and misused”, and that “the Unix setuid model is mysterious, and the resulting confusion has caused many security vulnerabilities.”12 Their sendmail cases show how. Sendmail 8.10.1, installed setuid-root, dropped root with setuid(getuid()); on Linux kernels before 2.2.16 an attacker could first clear the process’s SETUID capability, so the call left root in the saved user ID, and in the authors’ words “the programmer assumed that setuid(getuid()) would always succeed in dropping all privilege”. When sendmail 8.12.0 stopped being setuid-root and became setgid to a mail-queue group, its setgid(getgid()) no longer had the privilege to clear the saved group ID, so code that took over the process could restore the group privilege.12
Splitting root: Linux capabilities, no_new_privs and seccomp
Linux has divided root since 2.2 into “distinct units, known as capabilities, which can be independently enabled and disabled”, so that a compromised program holding some of them does less damage “than the same program running with root privilege.”19 The kernel’s header numbers 41 of them, from CAP_CHOWN at 0 to CAP_CHECKPOINT_RESTORE at 40.20 The division is uneven. The manual page tells kernel developers “Don’t choose CAP_SYS_ADMIN if you can possibly avoid it!”, notes that “A vast proportion of existing capability checks are associated with this capability”, and says it can plausibly be called the new root.19 The same notes explain part of the reason. Capability sets are “currently limited to 64 bits”, developers are told to prefer an existing capability over a new one “In order to keep the set of capabilities to a manageable size”, and the page calls one narrow addition, CAP_SYS_PACCT, “probably a mistake.”19 Our inference is that a finite namespace for privileges pushes new features into existing, broader ones.
Two later mechanisms work at the boundary of exec and the system call interface. The no_new_privs bit, added in Linux 3.5, is inherited across fork, clone and execve and cannot be unset; with it set, “execve() promises not to grant the privilege to do anything that could not have been done without the execve call”, so setuid and setgid bits no longer change the uid or gid and file capabilities do not add to the permitted set.21 It does not remove privileges a process already holds. Seccomp filtering lets a process install a BPF program that sees system call numbers and arguments, because “A large number of system calls are exposed to every userland process with many of them going unused for the entire lifetime of the process.” The kernel documentation states its limit: “System call filtering isn’t a sandbox. It provides a clearly defined mechanism for minimizing the exposed kernel surface. It is meant to be a tool for sandbox developers to use.”22 A filter restricts which calls a process can make; by itself it does not decide which files, sockets or other objects those calls reach.
Promises: pledge and unveil
OpenBSD took a coarser route. pledge(), which first appeared in OpenBSD 5.9, “separates the POSIX feature set into a group of approximately 3 dozen subsystems.” A process names the ones it will use, and “Subsystems not listed become unavailable, and most attempts to use operations in that subsystem result in the process being killed with an uncatchable SIGABRT”. Later calls can narrow the set, but “previously revoked subsystems cannot be re-activated.”23 unveil(), from OpenBSD 6.4, restricts pathname access: the first call “removes visibility of the entire filesystem” from other file-related system calls “except for the specified path and permissions”, and further calls “can be disabled by passing two NULL arguments”.24 A directory that is unveiled makes everything beneath it available with the given permissions unless a more specific unveil applies, and a new program started with execve “starts running without any unveils”.24
Suppose a program’s job, as its authors specify it, is to read one configuration file and write reports into one directory. The sketch below grants somewhat more than that sentence, as its comments note.
#include <err.h>
#include <unistd.h>
int
main(int argc, char *argv[])
{
/*
* Assumed workload: read one config file, create and write
* report files under one output directory. unveil limits
* pathname lookups only. "wc" permits pathname operations to write, create
* and remove entries under the output directory, subject to
* the applicable filesystem access checks.
*/
if (unveil("/etc/reporter.conf", "r") == -1)
err(1, "unveil");
if (unveil("/var/reporter/out", "wc") == -1)
err(1, "unveil");
if (unveil(NULL, NULL) == -1) /* no further unveil calls */
err(1, "unveil");
/* Initialization: read config, create output files. */
if (pledge("stdio rpath wpath cpath", NULL) == -1)
err(1, "pledge");
/* ... open the config and the output file ... */
/*
* Main loop: assumes the config and one report file are
* already open. The stdio promise still permits operations
* on those and any other open descriptors, among other calls.
*/
if (pledge("stdio", NULL) == -1)
err(1, "pledge");
/* ... parse input, write report ... */
return 0;
}A path not unveiled returns ENOENT; one unveiled with the wrong permissions returns EACCES. The manual warns that unveil “use can be tricky because programs misbehave badly when their files unexpectedly disappear.”24 The shape of the example, broad initialization and a narrower main loop, matches an observation in Theo de Raadt’s 2015 slides introducing pledge. In “general observations from comparing this to 500 programs in OpenBSD”, the slides note a “rich set of system calls needed during initialization()” while “main_loop() calls narrower class of system calls”. Separately, the slides estimate that “Most programs can use pledge() with 3-10 lines of change”, report “400+ converted to pledge() in 6 months”, and list converted base programs as “Approximately 70% of programs”.25 These are the project’s own estimates from 2015, given in a talk.
Capsicum: capabilities inside Unix
Robert Watson and colleagues’ Capsicum, presented in 2010, put Dennis and Van Horn’s model into a Unix kernel. A process calls cap_enter, after which it is in capability mode: the flag “cannot be cleared”, and the process is “denied access to global namespaces such as the filesystem and PID namespaces”.26 It can still gain access to new objects through channels it already holds. The openat family works “relative to” a directory descriptor and is constrained to objects “under” it, so a directory capability for /lib can permit an open of libc.so.7 if the descriptor rights and filesystem access checks allow it. A lookup outside that directory is refused. Capability descriptors can also be “passed via UNIX domain sockets”, and each carries a rights mask built from “roughly 60 possible mask rights”, against which operations through it are checked.26 This is Miller and Shapiro’s cat example turned into an operating system primitive. The authors reported that tcpdump “can be sandboxed with Capsicum in around ten lines of code, and Chromium can have OS-supported sandboxing in just 100 lines”, and gave Chromium’s other sandboxes as 22,350 lines on Windows, 11,301 for Linux seccomp, 605 for chroot and 560 for Mac OS X Seatbelt.26 The figures compare the code size of each sandbox as implemented at the time, not its strength, and the comparison was made by the Capsicum authors.
Privilege separation: OpenSSH
When a program needs privilege for a small part of its work, the alternative to dropping privilege is to split the program. Niels Provos, Markus Friedl and Peter Honeyman’s 2003 design for OpenSSH put a privileged monitor beside an unprivileged child that handles the network. “For OpenSSH itself, only twenty five percent of the source code require privilege whereas the remaining seventy five percent are executed without special privilege.” The change touched “About 950 lines of the 44,000 existing lines of source code, or 2%”. The paper lists five earlier vulnerabilities, including the SSH-1 CRC32 compensation attack detector and a zlib bug, that would have been contained, and says privilege separation prevents vulnerabilities “including some that were unknown at the time of its implementation.”27 The monitor is a deputy, designed from the start to check each request it serves on the child’s behalf.
Windows: integrity levels and UAC
Windows layered Mandatory Integrity Control over discretionary ACLs. It defines four levels, “low, medium, high, and system”, and “a principal with a low integrity level cannot write to an object with a medium integrity level, even if that object’s DACL allows write access to the principal.”28 When an administrator signs in under User Account Control’s Admin Approval Mode, Windows creates a standard user access token and an administrator access token. A member of the Administrators group “can sign in, browse the Web, and read e-mail while using a standard user access token”. By default, the elevation component for an administrator account in Admin Approval Mode is “the consent prompt”, and for standard users it is “the credential prompt”; prompt behavior “can be configured via policy or registry.”29 The design applies the idea behind AC-6(2), separate accounts or roles for ordinary work, inside a single logon.
Microsoft is careful about what this promises. Its servicing criteria list UAC among “Defense-in-depth security features”, with no stated intent to service bypasses and no bounty, and explain that “A bypass for a defense-in-depth security feature by itself does not pose a direct risk because an attacker must also have found a vulnerability that affects a security boundary, or they must rely on additional techniques, such as social engineering to achieve the initial stage of a device compromise.” They state that “By default, components are not considered boundaries unless explicitly named as such”, and that “For the NT kernel only, Administrator-to-kernel is not a security boundary.”30
Cloud: the permission count explodes
Scale and evidence
Operating systems have dozens of capabilities. Microsoft’s 2023 report counted “over 40,000 permissions that can be granted to identities, of which more than 50% are high-risk”.4 Its other figures, from “over 500 risk assessments” without a stated count of organizations or identities, include that “over 60% of identities were found to be inactive and haven’t used any of their permissions granted in the last 90 days”, that workload identities “outnumber human identities 10:1”, and that “over 50% of identities are Super Admins”, defined as identities “that have access to all permissions and all resources.”4 Microsoft’s blog post announcing the report gave narrower figures: “less than 5% of permissions granted are used by workload identities” and “less than 2% of permissions granted to super identities are used”.31 The report PDF is no longer served at Microsoft’s address and was read here from an archived copy dated the day of publication.
Datadog’s 2025 State of Cloud Security, from “a sample of thousands of organizations” with data collected in September 2025, measures shares of resources rather than of organizations. In AWS, “fewer than 0.4% of EC2 instances have administrator privileges, almost one in five (19.4%) is overprivileged”, where 2.4% “allow an attacker to gain full administrative access to the account by privilege escalation” and 17.9% “have excessive data access, such as listing and accessing data from all S3 buckets in the account”. Organizations averaged 13 third-party integration roles, and “12.2% of third-party integrations are dangerously overprivileged, allowing the vendor to access all data in the account or to take over the whole AWS account.” In Google Cloud, Datadog found 17% of VMs with “editor” permissions on their project through the Compute Engine default service account with the unrestricted cloud-platform scope.32 Editor is one of Google’s three legacy basic roles; its permissions “let you create and delete resources for most Google Cloud services.”33 Orca Security’s 2025 report, based on assets scanned by its platform with no organization count, reported that 78% of organizations had at least one IAM role unused for 90 days or more.34
For the AWS and Azure policy types in its figure, Unit 42 reported that provider-managed policies granted about 2.5 times as many permissions on average as customer-managed policies.3 The report does not say why users choose them or how much excess they cause. The standing cloud credentials article covers the related problem of long-lived keys and how a breach at one vendor reaches its customers. Scope and lifetime compound: a broad grant on a key that never expires is the worst case on both axes.
The tools that subtract
AWS and Google Cloud ship ways to compare granted with used permissions, each with documented gaps. AWS’s last accessed information exists “to help you identify unused permissions so that you can remove them”; for actions it “reports service management actions”, and “The tracking period for Amazon S3 management actions began on April, 12, 2020.” AWS also warns that an entry in the data “does not mean that your account has been compromised, because the request might have been denied”, and calls CloudTrail “the authoritative source” for whether calls succeeded.35 IAM Access Analyzer’s unused access analyzer reports unused roles, unused access keys and passwords, and “Service-level and action-level permissions that weren’t used by a role within the specified usage window”; action-level findings cover a published list of services and actions, and the analyzer “uses identity-based policies attached to roles to determine the services and actions that those roles can access.”36 The window is configurable: “You can enter a value between 1 and 365 days.”37 Its policy generation feature reads up to 90 days of CloudTrail and “generates a policy template that contains the permissions that the entity used”. It “reviews all CloudTrail events, including denied actions”, so attempted actions can appear in its input. The same page lists the limits: for some services it produces a “Policy with service-level information”; it “does not identify action-level activity for data events, such as Amazon S3 data events”; and “The iam:PassRole action is not tracked by CloudTrail and is not included in generated policies.”38 Google’s IAM recommender compares “a principal’s total number of permissions with the permissions that the principal used in the last 90 days”, and also “uses machine learning to identify permissions in a principal’s current role that the principal is likely to need in the future”.39
Two AWS constructs set ceilings. A permissions boundary sets “the maximum permissions that an identity-based policy can grant”; “The effective permissions are the intersection of both policy types”, and an explicit deny in either wins. The ceiling has documented exceptions: within an account, resource-based policies “that grant permissions to an IAM user ARN” are “not limited by an implicit deny in an identity-based policy or permissions boundary”, and “Permissions granted directly to a session are not limited” by one either.40 Service control policies apply at organization level: “No permissions are granted by an SCP”, which instead sets “the maximum available permissions” for member accounts. SCPs do not affect the management account, and “SCPs do not affect any service-linked role.”41 To cap the identity-based grants on roles developers create, require the permissions boundary on each role and prevent developers from removing or replacing it. Neither construct reduces privilege below the ceiling.
The market for these tools has also shifted. Microsoft sold a dedicated cloud entitlement product, Entra Permissions Management, whose Permission Creep Index measured “the gap between permissions granted and permissions used”.42 Microsoft stopped selling it to new customers in April and May 2025 and retired it on 1 November 2025, after extending the original 1 October date, pointing customers to a partner product. For Defender for Cloud customers using its CIEM features, including the “permissions creep index (PCI) for multicloud environments”, Microsoft said it would “continue to support these CIEM features in Microsoft Defender for Cloud”, as part of the Defender CSPM plan.43 Deployments outside that route had to find another source for the metric.
A worked policy
Consider a reporting service whose specification says it reads exported files from one S3 prefix and nothing else. An unscoped first version grants everything in S3 on every resource.
{
"Version": "2012-10-17",
"Statement": [
{ "Effect": "Allow", "Action": "s3:*", "Resource": "*" }
]
}As an identity policy, it grants every S3 action on all supported resources, subject to the evaluation of each request against every applicable policy type; AWS lists identity-based and resource-based policies, permissions boundaries, SCPs and session policies as able to affect “the permissions for an entity”.4044 If the service’s host is compromised, or the service can be induced to make requests for an attacker, its credentials carry that grant. A version fitted to the specification allows one action on one prefix, only when the request arrives through the account’s VPC endpoint.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "ReadExportsViaEndpoint",
"Effect": "Allow",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::example-reports/exports/*",
"Condition": {
"StringEquals": { "aws:SourceVpce": "vpce-0abcdef1234567890" }
}
}
]
}AWS documents that aws:SourceVpce is present in the request context “only if the requester uses a VPC endpoint to make the request”, so this statement grants nothing to a request that arrives another way.45 It does not cancel a grant made elsewhere. To refuse other routes regardless of other policies, AWS’s own example bucket policy uses an explicit Deny on all S3 actions unless the request comes through a named endpoint, and notes that such a policy also blocks console access.46 The example assumes the object keys are known, encryption settings allow the read, and no other policy grants more. The action and prefix come from the service’s specification. AWS’s policy generator would not have produced them, because its generated policies omit action-level activity for S3 data events.38 The narrower policy has a cost: a new report that needs a second prefix fails at run time and somebody has to change the policy.
What the primary record shows
Capital One, 2019
The criminal complaint against Paige Thompson, filed in July 2019, includes an FBI agent’s affidavit. It states that “A firewall misconfiguration permitted commands to reach and be executed by” a Capital One server, and that the commands obtained “security credentials for an account known as ***-WAF-Role”. With those credentials the intruder ran a “List Buckets Command” and a “Sync Command” that copied data from buckets “for which the *-WAF-Role account had the requisite permissions”; a file she posted listed “more than 700 folders or buckets of data.” The affidavit adds that “According to Capital One, the ***-WAF-Role account does not, in the ordinary course of business, invoke the List Buckets Command.”17 That is the bank’s account of ordinary use, reported in a court filing; it gives no observation window and is not an adjudicated finding that the permission was unnecessary.
Capital One reported that the incident affected “approximately 100 million individuals in the United States and approximately 6 million in Canada”, including about 140,000 Social Security numbers and about 80,000 linked bank account numbers.4748 The OCC assessed an $80 million civil money penalty in August 2020. Its consent order, which the bank neither admitted nor denied, found that “the Bank failed to establish effective risk assessment processes prior to migrating its information technology operations to the cloud operating environment” and cited weaknesses in network security controls, data loss prevention and alert handling. The order does not mention IAM roles or least privilege.49 Separately, an MIT case study by Novaes Neto, Madnick and colleagues reconstructs the attack from the complaint and public technical reporting. It describes the firewall relaying requests to the metadata service at 169.254.169.254, maps the failure to NIST CSF control PR.AC-4, and concludes that access management “was applied, but without considering the premise of least privilege (PR.AC-4)”. The authors present insufficient IAM controls as “very likely”, an inference rather than a finding from the bank’s records.16
Thompson was convicted in June 2022; her October 2022 sentence of time served and five years of probation was vacated by the Ninth Circuit in March 2025, and on 3 November 2025 the district court again imposed time served, now with five years of supervised release in place of probation.50515253 The record distinguishes three things: the role’s permission to list and copy buckets, which the affidavit describes; Capital One’s statement that listing was not part of ordinary use; and the copying described in the affidavit. The bank’s public disclosure separately reports the estimated number of affected people and counts for selected categories of exposed records. It does not set out the role’s full policy or what the firewall needed.
In November 2019 AWS introduced version 2 of the instance metadata service, describing “belt and suspenders” protections against open firewalls, reverse proxies and SSRF used to reach the metadata service, alongside “restricting IAM roles”.15 The AWS post does not mention Capital One.
Twitter, 2020
The New York Department of Financial Services’ report on the July 2020 Twitter compromise records that attackers posing as Twitter’s IT department on the phone reached internal tools that let them take over accounts. As a benchmark, the report states that, “Consistent with best practices, the Department’s cybersecurity regulation requires that each user should have access to systems and applications only to the extent necessary for their job.” It finds that Twitter had limited access to the internal tools, but “over 1,000 Twitter employees still had access to them” for account maintenance and support, content review and rules enforcement. After the attack Twitter limited the number further, “even though it caused a slowdown of some job functions.”54 The report gives no total headcount, so the 1,000 has no denominator here.
Microsoft, 2023 and 2024
Two Microsoft cases involve broad grants in tokens and applications. In September 2023 Microsoft reported that an employee had published a storage URL containing an “overly-permissive Shared Access Signature (SAS) token”, which Wiz researchers used to reach the storage account; the exposed data included backups of two former employees’ workstations. Microsoft said no customer data was exposed, and advised customers to “Apply the Principle of Least Privilege” by scoping SAS URLs to “the smallest set of resources required by clients” and limiting permissions “(e.g. read-only, write-only)”.55 Wiz reported that the token gave access to “38 terabytes” of data, had “full control” permissions “instead of read-only”, applied “on the entire account”, and was valid until 2051.56
In January 2024 Microsoft disclosed that Midnight Blizzard had compromised “a legacy, non-production test tenant account that did not have multifactor authentication (MFA) enabled”. The actor then “leveraged their initial access to identify and compromise a legacy test OAuth application that had elevated access to the Microsoft corporate environment”, created malicious OAuth applications, and “used the legacy test OAuth application to grant them the Office 365 Exchange Online full_access_as_app role, which allows access to mailboxes.”57 The test application’s elevated access to the corporate environment was what let the actor grant the mailbox role to its own applications. Microsoft’s guidance told customers to audit privilege because “Identities can often be granted privilege over and above what is required.”57
The Cyber Safety Review Board’s review of the 2023 Storm-0558 intrusion describes a scope problem of a different kind. “A single key’s reach can be enormous, and in this case the stolen key had extraordinary power.” The consumer signing key “should only have been able to sign tokens that worked in consumer OWA, not Enterprise Exchange Online”, but “when combined with another flaw in Microsoft’s authentication system, the key permitted Storm-0558 to gain full access to essentially any Exchange Online account”.58 The standing credentials article covers that case’s key lifetime.
The aggregate
Verizon’s 2025 Data Breach Investigations Report, covering 12,195 confirmed breaches, counts 825 incidents and 757 with confirmed data disclosure in its Privilege Misuse pattern. It describes the pattern as “typically insiders”, and lists actors in those breaches as Internal 90%, Partner 10%, External 3% and Multiple 3%.59 The pattern records misuse of access that actors held; it does not measure whether that access exceeded what their jobs required, so it says nothing directly about how often excess grants contribute to breaches.
AI agents: the deputy acquires a language interface
An agent that reads untrusted text and calls tools is a deputy with an unusually large input surface. The library’s prompt injection article covers the attacks and the design patterns for limiting them. The question here is narrower: how is the agent’s authority assigned, and what in current guidance pushes it towards or away from the minimum?
OWASP’s 2025 entry on Excessive Agency names three root causes: “excessive functionality; excessive permissions; excessive autonomy.” Its example of excessive permissions is an extension “intended to read data” that connects to a database “using an identity that not only has SELECT permissions, but also UPDATE, INSERT and DELETE permissions.” Among its mitigations, under the heading “Complete mediation”, it advises: “Implement authorization in downstream systems rather than relying on an LLM to decide if an action is allowed or not.”60 Complete mediation is one of Saltzer and Schroeder’s principles applied to a new component: the model may be confused, so the check belongs in a mechanism the model cannot talk its way past.
The Model Context Protocol’s authorization specification, in its current 2026-07-28 version, is optional and applies to HTTP transports: “Authorization is OPTIONAL for MCP implementations”, and implementations using an HTTP-based transport “SHOULD conform to this specification.” Where it applies, clients “SHOULD follow the principle of least privilege by requesting only the scopes necessary for their intended operations”, “MUST implement Resource Indicators for OAuth 2.0 as defined in RFC 8707”, and servers “MUST validate that access tokens were issued specifically for them as the intended audience”.61 The security considerations address two separate problems. One is token passthrough: “The MCP server MUST NOT pass through the token it received from the MCP client.” The other, under the heading “Confused Deputy Problem”, concerns MCP proxy servers that use a static client ID with a third-party authorization server; such proxies “MUST obtain user consent for each dynamically registered client before forwarding to third-party authorization servers”.62 The best-practices page recommends “a progressive, least-privilege scope model” with a minimal initial scope and “Incremental elevation” through step-up challenges, and lists as common mistakes “Using wildcard or omnibus scopes” and “Bundling unrelated privileges to preempt future prompts”.63 This follows RFC 9700, the OAuth security best current practice, which says the privileges of an access token “SHOULD be restricted to the minimum required for the particular application or use case” and that tokens “SHOULD be audience-restricted to a specific resource server”.64
How much a client asks for at first depends on the server. During the initial authorization handshake, a client should use the scope from the server’s challenge if one is given; otherwise “use all scopes defined in scopes_supported from the Protected Resource Metadata document, omitting the scope parameter if scopes_supported is undefined.” The specification says scopes_supported “is intended to represent the minimal set of scopes necessary for basic functionality”, with more requested “incrementally through the step-up authorization flow”.61 Whether the fallback yields least privilege depends on how narrowly the server author draws that list.
Permission prompts are one alternative to narrow standing authority. The most specific data located is Anthropic’s, for prompts in its Claude Code product. It reported in March 2026 that “in practice users accept 93% of” manual permission prompts, without stating how many prompts that covers or whether any approvals were mistaken, and gave examples from its internal incident log of agents “deleting remote git branches from a misinterpreted instruction, uploading an engineer’s GitHub auth token to an internal compute cluster, and attempting migrations against a production database.”65 Its sandboxing work, which confines the agent’s file system and network access, “safely reduces permission prompts by 84%” in Anthropic’s internal usage, again without a base count.66 The classifier it built to replace many prompts missed 17% of the 52 real over-eager actions in Anthropic’s evaluation set selected from employee-denied or subsequently flagged actions, a number the authors called “the honest number”.65 Prompting places the decision at the moment of use. A sandbox or a narrowly scoped token sets a ceiling that can be reviewed in advance, while step-up flows such as MCP’s still allow authority to grow during a session.
Why privileges accumulate
Denials are visible; excess is not
The explanation offered here is a hypothesis drawn from the evidence located, not a measured result. When access is too narrow, a person or a job fails, and someone notices. When access is too broad, the risk may draw less attention until the grant is misused. Lujo Bauer, Scott Garriss and Michael Reiter measured the first cost in one deployed access-control system: across 212 cases where a policy had to be corrected at the moment someone needed access, “in 39 cases a user’s access was delayed by more than 10 min, and in 21 by over an hour”, with delays from 25 seconds to 18.6 hours and a median of 98 seconds.67 No comparable measurement of the cost of unused grants was found for this article.
Interviews by an overlapping group of authors with 13 access-control professionals in five organizations found that “policy implementers often do not have sufficient understanding of the intended policy to accurately enforce the principle of least privilege”. In one example, an implementer sent monthly access lists to policy makers, two of whom reviewed them only “once or twice a year”; and “every so often a policy maker will forget to tell him about a change in plans and someone will be denied access.”68 In that setting, the person who knew what access was needed was not the person who configured it, and denials were what reached the configurer.
Removal has no trigger
Travis McPeak, describing Netflix’s automated approach in 2018, put the removal problem this way: “Removing permissions when they are no longer required is a bit more challenging as there is no built-in reminder or incentive to remove them.” He called least privilege “a classic case of a simple concept that is very difficult to apply at scale” and “a moving target”.69 Netflix’s Repokid removes permissions for services a role has not used and, by default, excludes “roles that are younger than 90 days”.70 McPeak named the limit of the approach: “Some applications don’t regularly use their permissions but need them on an infrequent basis. Our usage-based analysis fails for these applications”.69
Roles multiply
Role-based access control groups grants to make them manageable. Organizations that try to express fine distinctions with roles can end up, in the words of NIST’s ABAC guide, with “numerous roles that are ad hoc and limited in membership”, a result “often termed” role explosion.71 NIST’s RBAC project page cites a European bank with over 50,000 employees where “approximately 1300 roles were discovered” during role engineering.72 Our hypothesis, for which no data on movers was located, is that with that many roles an administrator handling a mover is more likely to add a role that certainly works than to remove the old one.
Break-glass becomes routine
Google’s book on secure systems describes its Zero Touch Production effort to remove “direct human access to production roles”, and says this “requires extensive automation, new safe APIs, and resilient multi-party approval systems” and “can introduce tradeoffs to productivity”. It warns that “Without cultural reinforcement, audits can become rubber stamps, and breakglass use can become an everyday occurrence”.73
Usage is unknown in advance
For a new service the minimal set has to be specified or guessed before there is any usage to measure. Policy generation needs a representative history of activity in the logs, and the generator covers only some of the actions logged.38 McPeak’s Enigma abstract describes the developer’s side: “Software developers are incentivized to ship products and features, so they focus on what helps them work fast: wildcards in policies, if they even have one.”74
Where experts disagree
What can be shown and what can only be suggested
Schneider’s model yields a general undecidability result for general-purpose programming and specification languages. He leaves open whether specialized languages admit a procedure.11 CISA’s Zero Trust Maturity Model is about practice. It describes the starting point as “permanent access with periodic review” and the optimal stage as automation that authorizes “just-in-time and just-enough access tailored to individual actions and individual resource needs.”75 The two meet in the reporting service above. For a fixed request and context, the decision depends on all applicable policy layers, including session and resource policies, organization controls such as SCPs and RCPs, and any applicable VPC endpoint policy.44 Whether it needs s3:GetObject on exports/* is suggested by telemetry and argued from its specification under stated assumptions. A team can show that a role cannot make a given request, and that it has not used something in a window, but not from usage alone that a remaining grant is the minimum. The two claims are complementary. The live disagreement is practical, between Google’s and Netflix’s acceptance that some needed grants go unused for long periods and the pressure to remove them; one way through is to move such access behind time-bound activation, keeping it standing only where tests show that activation would be unavailable when the duty arises.
The productivity cost
Google’s chapter says controls on human access “may increase engineering time, process changes, operational work, or opportunity cost”, and argues that “While a strict model of least privilege is likely appropriate for sensitive data and services, a more relaxed approach in other areas can provide tangible benefits.”73 Twitter accepted a slowdown after its incident.54 The case for broader access can draw on Bauer’s measured delays and on the “cumbersome workarounds” Bauer and colleagues found where mechanisms could not express the intended policy.6867 The case for stricter access can draw on the record above, which is mixed in kind: a documented account-wide token (the SAS case), a role inferred to be too broad (Capital One), broad tool access narrowed after the incident (Twitter) and a key whose intended scope failed through a validation flaw (Storm-0558). The evidence located for this article does not include a study weighing the two costs on the same population.
Capabilities against access lists
Capability advocates argue that the problem is structural. Hardy ended his paper with an exercise: “Show that access lists do not solve this problem.”9 Mark Miller, Ka-Ping Yee and Jonathan Shapiro’s “Capability Myths Demolished” argues, comparing the models it defines, that capabilities “provide much better support for least-privilege operation and for avoiding confused deputy problems”, and that in ACL systems, “because designation and authorization are necessarily separated, this confusion is difficult to escape.” They concede that eliminating ambient authority “doesn’t guarantee that deputies will never be confused.”76 The other side of the argument goes back to W. E. Boebert’s 1984 claim that an unmodified capability machine cannot enforce the Bell-LaPadula *-property. Miller and Shapiro answered that such impossibility results assume access is controlled only by manipulating the protection state and ignore programs written to limit how capabilities propagate, and they quote Boebert in 2003 describing his paper as “no more than an offhand remark”.10
The practical disagreement is about adoption. In 2015 de Raadt’s slides said Capsicum had “Only been used in 12 programs” and “Requires intense modification of existing programs”, and argued that “Optional Security is irrelevant!”25 Capsicum’s authors had reported Chromium sandboxed in about 100 lines.26 Both are claims by the designers of competing systems at the time, and neither describes current adoption.
Usage-based least privilege looks backwards
Trimming to observed use assumes the past predicts the future. Google’s recommender deliberately keeps some unused permissions predicted to be needed.39 Netflix’s engineer described where usage analysis fails.69 Trimming also leaves in place everything the role does use, which may be all an attacker holding its credentials needs. Non-use is a lead for review, not proof of excess.
Measuring it
A least-privilege programme without numbers tends to become the periodic review that Bauer’s interviewees said they did once or twice a year. The measures below need data that not every organization collects: complete activity logs per identity (including, for AWS, data events if action-level S3 use matters), an inventory of policies of every type, and HR events joined to accounts. Each needs its window and denominator stated.
| Measure | How to compute | What a change should prompt |
|---|---|---|
| Unused-permission ratio | Granted actions with no successful use in window W, divided by granted actions, per identity; count actions, or action-resource pairs where resource-level data exists. Exclude denied attempts from “use”. Report human, workload and automation identities separately, and mark identities whose logs are incomplete | A rise on one identity prompts a review of its grants with its owner |
| Admin-equivalent identities (screen) | Identities with a statement allowing all actions on all resources with no conditions, as in Datadog’s rule; confirm candidates by full policy evaluation | Each confirmed case needs a named owner and a reason |
| Escalation-capable grants | Identities holding permissions that can be a step towards more privilege, such as creating users, attaching policies or passing roles; confirm paths by evaluation | New entries prompt review before deployment |
| Privileged assignment types | Counts of permanent active, time-bound active and eligible privileged assignments, and of distinct people holding them | Growth in permanent active assignments prompts conversion to eligible |
| Activation duration | Configured and median actual length of just-in-time elevation | Long or repeatedly renewed sessions prompt review |
| Time to revoke | Median and 95th percentile time from HR leaver or mover event to the point where no session, token, key or role assumption can still exercise the access, per system | Outliers prompt a check of which authorization path still accepted the credential, since delays can have other causes |
| Third-party scope | Vendor integration roles with full data or account access, divided by all vendor roles | Each full-access vendor role prompts a scoping request to the vendor |
| Sandbox coverage | Processes that parse untrusted input and run under an enforced restriction (for example a seccomp filter, pledge promises or Capsicum capability mode), divided by all such processes | Unsandboxed parsers go on the hardening backlog |
The admin screen follows Datadog’s definition of an administrative role, an instance role attached to the AWS administrator policy or to “a custom policy that has at least one statement allowing all actions on all resources, with no conditions”.77 That is a screening heuristic. Whether a principal is effectively an administrator depends on conditions and resources, and AWS “evaluates all of the policy types” in deciding a request.44 For privileged human access, Microsoft’s Privileged Identity Management distinguishes four assignment types: “permanent eligible”, “time-bound eligible”, “permanent active” (“A role assignment where a user can always use the role without performing any actions”) and “time-bound active” (“A role assignment where a user can use the role only within start and end dates”).78 Microsoft recommends assigning Global Administrator “to fewer than five people in your organization”, and its alert card appears when there are “5 or more privileged Global Administrator role assignments”, which counts assignments rather than people.79
A falling unused-permission ratio can be produced by adding usage as well as by removing grants, so track the count of granted high-risk actions alongside the ratio. AWS’s caution that last-accessed entries can include denied requests applies to any ratio built on that data.35
What to do differently
- Design for least authority before writing policy. Pass handles across trust boundaries and remove ambient access the recipient does not need. Split privileged work into a monitor with a narrow interface, as OpenSSH does.102627
- Narrow in phases. Many programs need more during initialization than in their main loop. pledge, seccomp filters and capability dropping can each express the narrowing after setup. Where a design should never gain privilege through exec, set
no_new_privsbefore exec.23221921 - Treat each role’s first policy as a hypothesis. Write it from the service’s specification, record its activity, and narrow it after a defined period, remembering what the generator does not cover. Use permissions boundaries to cap identity-based grants. A boundary’s implicit deny does not constrain a same-account resource policy’s direct grant to a role session. SCPs separately restrict applicable member-account principals. Where a hard restriction is needed, use an applicable explicit Deny, such as the endpoint bucket policy above.40414638
- Put an owner and a usage window on every grant, and decide rare-use cases explicitly. Unused-access findings, last-accessed data or a recommender supply the trigger.3639 A grant that has not been used in the window should be kept only with written evidence of a duty that needs it, such as a recovery runbook or a scheduled job, named by its owner and confirmed by a successful exercise. Where removal is chosen, keep the previous policy version under change control so that a recovery team can restore it quickly, and test that restoration, since McPeak describes usage analysis failing for exactly these infrequent duties.69
- Make privileged human access eligible, not permanently active. Track the four assignment types and drive down permanent active ones.78 For emergency access, follow Microsoft’s guidance: “Create two or more emergency access accounts”, “Configure alerts for every use of an emergency access account”, and “Regularly test (for example, every quarter)” that they can sign in.80
- Scope tokens by audience and action. The MCP HTTP authorization specification requires clients to use OAuth Resource Indicators and recommends requesting only necessary scopes; MCP servers must validate that tokens were issued for them and must not pass tokens through; server authors should draw
scopes_supportednarrowly, since clients may request all of it when a challenge names no scope.616264 - Enforce agent permissions outside the model. Put authorization in the tool or downstream system, sandbox file and network access, and, as our own recommendation, reserve human approval for actions where the reviewer sees the real arguments.6066
- Report the numbers. Publish the measures in the table above, with windows and denominators, at a cadence the organization sets.
Research notes
Facts that move: the MCP specification version (2026-07-28 (opens in a new tab) at the time of writing), Microsoft’s cloud entitlement tooling (Entra Permissions Management retired on 1 November 2025), vendors’ annual cloud figures, Linux’s capability list, and the Capital One sentencing record (resentenced 3 November 2025). Sources were retrieved on 28 November 2026.
Conclusion
Least privilege has been stated as a design principle for half a century because its logic is sound: authority a component cannot exercise cannot be abused through it, by an attacker, an error or a confused program. No general procedure decides the minimum for arbitrary general-purpose code. One hypothesis is that too little access causes visible delays while the risks created by unused grants receive less immediate attention. The record shows broad grants at several layers. Setuid attached an owner’s identity to a program, and the repairs came piecemeal. In Microsoft’s assessments, identities used 1% of the permissions granted to them. Capital One told the FBI that its firewall role did not, in the ordinary course of business, list buckets, and the intruder used the role’s credentials to list buckets. Other cases differ in kind, from an account-wide storage token to a signing key whose intended scope failed. For AI agents, the MCP specification makes least-privilege scope requests a recommendation within an optional authorization flow, and leaves the size of the default request to each server’s metadata.
What works is to reduce authority by design where possible, so that components hold handles rather than ambient rights, and to treat the rest as a quantity with a stated baseline and a trend. That means usage windows read with their gaps in mind, guardrails on identity grants with explicit denies where a hard limit is needed, eligible rather than permanent administration, and measured time to revoke. Policy evaluation can show what an identity can do in a given request context; usage data and specifications are needed to argue what it should be able to do.
Footnotes
- NIST Computer Security Resource Center, Glossary: least privilege, NIST, accessed 28 November 2026. https://csrc.nist.gov/glossary/term/least_privilege (opens in a new tab) ↩
- Joint Task Force, NIST SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations, control AC-6 (printed pp. 36–39), NIST, September 2020 (updated 10 December 2020); the Release 5.2.0 change list of August 2025 does not include AC-6. https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf (opens in a new tab); https://csrc.nist.gov/csrc/media/Projects/risk-management/800-53%20Comment%20Site/SP800-53-r5.2.0-changes.pdf (opens in a new tab) ↩1 ↩2
- Unit 42, Defense Against Cloud Threats: IAM (Cloud Threat Report: IAM The First Line of Defense), Palo Alto Networks, 12 April 2022. https://unit42.paloaltonetworks.com/iam-cloud-threat-research/ (opens in a new tab) ↩1 ↩2
- Microsoft, 2023 State of Cloud Permissions Risks Report, Microsoft, March 2023 (archived copy of 28 March 2023; the original address no longer serves it). https://web.archive.org/web/20230328155658/https://query.prod.cms.rt.microsoft.com/cms/api/am/binary/RW10qzO (opens in a new tab) ↩1 ↩2 ↩3
- Jack B. Dennis and Earl C. Van Horn, Programming Semantics for Multiprogrammed Computations, MIT Project MAC TR-23, December 1965 (published in Communications of the ACM 9(3), March 1966). https://ftp.mirrorservice.org/sites/www.bitsavers.org/pdf/mit/lcs/tr/MIT-LCS-TR-0023.pdf (opens in a new tab) ↩
- J. H. Saltzer, The “Principle of Least Privilege” and Multics, Project MAC Computer Systems Research Division, Request for Comments No. 35, 14 February 1973. https://web.mit.edu/Saltzer/www/publications/rfc/csr-rfc-035.pdf (opens in a new tab) ↩
- Jerome H. Saltzer, Protection and the Control of Information Sharing in Multics, Communications of the ACM 17(7), July 1974, pp. 388-402. https://www.eecg.utoronto.ca/~yuan/teaching/gradOS/papers/multics.pdf (opens in a new tab) ↩
- Jerome H. Saltzer and Michael D. Schroeder, The Protection of Information in Computer Systems, section I.A.3, Basic principles, Proceedings of the IEEE 63(9), September 1975 (MIT web edition). https://web.mit.edu/Saltzer/www/publications/protection/Basic.html (opens in a new tab) ↩
- Norm Hardy, The Confused Deputy (or why capabilities might have been invented), Operating Systems Review 22(4), 1988, author-hosted text. http://cap-lore.com/CapTheory/ConfusedDeputy.html (opens in a new tab) ↩1 ↩2 ↩3
- Mark S. Miller and Jonathan S. Shapiro, Paradigm Regained: Abstraction Mechanisms for Access Control, 8th Asian Computing Science Conference (ASIAN 2003), Springer LNCS 2896, December 2003, copy hosted by MIT PDOS. https://pdos.csail.mit.edu/6.1810/2004/readings/miller03paradigm.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Fred B. Schneider, Least Privilege and More, in Computer Systems: Theory, Technology, and Applications (Needham festschrift), Springer, 2004, pp. 209-212 (an earlier version appeared in IEEE Security & Privacy, 2003). https://www.cs.cornell.edu/fbs/publications/leastPrivNeedham.pdf (opens in a new tab) ↩1 ↩2
- Hao Chen, David Wagner and Drew Dean, Setuid Demystified, Proceedings of the 11th USENIX Security Symposium, August 2002. https://www.usenix.org/legacy/events/sec02/full_papers/chen/chen.pdf (opens in a new tab) ↩1 ↩2 ↩3
- The Chromium Authors, Sandbox (design document), chromium.googlesource.com, current HEAD, accessed 28 November 2026. https://chromium.googlesource.com/chromium/src/+/HEAD/docs/design/sandbox.md (opens in a new tab) ↩
- The Chromium Authors, The Rule Of 2, Chromium security documentation, current HEAD, accessed 28 November 2026. https://chromium.googlesource.com/chromium/src/+/HEAD/docs/security/rule-of-2.md (opens in a new tab) ↩
- Colm MacCárthaigh, Add defense in depth against open firewalls, reverse proxies, and SSRF vulnerabilities with enhancements to the EC2 Instance Metadata Service, AWS Security Blog, 19 November 2019. https://aws.amazon.com/blogs/security/defense-in-depth-open-firewalls-reverse-proxies-ssrf-vulnerabilities-ec2-instance-metadata-service/ (opens in a new tab) ↩1 ↩2
- Nelson Novaes Neto, Stuart Madnick, Anchises Moraes G. de Paula and Natasha Malara Borges, A Case Study of the Capital One Data Breach, Cybersecurity at MIT Sloan, 2020. https://cams.mit.edu/wp-content/uploads/capitalonedatapaper.pdf (opens in a new tab) ↩1 ↩2
- United States v. Paige A. Thompson, Criminal Complaint, Case 2:19-mj-00344-MAT, US District Court for the Western District of Washington, filed 29 July 2019. https://www.justice.gov/media/1019711/dl?inline (opens in a new tab) ↩1 ↩2
- Dennis M. Ritchie, Protection of data file contents, US Patent 4,135,240, filed 9 July 1973, granted 16 January 1979. https://patents.google.com/patent/US4135240A/en (opens in a new tab) ↩
- Linux man-pages project, capabilities(7), man-pages 6.19, 8 February 2026. https://man7.org/linux/man-pages/man7/capabilities.7.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Linux kernel, include/uapi/linux/capability.h, torvalds/linux master branch, accessed 28 November 2026. https://github.com/torvalds/linux/blob/master/include/uapi/linux/capability.h (opens in a new tab) ↩
- Linux kernel documentation, No New Privileges Flag, kernel.org, accessed 28 November 2026. https://docs.kernel.org/userspace-api/no_new_privs.html (opens in a new tab) ↩1 ↩2
- Linux kernel documentation, Seccomp BPF (SECure COMPuting with filters), kernel.org, accessed 28 November 2026. https://docs.kernel.org/userspace-api/seccomp_filter.html (opens in a new tab) ↩1 ↩2
- OpenBSD, pledge(2) manual page, OpenBSD-current, 10 September 2026. https://man.openbsd.org/pledge.2 (opens in a new tab) ↩1 ↩2
- OpenBSD, unveil(2) manual page, OpenBSD-current, 20 July 2026. https://man.openbsd.org/unveil.2 (opens in a new tab) ↩1 ↩2 ↩3
- Theo de Raadt, pledge(): a new mitigation mechanism (slides, Hackfest 2015), openbsd.org, undated slides, 2015; quotations from foils 5, 10, 12, 31 and 33 of the index. https://www.openbsd.org/papers/hackfest2015-pledge/ (opens in a new tab) ↩1 ↩2
- Robert N. M. Watson, Jonathan Anderson, Ben Laurie and Kris Kennaway, Capsicum: practical capabilities for UNIX, Proceedings of the 19th USENIX Security Symposium, August 2010. https://www.usenix.org/legacy/event/sec10/tech/full_papers/Watson.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
- Niels Provos, Markus Friedl and Peter Honeyman, Preventing Privilege Escalation, Proceedings of the 12th USENIX Security Symposium, August 2003. https://www.usenix.org/legacy/events/sec03/tech/full_papers/provos_et_al/provos_et_al.pdf (opens in a new tab) ↩1 ↩2
- Microsoft, Mandatory Integrity Control, Microsoft Learn, 8 July 2025. https://learn.microsoft.com/en-us/windows/win32/secauthz/mandatory-integrity-control (opens in a new tab) ↩
- Microsoft, How User Account Control works, Microsoft Learn, 23 April 2026. https://learn.microsoft.com/en-us/windows/security/application-security/application-control/user-account-control/how-it-works (opens in a new tab) ↩
- Microsoft Security Response Center, Microsoft Security Servicing Criteria for Windows, Microsoft, latest revision-history entry 20 May 2026. https://www.microsoft.com/en-us/msrc/windows-security-servicing-criteria (opens in a new tab) ↩
- Alex Simons, 2023 State of Cloud Permissions Risks report now published, Microsoft Entra Blog, 28 March 2023. https://techcommunity.microsoft.com/blog/identity/2023-state-of-cloud-permissions-risks-report-now-published/1061397 (opens in a new tab) ↩
- Datadog, State of Cloud Security 2025, Datadog, October 2025 (data collected September 2025). https://www.datadoghq.com/state-of-cloud-security-2025/ (opens in a new tab) ↩
- Google Cloud, Roles overview, Identity and Access Management (IAM) documentation, accessed 28 November 2026. https://cloud.google.com/iam/docs/roles-overview (opens in a new tab) ↩
- Orca Security, 2025 State of Cloud Security Report, Orca Security, June 2025. https://orca.security/wp-content/uploads/2025/06/2025-State-of-Cloud-Security-Report.pdf (opens in a new tab) ↩
- Amazon Web Services, Refine permissions in AWS using last accessed information, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_last-accessed.html (opens in a new tab) ↩1 ↩2
- Amazon Web Services, IAM Access Analyzer findings, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-findings.html (opens in a new tab) ↩1 ↩2
- Amazon Web Services, Create an analyzer for unused access, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-create-unused.html (opens in a new tab) ↩
- Amazon Web Services, IAM Access Analyzer policy generation, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/access-analyzer-policy-generation.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Google Cloud, Overview of role recommendations, Policy Intelligence documentation, last updated 10 November 2026. https://cloud.google.com/policy-intelligence/docs/role-recommendations-overview (opens in a new tab) ↩1 ↩2 ↩3
- Amazon Web Services, Permissions boundaries for IAM entities, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_boundaries.html (opens in a new tab) ↩1 ↩2 ↩3
- Amazon Web Services, Service control policies (SCPs), AWS Organizations User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html (opens in a new tab) ↩1 ↩2
- Microsoft, What’s Microsoft Entra Permissions Management?, Microsoft Learn, 1 April 2025. https://learn.microsoft.com/en-us/entra/permissions-management/overview (opens in a new tab) ↩
- Joseph Dadzie, Important change announcement: Microsoft Entra Permissions Management end of sale and retirement, Microsoft Entra Blog, 1 April 2025, updated 29 September 2025. https://techcommunity.microsoft.com/blog/microsoft-entra-blog/-/4399382 (opens in a new tab) ↩
- Amazon Web Services, Policy evaluation logic, AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic.html (opens in a new tab) ↩1 ↩2 ↩3
- Amazon Web Services, AWS global condition context keys (aws:SourceVpce), AWS IAM User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html (opens in a new tab) ↩
- Amazon Web Services, Controlling access from VPC endpoints with bucket policies, Amazon S3 User Guide, accessed 28 November 2026. https://docs.aws.amazon.com/AmazonS3/latest/userguide/example-bucket-policies-vpc-endpoint.html (opens in a new tab) ↩1 ↩2
- Capital One Financial Corporation, Capital One Announces Data Security Incident, Form 8-K Exhibit 99.1, 29 July 2019. https://www.sec.gov/Archives/edgar/data/927628/000092762819000262/exhibit991-pressrelease72919.htm (opens in a new tab) ↩
- Capital One, Capital One Announces Data Security Incident, Capital One newsroom, 29 July 2019. https://www.capitalone.com/about/newsroom/capital-one-announces-data-security-incident/ (opens in a new tab) ↩
- Office of the Comptroller of the Currency, Consent Order for the Assessment of a Civil Money Penalty, Capital One, N.A., #2020-036, August 2020. https://www.occ.gov/static/enforcement-actions/ea2020-036.pdf (opens in a new tab) ↩
- US Attorney’s Office, Western District of Washington, Former Seattle tech worker convicted of wire fraud and computer intrusions, US Department of Justice, 17 June 2022. https://www.justice.gov/usao-wdwa/pr/former-seattle-tech-worker-convicted-wire-fraud-and-computer-intrusions (opens in a new tab) ↩
- US Attorney’s Office, Western District of Washington, Former hacker sentenced for stealing computer power to mine cryptocurrency and stealing the personal information of more than 100 million people, US Department of Justice, 4 October 2022. https://www.justice.gov/usao-wdwa/pr/former-hacker-sentenced-stealing-computer-power-mine-cryptocurrency-and-stealing (opens in a new tab) ↩
- United States v. Paige A. Thompson, No. 22-30179, opinion, US Court of Appeals for the Ninth Circuit, filed 17 March 2025. https://cdn.ca9.uscourts.gov/datastore/opinions/2025/03/17/22-30179.pdf (opens in a new tab) ↩
- United States v. Paige A. Thompson, Case No. CR19-159RSL, Order on Resentencing, Dkt. 463, US District Court for the Western District of Washington, filed 3 November 2025 (copy hosted by CyberScoop). https://cyberscoop.com/wp-content/uploads/sites/3/2025/11/gov.uscourts.wawd_.277257.463.0-1.pdf (opens in a new tab) ↩
- New York State Department of Financial Services, Twitter Investigation Report, NYDFS, October 2020 (current re-hosted copy). https://www.dfs.ny.gov/system/files/documents/2026/07/Twitter-Investigation-Report.pdf (opens in a new tab) ↩1 ↩2
- MSRC, Microsoft mitigated exposure of internal information in a storage account due to overly-permissive SAS token, Microsoft Security Response Center blog, 18 September 2023. https://www.microsoft.com/en-us/msrc/blog/2023/09/microsoft-mitigated-exposure-of-internal-information-in-a-storage-account-due-to-overly-permissive-sas-token/ (opens in a new tab) ↩
- Hillai Ben-Sasson and Ronny Greenberg, 38TB of data accidentally exposed by Microsoft AI researchers, Wiz blog, 18 September 2023. https://www.wiz.io/blog/38-terabytes-of-private-data-accidentally-exposed-by-microsoft-ai-researchers (opens in a new tab) ↩
- Microsoft Threat Intelligence, Midnight Blizzard: Guidance for responders on nation-state attack, Microsoft Security Blog, 25 January 2024. https://www.microsoft.com/en-us/security/blog/2024/01/25/midnight-blizzard-guidance-for-responders-on-nation-state-attack/ (opens in a new tab) ↩1 ↩2
- Cyber Safety Review Board, Review of the Summer 2023 Microsoft Exchange Online Intrusion, US Department of Homeland Security, 20 March 2024 (archived copy; the CISA address no longer serves it). http://web.archive.org/web/20250224200957/https://www.cisa.gov/sites/default/files/2024-04/CSRB_Review_of_the_Summer_2023_MEO_Intrusion_Final_508c.pdf (opens in a new tab) ↩
- Verizon, 2025 Data Breach Investigations Report, Verizon Business, 2025. https://www.verizon.com/business/resources/Te3/reports/2025-dbir-data-breach-investigations-report.pdf (opens in a new tab) ↩
- OWASP Gen AI Security Project, LLM06:2025 Excessive Agency, OWASP Top 10 for LLM Applications 2025, accessed 28 November 2026. https://genai.owasp.org/llmrisk/llm062025-excessive-agency/ (opens in a new tab) ↩1 ↩2
- Model Context Protocol, Authorization, specification version 2026-07-28. https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization (opens in a new tab) ↩1 ↩2 ↩3
- Model Context Protocol, Authorization: Security Considerations, specification version 2026-07-28. https://modelcontextprotocol.io/specification/2026-07-28/basic/authorization/security-considerations (opens in a new tab) ↩1 ↩2
- Model Context Protocol, Security Best Practices, documentation for version 2026-07-28. https://modelcontextprotocol.io/docs/2026-07-28/tutorials/security/security_best_practices (opens in a new tab) ↩
- T. Lodderstedt, J. Bradley, A. Labunets and D. Fett, RFC 9700: Best Current Practice for OAuth 2.0 Security, IETF, January 2025. https://www.rfc-editor.org/rfc/rfc9700.txt (opens in a new tab) ↩1 ↩2
- Anthropic, How we built Claude Code auto mode: a safer way to skip permissions, Anthropic Engineering, 25 March 2026. https://www.anthropic.com/engineering/claude-code-auto-mode (opens in a new tab) ↩1 ↩2
- Anthropic, Making Claude Code safer with sandboxing (first published as Beyond permission prompts: making Claude Code more secure and autonomous), Anthropic Engineering, 20 October 2025. https://www.anthropic.com/engineering/claude-code-sandboxing (opens in a new tab) ↩1 ↩2
- Lujo Bauer, Scott Garriss and Michael K. Reiter, Detecting and Resolving Policy Misconfigurations in Access-Control Systems, ACM Transactions on Information and System Security 14(1), May 2011, authors’ version. https://reitermk.github.io/papers/2011/TISSEC1.pdf (opens in a new tab) ↩1 ↩2
- Lujo Bauer, Lorrie Faith Cranor, Robert W. Reeder, Michael K. Reiter and Kami Vaniea, Real Life Challenges in Access-control Management, CHI 2009, April 2009, authors’ copy. https://reitermk.github.io/papers/2009/CHI.pdf (opens in a new tab) ↩1 ↩2
- Rik Farrow, Interview with Travis McPeak, USENIX ;login: 43(2), Summer 2018. https://www.usenix.net/system/files/login/articles/login_summer18_03_mcpeak_interview.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4
- Netflix, Repokid: AWS Least Privilege for Distributed, High-Velocity Deployment (README), GitHub, accessed 28 November 2026. https://github.com/Netflix/repokid (opens in a new tab) ↩
- Vincent C. Hu et al., NIST SP 800-162, Guide to Attribute Based Access Control (ABAC) Definition and Considerations, NIST, January 2014 (includes updates as of 2 August 2019). https://nvlpubs.nist.gov/nistpubs/specialpublications/NIST.SP.800-162.pdf (opens in a new tab) ↩
- NIST, Role Engineering and RBAC Standards, Role Based Access Control project, CSRC, updated 4 March 2026. https://csrc.nist.gov/projects/role-based-access-control/role-engineering-and-rbac-standards (opens in a new tab) ↩
- Oliver Barrett, Aaron Joyner and Rory Ward, with Guy Fischman and Betsy Beyer, Chapter 5: Design for Least Privilege, in Building Secure and Reliable Systems, Google and O’Reilly, 2020. https://google.github.io/building-secure-and-reliable-systems/raw/ch05.html (opens in a new tab) ↩1 ↩2
- Travis McPeak, Least Privilege: Security Gain without Developer Pain, USENIX Enigma 2018, 17 January 2018. https://www.usenix.org/conference/enigma2018/presentation/mcpeak (opens in a new tab) ↩
- CISA, Zero Trust Maturity Model, Version 2.0, Cybersecurity and Infrastructure Security Agency, April 2023. https://www.cisa.gov/sites/default/files/2023-04/zero_trust_maturity_model_v2_508.pdf (opens in a new tab) ↩
- Mark S. Miller, Ka-Ping Yee and Jonathan Shapiro, Capability Myths Demolished, Johns Hopkins University Systems Research Laboratory Technical Report SRL2003-02, 2003 (course copy). https://classpages.cselabs.umn.edu/Fall-2024/csci5271/papers/SRL2003-02.pdf (opens in a new tab) ↩
- Datadog, State of Cloud Security 2024, Datadog, October 2024 (data collected September 2024). https://www.datadoghq.com/state-of-cloud-security-2024/ (opens in a new tab) ↩
- Microsoft, What is Microsoft Entra Privileged Identity Management?, Microsoft Learn, updated 24 November 2026. https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/pim-configure (opens in a new tab) ↩1 ↩2
- Microsoft, Best practices for Microsoft Entra roles, Microsoft Learn, 1 June 2026. https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/best-practices (opens in a new tab) ↩
- Microsoft, Manage emergency access admin accounts (Microsoft Entra ID), Microsoft Learn, updated 5 June 2026. https://learn.microsoft.com/en-us/entra/identity/role-based-access-control/security-emergency-access (opens in a new tab) ↩

SecSIG