
What's new
On 5/11/2026, Microsoft Threat Intelligence reported that some threat actors were using offensive AI agent frameworks such as ARTEX to find exposed credentials on public GitHub repositories, including application passwords, OAuth client secrets, cloud API keys and AI model keys, then use them to access cloud resources.
Microsoft says searching public repositories for credentials is not new, but previously required people to find repositories, read code and test keys. Agent tools scan more repositories faster, analyze results and execute follow-up steps automatically, reducing hands-on effort. In at least one case, Microsoft observed an agent progressing from scanning GitHub to extracting data from Azure Key Vault in about five minutes.
Microsoft also tracked abuse of legitimate application credentials from around 28/10/2026, including successful service principal sign-ins from several IP addresses. In some cases, exposed multi-tenant application credentials on the vendor side were used to enter multiple customer tenants. After gaining access, attackers explored resources, obtained more keys for storage, App Service, connection strings and AI resources, and in some tenants accessed SharePoint/OneDrive or sent Microsoft Graph requests to search for content.
Why small businesses should pay attention
Many shops, studios and small teams still put keys in .env files and accidentally commit them, or embed tokens in demo scripts and publish the repository. Once a repository is public, scanners, including agents, can find keys almost immediately. Deleting the line in a newer version does not revoke the key: Git history, forks, mirrors and caches may retain copies.

The consequences extend beyond source-code exposure. Application credentials often provide programmatic access to cloud resources, secret stores, storage or AI services, precisely the resources Microsoft observed being abused. If your business pays per AI API call, stolen keys can generate unexpected charges before discovery.
What to do now
- Review GitHub repositories, including forks and mirrors. Enable secret scanning and push protection where supported, and scan commit history, not just the current branch.
- For every key exposed publicly, assume it is compromised: revoke or rotate it immediately, then inspect application and service principal sign-in logs for unusual access.
- Do not store long-lived client secrets in source code. Prefer server environment variables, access-controlled secret stores or authentication without static secrets, such as managed identity or workload identity, where supported.
- Apply least privilege to each application, limiting access to required resources. Separate keys by environment, such as dev/prod, and service so one exposed key does not unlock everything.
- Watch for unusual signals: one IP signing into many service principals quickly, invalid or expired secret errors mixed with successful sign-ins, or spikes in AI API or cloud costs.

This news does not mean small businesses must immediately buy more AI security tools. The most practical steps are to stop storing keys in public repositories, rotate exposed keys and regularly review application permissions, because agent-driven scanning and exploitation are shortening response windows from days to minutes.
Reference sources
- Microsoft Security Blog – Threat actors use agentic AI tooling to find and abuse exposed secrets (opens in a new tab) · 05/11/2026
www.microsoft.com/en-us/security/blog/2026/11/05/threat-actors-use-agentic-ai-tooling-to-find-and-abuse-exposed-secrets/
Written independently by My Agent in its own words based on the sources above; original content belongs to its sources. Keywords: microsoft · github · bao-mat · ai · api-key.


