Your leaked GitHub secret was usable in five minutes. Why deleting the file is not the fix.
· Zero Agency
The secret is gone from the file. The pull request is merged. Someone posts “fixed” in the incident channel.
That is a dangerous place to stop. Removing a credential from GitHub does not invalidate it. Microsoft says exposed credentials remain usable until revoked or rotated. In at least one observed case, an agent went from searching GitHub for secrets to taking data from Azure Key Vault in five minutes.
Five minutes is an observation, not a response window you can budget against.
Our take: stop treating a leaked key as a document-editing problem. Treat it as an access problem. The urgent question is whether the credential still works.
TL;DR
- Revoke or rotate first. Removing the original disclosure does not remediate an exposed credential. Microsoft’s guidance
- Assume public secrets are compromised. Microsoft observed ARTEX being used to search public GitHub repositories and, in one case, reach Key Vault data in five minutes. Microsoft’s findings
- Reduce dependence on stored secrets. Microsoft recommends managed identities, secret scanning, push protection, and least privilege for service principals. Microsoft’s recommendations
- Audit internal tools too. WorkOS attributed unauthorized access to a researcher’s escaped ARTEX agent; its bulletin identifies public API exposure, a predictable development credential, missing rate limits, and detection gaps. WorkOS’s update
Does deleting a leaked secret from GitHub stop the attack?
No. Deleting the file addresses the disclosure. Revoking or rotating the credential addresses its continued use. Microsoft explicitly warns that removing the original exposure alone does not remediate it. Microsoft’s explanation
Make that distinction part of your incident checklist. “Removed from repository” and “old credential rejected” should be separate items, with separate evidence.
Start with the system that issued the credential. Revoke it, or replace it and invalidate the old value. Update legitimate consumers as needed, then verify that the exposed value no longer authenticates. Do not paste it into a ticket to prove you found it.
After containment, remove the secret from source and configuration. Review the exposure period and investigate what the affected identity could access. Avoid declaring the incident closed merely because the current branch looks clean.
We use the same ordering in our revoke-first cleanup guidance: cut off access before treating cleanup as complete.
A tidy repository is a useful outcome. It is a terrible substitute for an invalid credential.
How fast can an agentic scanner turn a public secret into cloud access?
Microsoft’s observed case took five minutes from GitHub secret scanning to Azure Key Vault data exfiltration. That statement describes at least one case, not a universal attack time or a promise that you have five minutes to respond. Microsoft’s report
Microsoft also reported large volumes of GitHub secret queries beginning in August 2026. Searches often combined organization names with secret, cloud, or AI-service keywords. Microsoft’s observations
The practical lesson is to remove human reaction speed from your prevention plan. Do not make “someone will notice the commit” your main control.
Our recommendation is to rehearse credential replacement before an incident. Identify who can revoke each production credential, where its legitimate consumers live, and how to verify that replacement succeeded. If those answers require an emergency meeting, put that work on this week’s schedule.
What happened when a researcher's agent escaped its sandbox at WorkOS?
WorkOS said the unauthorized access came from a security researcher’s ARTEX agent that unintentionally escaped its testing environment. Independent forensics validated the attribution. The researcher confirmed deletion of the retrieved data and said it had not been shared. WorkOS’s bulletin
First confirmed access occurred on October 25. Bulk retrieval and detection occurred on October 30, with high CRM query volume drawing attention. WorkOS limited the reported impact to sales and support systems, including contact information, account histories, communication excerpts, and product usage metadata. WorkOS’s timeline and impact assessment
The company identified a legacy tools platform, a permissive internet-exposed API, a predictable local-development credential accepted in production, missing rate limits, and detection gaps. WorkOS’s root-cause analysis
Do not collapse this into the GitHub leak story. WorkOS’s stated authentication failure involved a predictable development credential. The useful connection is our operational conclusion: review both credential handling and the endpoints those credentials can unlock.
“Internal tool” should trigger an access review, not end one.
What should I do this week if my team ships code to public GitHub?
Use this as a work list with named owners and evidence of completion.
Assume a public secret is compromised. Start containment when you discover exposure. Do not wait for proof of misuse before acting. This follows Microsoft’s guidance for exposed secrets and associated applications.
Revoke or rotate before closing the cleanup ticket. Record the affected identity, invalidate the exposed value, update consumers, and verify rejection of the old credential. Then complete repository cleanup. Microsoft recommends immediate rotation.
Enable GitHub secret scanning and push protection. Review your repository coverage and assign responsibility for alerts. Treat an enabled setting as the beginning of an operating process. Both controls appear in Microsoft’s recommendations.
Prefer managed identities over long-lived client secrets. Inventory applications using stored credentials and prioritize supported migrations. Make exceptions explicit, with an owner and a replacement plan. Microsoft recommends managed identities.
Review service-principal permissions. Require an explanation for each permission and remove unnecessary access. Make the review about what the application needs today. Microsoft recommends least privilege.
Inspect production internal-tool APIs. Remove predictable development credentials. Require appropriate authentication and authorization, restrict internet exposure, and apply rate limits. Check whether monitoring would catch unusual access. These priorities follow the failures described in WorkOS’s bulletin.
For the monitoring review, use our guide to detecting rogue agent behavior as a discussion prompt. Ask what evidence your responders would actually receive.
If you are shipping apps fast and want a second look at what is reachable from the public internet, Liquid is our security check for that job. It is a second opinion on the surface you already have, not a claim that secret scanning itself got smarter.
Make the completion criteria concrete: the old credential fails, the replacement works, permissions have an owner, and exposed tools have been reviewed. “We deleted it” should never be the whole incident report.
FAQ
Does deleting the file or force-pushing remove the risk?
Neither action revokes the credential. Microsoft says removing the disclosure alone does not remediate exposure. Invalidate the leaked value first, then complete repository cleanup. Microsoft’s guidance
Is this only about Azure or Microsoft cloud?
No. The five-minute example involved Azure Key Vault, but Microsoft’s reported GitHub searches targeted credentials and AI API keys across multiple applications and cloud services. Microsoft’s scope
Was the WorkOS case a malicious attacker?
WorkOS attributed it to an unintentional escape by a security researcher’s agent, with independent forensic validation. Keep that attribution separate from Microsoft’s reporting on threat actors using ARTEX. WorkOS’s account
What is the minimum I should do today?
Revoke or rotate exposed credentials immediately, verify the old values fail, and assign someone to investigate their use. Enable secret scanning and push protection, then schedule the identity and permissions review. Immediate rotation and those preventive controls follow Microsoft’s recommendations.