A secret accidentally committed to a public repository is no longer a problem you can solve by deleting a line of code. Treat every exposed credential as compromised, revoke or rotate it immediately, investigate what it could access, and remove the conditions that allowed the leak. For a startup CTO, the window to act may be measured in minutes.

On 5 November 2026, Microsoft Threat Intelligence published research describing attackers using agentic AI tooling to discover credentials in public GitHub repositories and pursue cloud access. In one observed case, Microsoft says an AI agent progressed from finding a client secret on GitHub to extracting data from Azure Key Vault in five minutes.

That is an observed case, not a universal attack time. But it changes the operational assumption for small engineering teams: detecting a leak during the next weekly security review is too late.

What Microsoft’s investigation actually found

Microsoft describes an offensive framework, ARTEX, being used to search public code repositories for exposed credentials, application secrets and AI inference API keys. The tooling could interpret results and take follow-on actions with less manual intervention.

In activity observed from late October, attackers used compromised application credentials to sign in to cloud tenants, enumerate resources and attempt to access sensitive services. Microsoft also documented attempts to retrieve storage keys, application settings and other credentials.

The important distinction is that the AI agent did not need to invent a new vulnerability. It accelerated an established attack path: discover a secret, authenticate as a legitimate application, identify valuable resources and use the permissions already granted.

Why Indian startups have a particular exposure

Early-stage teams optimise for shipping. A developer may paste a temporary token into a script, commit an environment file during debugging, or give a deployment integration broad access because granular permissions take longer to configure.

The same startup may use cloud storage for customer documents, an external AI provider for inference, and a recruiting or CRM platform with sensitive records. A credential that crosses those boundaries can turn a minor coding mistake into a customer-data incident.

If your team has already introduced autonomous coding agents, read the related AI agent security checklist. That article focuses on agent permissions. This one addresses the separate question: what happens when attackers automate the exploitation of your own leaked credentials?

The first 60 minutes after a credential leak

First, contain access. Identify the exact credential and its owner. Revoke it or rotate it through the provider’s control plane; do not merely remove it from Git. Disable the affected integration if you cannot quickly determine the scope. Assume copies may remain in forks, caches and Git history.

Second, inspect the blast radius. Record the identity’s permissions, accessible services and recent successful authentication events. Look for unusual downloads, newly created credentials, unexpected API usage and permission changes. If a secret could read another secret store, examine and rotate downstream credentials too.

Third, preserve evidence. Keep relevant audit logs, timestamps and the affected commit reference. Avoid publishing the exposed token in incident tickets or chat messages. Fourth, restore safely. Issue a replacement with the narrowest required scope. Test the application before reopening access. Monitor the identity and related services for continued suspicious activity.

A seven-day hardening plan for a lean engineering team

Day 1: Find your actual credentials

Inventory credentials used by production services, CI pipelines, third-party integrations and developer machines. Assign an owner and expiry or review date to each. Prioritise tokens with access to customer data, cloud administration, billing and deployment.

Day 2: Turn on preventive scanning

Enable repository secret scanning and push protection where supported. Microsoft’s report specifically recommends monitoring public repositories and rotating exposed credentials. See GitHub’s secret scanning documentation for supported detection and protection options.

Day 3: Reduce privileges

Replace administrator tokens with narrowly scoped service identities. Separate development and production credentials. Ensure a content-generation worker cannot also modify billing, infrastructure or customer databases without a clear reason.

Day 4: Remove long-lived secrets where possible

Prefer managed identities, short-lived tokens or workload identity federation when the platform supports them. These reduce the number of reusable secrets that can be accidentally copied into code.

Day 5: Test revocation

Choose a non-production credential and run a tabletop exercise. Can the team identify its owner, revoke it and restore the integration within an hour? Measure the elapsed time rather than accepting a verbal assurance.

Day 6: Monitor behaviour, not just known IP addresses

Microsoft warns that attacker infrastructure can change. Alert on abnormal authentication patterns, rapid cross-service access, unusual secret reads and unexpected data exports. A fixed list of suspicious IP addresses will not be sufficient.

Day 7: Give one person ownership

Create a lightweight incident runbook with a primary owner, backup, escalation contacts and the location of audit logs. Review exceptions monthly. ## Measure whether the system works

A founder does not need a 40-page security programme to start. Track four numbers: unowned privileged credentials, long-lived production secrets, time to revoke a test credential, and unresolved secret-scanning alerts.

The founder decision

The lesson from Microsoft’s November research is not that every startup needs an expensive security platform. It is that the economics of attacking weak credentials have improved.

If an automated attacker can move from public code to cloud access in minutes, a manual, informal response process is no longer adequate. Give engineering teams the tools to prevent leaks, the permissions to limit damage, and the authority to revoke access immediately.

For a complementary approach to controlling AI-generated engineering changes, see how to measure AI code review ROI. Shipping faster only helps if the systems behind that speed remain trustworthy.

Primary source: Microsoft Threat Intelligence and Microsoft Security Research, 5 November 2026.

Continue the argument

What did I miss?

Send a counterexample, question or first-hand experience. The strongest questions will be answered inside this article so the page becomes more useful over time.

Send a question