Executive Summary

In November 2026, security researchers at Apiiro disclosed that AI coding assistants—most notably Anthropic's Claude Code—were inadvertently committing sensitive credentials to public GitHub repositories. When developers approved commands to interact with databases or APIs using the "don't ask again" option, Claude Code silently recorded those commands, including embedded secrets, to a hidden file (.claude/settings.local.json). Because this file was excluded only from the developer's local Git configuration rather than the project's own .gitignore, it traveled with cloned repositories and was indexed publicly. Apiiro identified 2,539 credentials across nearly 2,000 repositories, including cloud keys, production database passwords, API tokens, and SSH root credentials spanning 63 organizations from startups to established software vendors.

This incident marks a pivotal inflection point in AI supply-chain risk. As agentic AI tools become deeply embedded in development workflows, the attack surface expands well beyond source code. Configuration files, agent execution histories, and approval artifacts now carry credential risk that traditional secret-scanning pipelines were never designed to catch—forcing security teams to rethink how they govern AI-assisted development environments.

Why This Matters Now

AI coding agents are being adopted at enterprise scale in 2026, yet security tooling has not kept pace. Developers routinely grant broad, persistent permissions to these agents without understanding the data artifacts they produce. With Anthropic's Claude Code confirmed as a vector and thousands of live credentials already exposed across public repositories, organizations face immediate credential-harvesting risk from automated scrapers—making this an urgent, active threat rather than a theoretical concern.

Attack Path Analysis

MITRE ATT&CK® Techniques

Potential Compliance Exposure

Sector Implications

Sources

Frequently Asked Questions

When developers approved commands using the 'don't ask again' option, Claude Code saved those commands—including embedded secrets like API keys and database passwords—to a hidden local settings file. Because the exclusion rule was only applied to the developer's machine-level Git configuration rather than the project's .gitignore, the file was committed and pushed with the rest of the code when the repository was cloned or shared.

Cloud Native Security Fabric Mitigations and ControlsCNSF

Based on the attack progression modeled above, these are the defensive controls that would constrain each stage.

Aviatrix Zero Trust CNSF is directly relevant because stolen cloud credentials found in public repositories granted broad, unconstrained access across cloud environments with no workload-level segmentation or egress controls in place. Had identity-aware segmentation and controlled egress been enforced, the blast radius of compromised credentials would likely have been significantly narrower across cloud services, databases, and regions.

Initial Compromise

Control: Cloud Native Security Fabric (CNSF)

Mitigation: Even with valid credentials in hand, CNSF's fabric-level visibility and policy enforcement across cloud environments could likely reduce the reachability of compromised identities by constraining which workloads, services, and cloud accounts those credentials are permitted to interact with under defined policy.

Privilege Escalation

Control: Zero Trust Segmentation

Mitigation: Zero Trust segmentation could likely constrain the scope of privilege available to a compromised identity by enforcing workload-level isolation policies, reducing the number of cloud resources and services reachable under a single stolen credential set even when that credential carries elevated IAM permissions.

Lateral Movement

Control: East-West Traffic Security

Mitigation: East-west traffic enforcement would likely reduce the attacker's ability to pivot freely between cloud workloads and services, constraining lateral paths between databases, compute resources, and cloud accounts even when the underlying credentials are technically valid.

Command & Control

Control: Multicloud Visibility & Control

Mitigation: Multicloud visibility and control capabilities could likely surface anomalous API call patterns, unexpected geographic access, and unusual automation behavior associated with stolen token usage, reducing the window during which attacker-controlled sessions persist undetected across cloud environments.

Exfiltration

Control: Egress Security & Policy Enforcement

Mitigation: Egress security policy enforcement could likely reduce the ability of compromised workloads or identities to transfer data to unauthorized external destinations, constraining outbound paths available to an attacker attempting bulk data exfiltration from cloud storage or databases.

Impact (Mitigations)

The aggregate blast radius across 63 affected organizations — spanning database destruction, medical records exposure, cloud backup deletion, and production environment disruption — would likely be reduced in scope when workload segmentation, egress controls, and east-west enforcement have constrained attacker reachability to only those resources explicitly within policy-permitted segments.

Impact at a Glance

Affected Business Functions

  • Software Development Pipelines and CI/CD Workflows
  • Cloud Infrastructure Access Management (API Keys, Cloud Credentials)
  • Database Administration and Production Data Access
  • Third-Party Service Integration (Payment Processors, SaaS APIs)
Operational Disruption

Estimated downtime: N/A

Financial Impact

Estimated loss: N/A

Data Exposure

Across nearly 2,000 public GitHub repositories, 2,539 credentials were exposed including: production Azure PostgreSQL database passwords, Square production payment tokens, SSH root login credentials, medical records database owner passwords, and admin-level cloud provider API keys. A total of 1,379 distinct secrets were identified within Claude Code settings files alone, comprising 636 provider-specific keys and 743 passwords or tokens associated with public hosts. Affected organizations span 63 entities ranging from student groups and startups to established software vendors. The exposure includes highly sensitive regulated data categories such as healthcare database credentials and financial payment tokens, creating risk of unauthorized database access, cloud resource abuse, financial fraud, and HIPAA-relevant data breach scenarios. Because exposed credentials persist in Git history even after deletion, full remediation requires credential rotation across all affected systems.

Recommended Actions

  • • Apply Cloud Native Security Fabric (CNSF) inline enforcement and AI-aware policy controls to treat all AI agent working directories, configuration files, and execution histories as secret-bearing surfaces, integrating pre-commit secret scanning into CI/CD pipelines so credentials committed by AI agents are detected and blocked before reaching public repositories.
  • • Enforce Egress Security and Policy Enforcement via FQDN filtering and outbound traffic controls to ensure that even if secrets are harvested and used, unauthorized cloud API destinations and data exfiltration paths to unknown external hosts are blocked and alerted upon in real time.
  • • Deploy Multicloud Visibility and Control with centralized traffic observability and anomaly baselining to detect anomalous API authentication patterns, unexpected geographic access, and suspicious automation behavior that would indicate harvested credentials are actively being abused across cloud environments.
  • • Implement Zero Trust Segmentation with identity-based policies and least-privilege access so that compromised high-privilege cloud keys cannot be used to escalate or move laterally; enforce SmartGroup-level namespace and service identity controls that limit the blast radius of any single leaked credential to the minimum required scope.
  • • Apply Encrypted Traffic (HPE) controls and Inline IPS (Suricata) signature-based detection for known secret-exfiltration patterns in outbound traffic, ensuring that even when secrets traverse the network as part of AI agent workflows, data-in-transit protections and inspection capabilities prevent interception or unauthorized reuse of credentials outside sanctioned workflows.

Secure the Paths Between Cloud Workloads

A cloud-native security fabric that enforces Zero Trust across workload communication—reducing attack paths, compliance risk, and operational complexity.

Cta pattren Image