The growing use of AI in cybersecurity is changing how attackers discover weaknesses. One particularly important development is the use of automated, AI-assisted tooling to identify exposed credentials and abuse legitimate identity infrastructure.
For defenders, this creates a challenge. An attacker may not need to exploit a software vulnerability if they can obtain a valid credential and use it to access an organization existing services. In other words, identity abuse can offer a direct route into systems that already trust the compromised account.
Recent Microsoft Threat Intelligence reporting provides a useful case study. The findings, published 5 November 2026, show why security teams need visibility into both human and application identities. In a recent post, I also examined AI-assisted attacks and other shifts in the cybersecurity landscape.

1. How attackers are using AI to discover exposed credentials
According to Microsoft’s November 5 investigation, threat actors used an agentic offensive security framework known as ARTEX to search public GitHub repositories for exposed secrets. These included OAuth application credentials, API keys used to access AI services, cloud authentication credentials, and other sensitive authentication material stored in source code.
Searching public repositories for accidentally exposed credentials is not new. However, the level of automation is changing: an AI agent can search repositories, examine discovered credentials, identify associated services and attempt follow-on actions with much less human involvement.
Microsoft documented an incident in which an agent progressed from searching GitHub for exposed application credentials to extracting information from Azure Key Vault in approximately five minutes. As a result, defenders may have very little time to detect and contain this kind of intrusion. Microsoft Threat Intelligence investigation
2. From a leaked API key to cloud compromise
To understand the risk, consider this hypothetical scenario: a developer accidentally commits an application’s client secret to a public GitHub repository. An attacker discovers it and authenticates as the application. Because the application has permissions to access cloud resources, including storage accounts and a secrets vault, the attacker can use that legitimate access instead of exploiting a traditional vulnerability.
Example attack chain
- Credential exposure: A developer publishes an application secret on GitHub.
- Automated discovery: An attacker uses automated tooling to identify the exposed credential.
- Identity compromise: The attacker authenticates using the compromised application’s identity.
- Cloud reconnaissance: The attacker enumerates cloud resources, permissions and available services.
- Credential harvesting: Accessible secrets, connection strings and storage credentials are collected.
- Data access or exfiltration: The attacker accesses sensitive information and potentially moves further into the environment.
Microsoft observed several of these activities in its investigation, including access to Azure Key Vault, Storage Accounts, SharePoint and OneDrive. Crucially, the attacker is abusing legitimate application permissions. Therefore, monitoring that focuses mainly on suspicious user logins may miss this activity. Microsoft Threat Intelligence investigation
3. Why service principals deserve more attention
A service principal is an identity used by an application to authenticate and access resources within an organization. For example, an organization might have an application that automatically collects information from a cloud storage account. Rather than using an employee’s username and password, the application authenticates using its own identity.
This is useful for automation, but it introduces another security responsibility. If the application’s credentials are exposed, an attacker may inherit whatever permissions have been assigned to that application. Consequently, protecting employee accounts alone is insufficient.
Security teams must also monitor application registrations, service principal sign-ins, application permission changes, new credentials added to existing applications, unusual access to cloud resources, and changes to application authentication configurations.
Microsoft’s guidance on Conditional Access for workload identities explains how organizations can apply additional access restrictions to service principals. Workload identity Conditional Access policies have specific licensing and application coverage requirements, so they are not a universal control for every application identity.
4. What SOC analysts should monitor
A SOC analyst should not depend exclusively on known malicious IP addresses. Microsoft warns that attackers can change IP addresses, user-agent strings and other identifiable characteristics of their tools. For this reason, behavioral monitoring is important.
| Activity | Why it deserves attention |
|---|---|
| Multiple service principal sign-ins from one IP | Could indicate automated credential abuse |
| Failed application authentication followed by success | Could indicate someone testing an exposed credential |
| Unusual Key Vault access | May indicate credential harvesting |
| Unexpected application permission changes | Could indicate persistence or privilege expansion |
| Unusual Microsoft Graph API activity | Could indicate cloud reconnaissance |
| Unexpected downloads from cloud storage | Could indicate data collection or exfiltration |
| New credentials added to an existing application | Could indicate an attempt to maintain access |
These are investigation leads, not proof of compromise. For example, a legitimate application can generate unusual activity during maintenance, deployments or workload changes. The analyst’s responsibility is to establish whether the activity is expected, authorized and consistent with the application’s normal behavior.
Microsoft recommends reviewing service principal sign-in logs, Entra audit logs, Azure Activity logs, Key Vault diagnostics, Storage diagnostics and Microsoft 365 audit logs. Microsoft Threat Intelligence investigation
A practical investigation workflow
When an alert involving an application identity appears, work through the following process:
- Identify the application: Determine which service principal generated the activity.
- Establish a baseline: Check its normal IP addresses, access patterns, permissions and resources.
- Review authentication: Examine successful and unsuccessful sign-ins.
- Investigate resource access: Check whether the application accessed sensitive resources such as Key Vault or cloud storage.
- Check for changes: Look for newly created credentials, permission modifications or unfamiliar application configurations.
- Determine impact: Establish what information or resources may have been accessed.
- Escalate and contain: Follow the incident response process, including revoking exposed credentials and disabling compromised identities where necessary.
Do not immediately disable a production application without understanding its dependencies and coordinating containment with the relevant team.
5. Building better detection in a SIEM
A SIEM helps analysts identify suspicious activity by correlating events across different sources. However, collecting authentication logs alone is not enough for this attack pattern.
| Log source | Useful information |
|---|---|
| Identity provider | Application sign-ins and authentication failures |
| Cloud activity logs | Resource enumeration and configuration changes |
| Secrets management | Key Vault access and secret retrieval |
| Storage logs | Unusual file access and downloads |
| Application audit logs | Application registration and credential changes |
| Endpoint/network logs | Suspicious tools and outbound connections |
A useful detection hypothesis would be: An application identity authenticates from an unfamiliar source, accesses multiple cloud services within a short period and subsequently retrieves sensitive credentials. This is more meaningful than simply alerting whenever an application signs in from an unfamiliar IP address. Instead, build separate alerts for each stage and correlate them during investigation.
For analysts working with Microsoft Sentinel, Microsoft’s November 5 report includes example Advanced Hunting queries covering service principal sign-ins, Graph API activity, cloud audit events and storage activity. These are useful starting points for translating threat intelligence into practical SIEM detection. Microsoft Threat Intelligence investigation
6. Defensive measures organizations should implement
1. Introduce secret scanning. Use automated tools to identify exposed API keys, passwords, tokens and application credentials in repositories. GitHub Secret Scanning checks repository history and other supported locations for exposed credentials.
2. Enable push protection. Push protection helps prevent supported secrets from being committed to repositories in the first place. In practice, preventing exposure is preferable to discovering a leaked credential after an attacker has already found it.
3. Rotate exposed credentials immediately. Deleting a secret from a repository does not invalidate it. Therefore, if a credential has been exposed, revoke or rotate it and investigate whether it was used.
4. Apply least privilege. Applications should only have the permissions necessary to perform their intended functions. For example, an application that only needs to read one storage container should not have broad access to an entire cloud environment.
5. Reduce reliance on long-lived credentials. Where supported, use managed identities or other authentication mechanisms that reduce the need to store long-lived secrets in source code.
6. Monitor workload identities. Include service principal sign-ins and application permission changes in routine security monitoring.
7. Protect recovery infrastructure. Ensure attackers cannot easily disable backups or modify recovery resources after compromising an application identity.
These recommendations align with Microsoft’s investigation and its workload identity guidance and GitHub secret security documentation.
7. What this means for the future of SOC operations
The growing use of AI-assisted attack tooling introduces a difficult challenge for security teams. Attackers can automate reconnaissance, credential discovery and parts of the exploitation process. As a result, the time between initial exposure and potentially harmful activity can become very short.
SOC teams should place greater emphasis on monitoring machine identities alongside human identities, automating the correlation of authentication and cloud activity, reducing the time required to investigate exposed credentials, establishing clear procedures for credential revocation, and improving visibility across cloud services and third-party applications.
AI does not eliminate the need for skilled security analysts. Instead, it increases the importance of analysts who understand identity infrastructure, cloud permissions, logs and incident response. The challenge is no longer simply identifying suspicious login attempts; analysts must also understand what an authenticated identity is doing after it gains access.
Conclusion
Exposed credentials can provide attackers with a direct route into otherwise legitimate systems. Microsoft’s November 2026 investigation demonstrates how automated AI tooling can accelerate this process, moving from discovering credentials in public repositories to accessing sensitive cloud resources.
For defenders, the lesson is straightforward: securing identities means securing both people and applications. A mature SOC should be able to identify unusual application behavior, investigate suspicious cloud access and respond quickly when credentials are compromised. Ultimately, detecting these activities before they develop into larger incidents will become increasingly important as automated attack tooling evolves.
Practical defensive projects
Project 1: Build a cloud identity abuse detection lab
Difficulty: Intermediate ·Estimated time: 3–5 hours
Objective: Detect suspicious application authentication and cloud resource access.
Tools: Elastic SIEM; Windows or Ubuntu virtual machine; sample authentication and cloud audit logs; Microsoft Entra sign-in log samples or documented synthetic events.
Tasks:
- Set up an Elastic environment.
- Import sample authentication and audit logs.
- Identify application authentication failures and successes.
- Create a detection for multiple application sign-ins from an unfamiliar IP.
- Create another detection for unusual access to sensitive resources.
- Generate a dashboard showing authentication activity and suspicious events.
- Investigate a simulated incident and document your findings.
Expected output: SIEM dashboard, detection rules, investigation notes and a short incident report.
Skills practiced: Log analysis, SIEM configuration, detection engineering and alert triage.
Project 2: Build a secrets exposure prevention exercise
Difficulty: Intermediate · Estimated time: 2–3 hours
Objective: Understand how exposed credentials are discovered and how organizations prevent accidental disclosure.
Tools: GitHub; a test repository; GitHub Secret Scanning; GitHub Push Protection documentation.
Tasks:
- Create a private test repository.
- Review GitHub’s secret-scanning features.
- Examine sample credential patterns using dummy, non-functional values.
- Explore how secret-scanning alerts are generated.
- Review push protection and its preventive role.
- Develop a simple credential exposure response checklist.
Expected output: A repository security assessment and credential remediation checklist.
Skills practiced: Secrets management, secure development practices and vulnerability prevention.
Project 3: Investigate a simulated compromised application identity
Difficulty: Intermediate · Estimated time: 3–4 hours
Objective: Practice investigating an application identity that has been compromised.
Tools: Microsoft Entra documentation; sample service principal sign-in logs; Excel or Google Sheets; MITRE ATT&CK.
Tasks:
- Obtain or create a sample set of application authentication events.
- Identify unfamiliar sign-in locations and repeated failures.
- Examine changes to application credentials and permissions.
- Establish which cloud resources the application accessed.
- Build a timeline of suspicious activity.
- Map relevant activities to MITRE ATT&CK.
- Write an incident report with containment and recovery recommendations.
Expected output: Incident timeline, ATT&CK mapping and a professional SOC incident report.
Skills practiced: Threat hunting, identity investigation, incident response and technical reporting.
Safety note: Use only synthetic logs, dummy credentials and systems you own or are authorized to test. Do not publish real credentials or attempt to access third-party cloud resources.


0 Comments