New Open Standard Proposed for Self-Destructing API Keys
A new open standard, ORKS, aims to revolutionize API key security by enabling keys to self-destruct upon compromise, drastically reducing the window for attackers.

The pervasive issue of leaked API keys, often found lingering in public repositories for years, poses a significant security risk. Traditional incident response involves a time-consuming scavenger hunt to identify the issuer and revoke the compromised credential, a process that is far too slow given the speed at which automated bots scrape for secrets. This new proposal, the Open Revocable Key Standard (ORKS), seeks to automate and standardize the revocation process, treating leaked keys as immediately defunct.
ORKS draws inspiration from existing solutions like OAuth's standardized token revocation endpoint (RFC 7009) and GitHub's Secret Scanning Partner Program. While GitHub's program is effective, it is proprietary and invite-only. ORKS aims to provide a universal, open standard that any scanner can leverage to request key revocation from any issuer, eliminating the need for bespoke integrations for each provider.
The proposed standard is structured around four key components. Firstly, keys would be prefixed with an encoded issuer domain, allowing any scanner to identify the key's origin offline. Secondly, issuers would host a discoverable configuration file at /.well-known/api-key-config, similar to OIDC discovery, detailing their revocation endpoint, security contacts, and supported key constraints. Thirdly, revocation would be initiated by POSTing the full key to the revocation endpoint, requiring no authentication, as possession of the key already implies compromise. Finally, the discovery file would advertise supported constraints like IP allowlists and expiry, enabling automated procurement and security tooling.
A significant concern with unauthenticated revocation is the potential for abuse, where a leaked key could be used to intentionally disrupt services. ORKS addresses this through an optional 'quarantine mode.' In this mode, an unauthenticated revocation request doesn't immediately kill the key. Instead, it notifies the owner, restricts the key to read-only operations, and initiates a timer (defaulting to 24 hours) after which the key is automatically revoked. Owners can expedite or cancel this process through an authenticated dashboard, turning potential outages into supervised wind-down periods.
The urgency for such a standard is amplified by the rise of AI agents. These agents often manage multiple credentials for various services, and their autonomous nature, coupled with new attack vectors like prompt injection, can lead to rapid credential exfiltration. The window between compromise and abuse for AI agents can shrink to mere seconds, making any revocation process that relies on human intervention and email notifications fundamentally inadequate.
ORKS is designed to integrate seamlessly with the AI agent ecosystem. Its machine-readable kill switch provides the necessary interface for autonomous systems to react to potential compromises. The quarantine mode can act as a reflex to catch injection attempts mid-flight, and declared constraints offer a way to securely provision keys to AI agents with defined limitations. The standard also supports patterns where an agent can proactively revoke its own credentials upon task completion.
By establishing a universal mechanism for API key revocation, ORKS promises to significantly shrink the attack surface associated with leaked credentials. This proactive, automated approach is crucial for modern security landscapes, especially with the increasing reliance on AI agents and the ever-present threat of automated credential scraping.