AI Agents Are Hunting Exposed Secrets, and Businesses Are Exposed

Published 7 November 2026

  • AI agents found exposed secrets and reached an Azure vault in five minutes

    The part of Microsoft’s latest warning that caught my attention was the speed.

    In one case, an AI agent found exposed secrets in GitHub and reached an Azure Key Vault in just five minutes. Microsoft says threat actors have been using agentic AI tools to search public code repositories for credentials and API keys, then use what they find to target an organisation. The activity was observed from August 2026. www.microsoft.com

    This is not a story about AI inventing a new kind of attack. It is about attackers using AI to find familiar security mistakes faster, and act on them with less human involvement.

    That leaves organisations less time to spot an exposed credential, revoke it and limit the damage.

    What Microsoft found

    Microsoft says the attackers used an agentic offensive framework called ARTEX to search public GitHub repositories for secrets. The agents could then analyse what they found and take further steps, rather than waiting for someone to guide every action.

    The five-minute example is a clear warning about what can happen when an exposed credential still works. Microsoft also reported later activity where attackers used valid application credentials to access cloud resources and look for more credentials and data. www.microsoft.com

    We should be precise about what this means. Microsoft is describing activity it observed, not saying every exposed secret will be found or abused by an AI agent. But the example shows how quickly a leaked credential can become a route into connected systems.

    Why this matters

    Secrets are the credentials that let applications and services access systems. They include API keys, tokens, passwords, connection strings and application credentials. They can end up in code or configuration files, where they should not be.

    Deleting an exposed secret does not make it safe. Someone may already have copied it, and the credential can remain valid until it is revoked or rotated. Microsoft advises organisations to treat exposed secrets as compromised, change them and check whether they have been used. www.microsoft.com

    That is the practical issue for businesses. We are connecting more applications, cloud services and AI tools, and those connections rely on credentials. If access is too broad, or a credential stays active long after it is needed, an attacker who finds it may be able to do far more than read one file.

    I have written before about the security questions raised by AI agents. In CrowdStrike’s AI Agent Kill Switch Is a Sign of the Times, I looked at the need to control what agents can do. In Australia Needs an AI Early Warning System. This Week Proved Why, I wrote about how quickly abuse can move. This Microsoft report brings the issue back to a basic one: credentials that are exposed and still work.

    My take

    I see this as a security hygiene problem with an AI accelerator.

    The weaknesses are familiar. Credentials get left in code. Old tokens stay active. Access is wider than it needs to be. Nobody is quite sure who owns a service account. AI does not create those problems, but it can help attackers find and use them faster.

    For organisations using AI agents, there are some straightforward questions to ask. Which credentials can an agent access? What can it do with them? Is that activity logged? How quickly can access be shut off?

    These are not glamorous questions, but they matter. A security plan that focuses only on spotting an attacker after they get in is missing the first step: reducing the number of credentials they can find and use.

    What to do now

    If you manage business systems, cloud services or AI tools:

    • Find your secrets. Check code repositories, configuration files, deployment pipelines and shared storage for keys, tokens, passwords and service credentials.
    • Change anything exposed. Removing a secret from a repository does not invalidate it.
    • Limit access. Give each person, application and service only the permissions it needs.
    • Use shorter-lived credentials where possible. Managed identities can reduce the need to keep long-lived secrets in code.
    • Check for signs of use. Look for unexpected sign-ins, secret reads, downloads or changes to application permissions.
    • Include AI agents in access reviews. Know what they can access, what they can do and how to revoke that access quickly.

    The message I take from Microsoft’s warning is simple: forgotten credentials can open the door to much more than the system they were created for. AI is helping attackers look for those credentials faster, so the basics need attention now.

    Source

How this analysis is researched, sourced and corrected: Editorial standards and corrections. Spotted an error? Contact Philip Hall.

Subscribe

Related articles

The UK Just Narrowly Avoided a Fridge Hack. The Rest of the World Isn’t So Lucky.

A secret operation that spanned supermarkets, warehouses and stadiums In...

AI Agents Are Trading Secrets for Help. That Is a Security Architecture Problem

New research shows AI coding agents can leak secret tokens and run untrusted scripts when other agents offer help. The lesson is architectural: keep secrets out of agent runtime.

CrowdStrike’s AI Agent Kill Switch Is a Sign of the Times

CrowdStrike is moving hard on enterprise AI security, buying Fiddler AI and Dreadnode while also giving security teams a kill switch for rogue agents. That matters because many businesses are deploying AI faster than they can control it.
Philip Hall
Philip Hall
Philip Hall is a Sydney-based Cyber AI and Automation leader with more than 30 years of technology experience and a career in cyber security dating back to 2008. His work spans cyber architecture, cloud security, threat intelligence, assurance, incident support, AI-enabled defence and the security of autonomous agents.