Threat actors have recently leveraged an agentic AI offensive framework to scan public code repositories for exposed secrets, including application credentials and API keys. This automated approach accelerates the discovery of authentication material that was historically limited by the time required for manual review. The initial access vector relies on publicly available data, where developers inadvertently commit sensitive information to open-source platforms. Once these secrets are identified, the framework uses them to gain unauthorized access to cloud environments, posing a significant risk to organizations that store credentials in code or configuration files without adequate protection.
The mechanism involves the AI framework submitting large volumes of queries to locate target-specific secrets, then using valid leaked credentials to perform service principal sign-ins across multiple tenants. Upon successful authentication, the agent conducts cloud resource discovery, enumerating subscriptions, resource groups, and permissions to map the environment. It targets operations that return storage account keys, connection strings, and machine learning datastores, while also accessing SharePoint and OneDrive for file downloads. The agent demonstrates adaptive behavior by adjusting API versions and HTTP methods after failed requests to ensure successful data retrieval. In one observed instance, the system progressed from scanning repositories to exfiltrating data from key vaults in just five minutes, utilizing compromised OAuth applications to execute scripts on virtual machines for further lateral movement and persistence.[/subscribe_to_unlock_form]
Threat actors have recently leveraged an agentic AI offensive framework to scan public code repositories for exposed secrets, including application credentials and API keys. This automated approach accelerates the discovery of authentication material that was historically limited by the time required for manual review. The initial access vector relies on publicly available data, where developers inadvertently commit sensitive information to open-source platforms. Once these secrets are identified, the framework uses them to gain unauthorized access to cloud environments, posing a significant risk to organizations that store credentials in code or configuration files without adequate protection.
The mechanism involves the AI framework submitting large volumes of queries to locate target-specific secrets, then using valid leaked credentials to perform service principal sign-ins across multiple tenants. Upon successful authentication, the agent conducts cloud resource discovery, enumerating subscriptions, resource groups, and permissions to map the environment. It targets operations that return storage account keys, connection strings, and machine learning datastores, while also accessing SharePoint and OneDrive for file downloads. The agent demonstrates adaptive behavior by adjusting API versions and HTTP methods after failed requests to ensure successful data retrieval. In one observed instance, the system progressed from scanning repositories to exfiltrating data from key vaults in just five minutes, utilizing compromised OAuth applications to execute scripts on virtual machines for further lateral movement and persistence.[emaillocker id="1283"]
This activity illustrates a growing trend of threat actors using agentic AI to accelerate all stages of the attack chain, reducing the need for hands-on-keyboard interactions. The campaign has impacted multiple customers, with compromised multitenant application credentials used to access downstream tenants and abuse AI services. The rapid progression from initial discovery to data exfiltration highlights the urgency of automated defensive measures. Organizations must immediately rotate exposed credentials, enforce least privilege for workload identities, and migrate away from secret-based authentication to managed identities. Additionally, implementing behavioral detection for anomalous API usage and deploying defensive honeypots can help mitigate the impact of these autonomous attacks.
| Tactic | Technique Id | Technique | Sub-technique |
|---|---|---|---|
| Execution | T1059.004 | Command and Scripting Interpreter | Python |
| Execution | T1059.003 | Command and Scripting Interpreter | Windows Command Shell |
| Persistence | T1078.004 | Valid Accounts | Cloud Accounts |
| Credential Access | T1552.004 | Unsecured Credentials | Cloud Instance Metadata API Credentials |
| Discovery | T1046 | Network Service Scanning | - |
| Discovery | T1046.001 | Network Service Scanning | SNMP |
| Discovery | T1082 | System Information Discovery | - |
| Lateral Movement | T1021.001 | Remote Services | SSH |
| Collection | T1039 | Data from Information Repositories | - |
| Collection | T1005 | Data from Local System | - |
| Command and Control | T1071.001 | Application Layer Protocol | Web Service |
| Exfiltration | T1041 | Exfiltration Over C2 Channel | - |
| Objective | Behavior ID | Behavior |
|---|---|---|
| Discovery | E1082 | System Information Discovery |
| Discovery | E1083 | File and Directory Discovery |
| Collection | E1056 | Input Capture |
| Exfiltration | E1020 | Automated Exfiltration |
| Communication Micro-objective | C0002 | HTTP Communication |
| Communication Micro-objective | C0011 | DNS Communication |
| Command and Control | B0030 | C2 Communication |
| Execution | E1204 | User Execution |
| Execution | B0011 | Remote Commands |
| Process Micro-objective | C0017 | Create Process |
| Execution | E1059 | Command and Scripting Interpreter |
| Defense Evasion | F0004 | Disable or Evade Security Tools |
The following reports contain further technical details:
[/emaillocker]