My AgentStart a project
My Agent/TECHNOLOGY INSIGHTS

MY AGENT / INSIGHTS

Microsoft: AI agents scan GitHub for exposed keys

On 5 November 2026, Microsoft Threat Intelligence warned that attackers were using an AI agent framework (ARTEX) to scan public GitHub repositories for keys and compromise cloud environments within minutes.

Published 07/11/2026 · 3-minute read · Edited by: My Agent

News cover for Microsoft: AI Agents Scan GitHub for Exposed Keys, with a dark background and a teal glass icon

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.

Risk diagram: AI tools can quickly find keys in public code repositories
Risk diagram: AI tools can quickly find keys in public code repositories

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

  1. Review GitHub repositories, including forks and mirrors. Enable secret scanning and push protection where supported, and scan commit history, not just the current branch.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
Immediate action checklist: revoke exposed keys, remove them from the repository and review access permissions
Immediate action checklist: revoke exposed keys, remove them from the repository and review access permissions

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

  1. 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.

Discuss this topic with My Agent All technology news

// same topic

Related articles

News cover for Synology Warning of Ransomware Attacks on Unpatched NAS Devices, with a dark background and a teal glass icon
Security

Synology warns of ransomware targeting unpatched NAS devices

On 29 October 2026, Synology warned that attackers were exploiting a vulnerability patched in late 2024 to encrypt data on NAS devices running older DSM versions. This article summarises the key points and immediate actions.

Sources: Synology warning about ransomware on older DSM versions; Synology Security Advisory Synology-SA-24:20; BleepingComputer Read article “Synology warns of ransomware targeting unpatched NAS devices”

MY AGENT / NEXT STEP

Let's create
what works for you.

Connect with My Agent ↗