When an attacker compromises a software package your team installed, the critical question shifts from user workstations to non-human identities. AI agent credentials incident response focuses on machine identities holding OAuth tokens, cloud managed identity assignments, and federated pipeline credentials—access that survives password resets and MFA changes. On November 17, 2026, two malicious versions of Microsoft's agent-framework package appeared on PyPI, reading credential files and requesting tokens from Azure and GitHub within hours.
What does an AI agent credential compromise actually expose?
The November 2026 agent-framework incident shows the scope clearly. According to StepSecurity (November 2026), versions 1.26.1 and 1.26.2 installed a .pth startup hook that executed whenever Python started in the affected environment—no import of the framework required. The code read environment variables with sensitive names, extracted credential files from disk, and attempted to request new tokens from Azure managed identity, Azure DevOps OIDC, and GitHub Actions OIDC endpoints.
The credential files targeted tell the story of what an AI development environment holds:
| Credential Target | What It Grants Access To | Why It Matters in an Incident |
|---|---|---|
| Azure CLI token caches | Azure subscriptions and resources | Attacker can enumerate and modify cloud infrastructure |
| .npmrc and .netrc files | Package registries and source repositories | Supply chain pivot point for further compromise |
| .git-credentials | Git repositories | Source code access, including AI model configurations |
| Docker config.json | Container registries | Access to deployment pipelines and images |
| Hugging Face tokens | Model repositories and inference endpoints | Model theft or poisoning vector |
| Azure managed identity tokens | Cloud resources assigned to the identity | Lateral movement without stored credentials |
| GitHub Actions OIDC tokens | CI/CD pipeline permissions | Build process compromise and artifact tampering |
This is not a theoretical list. BleepingComputer (November 2026) confirmed that the attacker retained access after the first version was quarantined, publishing a second malicious version minutes later. The window between upload and quarantine was measured in minutes—31 minutes for version 1.26.1, 8 minutes for 1.26.2—but the credential files exfiltrated in that window persist until rotated.
Why do infostealers now target AI tool credentials specifically?
SpyCloud Labs (October 2026) documented a shift in infostealer behavior that compounds the supply chain risk. WardenStealer and Aoki now extract the OAuth credential files that AI development tools write to disk. Claude Code stores access tokens, refresh tokens, and tokens for connected MCP servers alongside its CLAUDE.md instruction file. Codex CLI saves an OpenAI API key with access and refresh tokens in its authentication file.
The operational problem: SpyCloud found that much of this access survives both password changes and MFA resets. The OAuth tokens remain valid until explicitly revoked. An attacker with a stolen Claude Code credential file can interact with connected MCP servers—which may have their own access to internal systems—without triggering any user-account-level security control.
This means the incident response playbook for a regulated company must now include a step that didn't exist two years ago: identify every AI development tool installed in the affected environment, locate its credential storage path, and determine whether the tokens it held grant access that outlives the user session.

How does AI agent credentials incident response change the first hours?
The traditional sequence—isolate, identify compromised accounts, reset credentials, restore—assumes human identities. AI agent credentials incident response requires a different order because the identities are non-human and their access is federated across services.
StepSecurity's remediation guidance for the agent-framework incident outlines the scope: isolate affected environments before running Python or pip again, rebuild from a clean base, rotate from a clean system every credential the code could have read or requested, and review GitHub OIDC permissions, Azure federated credentials, Azure DevOps service connections, and managed identity role assignments.
For a company regulated under Panama's Law 81 of 2019 on personal data protection, this technical scope has a legal dimension. Article 37 requires immediate notification to the data protection authority and affected individuals, with a 72-hour deadline from the moment the incident is known. Article 38 requires documenting each breach with date, cause, facts, effects, and corrective measures.
You cannot meet that obligation with estimates. You need to trace what each non-human identity accessed. If a managed identity had read access to a storage account containing personal data, that fact must be documented. If an OIDC token granted access to a repository with customer configuration files, that must be documented. The notification must state facts, not possibilities.
How do you trace what a compromised agent identity actually accessed?
The answer determines whether your 72-hour notification is defensible. Tracing non-human identity access requires:
-
Credential inventory by identity, not by user. List every token, key, and federated trust the agent held. This includes what the credential file contained and what tokens the agent could request from cloud metadata services.
-
Access log correlation against the compromise window. For Azure managed identities, this means reviewing activity logs for the identity's object ID during the exposure period. For OIDC tokens, this means checking pipeline execution logs and artifact access.
-
Data classification mapping. For each resource the identity accessed, determine whether it contained personal data under Law 81's definition. This is what separates a security incident from a notifiable data breach.
-
Token revocation verification. Revoking a token is not the same as confirming revocation. OAuth refresh tokens can be used to obtain new access tokens until the refresh token itself is invalidated. SpyCloud's finding that infostealer-harvested tokens survive password changes means you must revoke at the token level, not the account level.
The lockfile recommendation from StepSecurity—pinning version 1.26.0 with a hash—is a preventive control. During incident response, the equivalent is verifying that no environment still runs the compromised version before any credential rotation begins. Rotating credentials on a system that still has the malicious .pth hook gives the attacker the new credentials.
What does this mean for companies operating in Panama and Latin America?
Regulated companies in Latin America face a specific intersection of technical and legal requirements. The agent-framework compromise and the infostealer shift toward AI tool credentials create a compliance exposure that did not exist when most data protection frameworks in the region were written.
Panama's Law 81 and its Executive Decree 285 of 2021 require documenting what happened, which data was affected, and what corrective measures were taken. When the compromised identity is a non-human agent with federated access across cloud services, CI/CD pipelines, and AI tool credential files, the documentation requires tracing access paths that cross service boundaries and authentication mechanisms.
The practical implication: companies that treat AI agent credentials as an extension of user credentials will miss the federated access that makes these incidents different. A developer's GitHub OIDC token doesn't authenticate as the developer—it authenticates as a pipeline identity with its own permissions. A Claude Code OAuth token doesn't authenticate as the user who installed it—it authenticates as an application with access to MCP servers that may have their own credential chains.
At Soluciones Etech Corp in Panama, we see this gap in the incident response planning of companies preparing for AI governance audits. The question an auditor will ask is not "did you reset the user's password." The question is "can you show me what each non-human identity accessed, and prove that access is revoked." Answering that requires the credential inventory, access log correlation, and data classification mapping described above.
How do you build incident response that handles non-human identities?
The agent-framework incident and the SpyCloud research point to the same operational requirement: your incident response plan must treat AI agent credentials as a distinct category with its own containment and investigation procedures.
This means:
-
Pre-incident: credential mapping. Know which AI development tools your teams use, where each stores credentials on disk, and what those credentials grant access to. This is not a one-time exercise; it changes with every tool update.
-
Detection: non-human identity monitoring. Alert on anomalous token requests from managed identities, unusual OIDC token usage patterns, and credential file access outside of expected tool execution paths.
-
Containment: token-level revocation. Have procedures to revoke OAuth tokens, invalidate managed identity assignments, and rotate federated credentials without relying on user account resets.
-
Investigation: cross-service tracing. Correlate activity across cloud platforms, CI/CD systems, and AI tool logs using the identity's unique identifier, not the user's name.
-
Notification: fact-based reporting. Produce the documentation that Law 81 Article 38 requires: date, cause, facts, effects, and corrective measures—with evidence, not estimates.
We help regulated companies in Panama build this capability through our AI governance implementation service. The starting point is a diagnostic that maps what model touches what data, identifies missing controls, and defines what evidence an auditor would request today. For companies preparing Copilot deployments, we review Microsoft 365 permissions and data exposure before licenses are purchased, because Copilot surfaces existing access—it doesn't create new permissions. The scope conversation is 20 minutes and produces a fixed-price proposal.
What does the supply chain risk mean for AI tooling adoption?
The agent-framework compromise is not an isolated event. It follows the pattern documented in our analysis of AI tooling supply chain risks, where development tools become the vector for compromising the systems they build. When the tool that builds your AI agents is compromised, the agents inherit the compromise.
This has implications for how regulated companies approve AI development tools. The question is not whether a tool is useful—it's whether the tool's credential surface area is understood and whether incident response procedures cover it. A tool that stores OAuth tokens on disk with access that survives password changes requires different controls than a tool that authenticates per session.
The shared responsibility model for AI workloads applies here: the cloud provider secures the infrastructure, but the credential files on developer workstations and the federated trust relationships in CI/CD pipelines are your responsibility. The agent-framework incident shows that responsibility includes verifying the integrity of the packages you install and having a response plan for when that verification fails.
For companies building hybrid AI governance with frontier and local models, the credential surface area is larger because it spans cloud APIs, local model endpoints, and the development tools that connect them. Each connection point is a credential that needs inventory, monitoring, and a revocation procedure.
The agent-framework incident and the infostealer research together make the case that AI agent credentials are now a distinct attack surface. Regulated companies in Latin America that treat them as an extension of user credentials will find, during an incident, that the containment procedures don't contain and the notification documentation doesn't document. The 72-hour clock under Law 81 starts when you know about the incident. What you can prove about the scope in those 72 hours depends on whether you mapped the non-human identities before the compromise happened.