99% of Repository Access Tokens Never Expire – A Growing Blind Spot in Developer Environments
What Happened — BlueFlag Security’s State of Developer Risk 2026 report, cited by Help Net Security, reveals that the overwhelming majority of repository‑access tokens used in modern software development pipelines are issued without an expiration date. Across a large, anonymized data set, 99 % of tokens never expire, 84 % grant write‑access to code, and 47 % have sat idle for more than 90 days without revocation. The study also shows that non‑human identities (service accounts, bots, AI coding agents) outnumber human developers eight‑to‑one, and that many of these identities retain administrator privileges long after the projects they support have ended.
Developers, contractors, and AI‑driven coding assistants routinely accumulate permissions that far exceed their day‑to‑day needs. The average developer uses only 61 % of the permissions granted, yet the most over‑privileged developers can reach business‑critical repositories, including production services, payment systems, and regulated workloads. Four‑in‑five organizations host developer identities that have been inactive for over 90 days but still hold admin rights, creating a ripe attack surface for credential theft.
AI coding agents compound the problem. Roughly 83 % of surveyed firms employ at least one unapproved AI tool, and many lack an inventory of approved agents. These agents operate either under a human developer’s identity—inheriting the developer’s permissions—or as autonomous identities with their own credentials. In the latter case, 68 % of the service‑account‑style identities used by agents possess administrator rights, and 81 % lack any behavioral monitoring. In six‑in‑ten organizations with AI activity, agents wield tokens capable of cloning every repository in the environment.
The report flags anomalous behavior that often precedes misuse. Half of the organizations observed at least one identity with a sudden spike in repository cloning; 28 % of those identities cloned 100 + repositories they had never accessed before. While not proof of theft, such patterns merit investigation. Moreover, 40 % of repositories had unprotected main branches, and code review was bypassed in four‑fifths of firms. In 56 % of cases, code was merged despite failed automated checks, and two‑thirds of merges proceeded with unresolved reviewer comments.
Consequences extend beyond code integrity. Private repositories were inadvertently made public in 28 % of the sample, exposing source code, documentation, and embedded secrets (API keys, passwords). Because AI assistants often act under a developer’s name, malicious changes can be attributed to a legitimate user, obscuring attribution without explicit commit tagging or metadata.
BlueFlag’s findings underscore a systemic lapse in identity lifecycle management, token hygiene, and continuous monitoring of both human and non‑human actors in the software supply chain. The lack of token expiration, combined with scarce access‑review processes, leaves organizations vulnerable to credential compromise, code exfiltration, and supply‑chain attacks that can cascade into broader business and regulatory fallout.
Why It Matters for Trust & Control Assurance — The data highlights a critical gap in access‑control governance: without enforced token lifecycles and regular permission reviews, organizations cannot demonstrate robust identity‑management controls required across multiple compliance frameworks.
Who Is Affected — Technology firms, fintech, SaaS providers, regulated industries (healthcare, finance), and any organization that relies on code repositories, CI/CD pipelines, or AI‑assisted development tools.
Recommended Actions
- Implement token expiration policies for all repository‑access credentials, including service‑account tokens and AI‑agent keys.
- Conduct periodic access‑review cycles (at least quarterly) to validate that identities—human or non‑human—retain only the permissions needed for current duties.
- Deploy behavioral analytics to flag anomalous cloning or merge activity, especially for high‑privilege or autonomous AI identities.
- Catalog and approve AI coding tools; enforce a whitelist and require explicit tagging of AI‑generated commits.
- Secure main branches with branch‑protection rules and enforce mandatory code‑review approvals before merges.
Source: Help Net Security – 99% of repository access tokens never expire
Technical Notes
- Access tokens: 99 % lack expiration; 84 % grant write permissions; 47 % idle > 90 days.
- Identity ratio: Non‑human identities outnumber developers 8:1.
- AI agents: 83 % of firms use unapproved tools; 68 % of AI‑operated identities hold admin rights; 81 % lack monitoring.
- Anomalies: 50 % of orgs saw spikes in cloning; 28 % of repos became public inadvertently.
Source: BlueFlag Security, State of Developer Risk 2026.