The leak involved serverless traffic from third-party models, emphasizing the need for transparency when routing data through multiple AI service providers. On November 21, 2024, Together AI revealed that a security vulnerability had been exploited due to an AI coding agent inadvertently committing a Hugging Face credential to a public GitHub repository. This oversight allowed an unauthorized party to access a private repository that housed prompt samples from June and July 2024. The incident was discovered through automated credential scanning, which alerted the team to the presence of sensitive keys in the public domain. Although the commit was reverted immediately upon discovery, the exposure window was sufficient for the data to be downloaded by an external entity. This event highlights the inherent risks of integrating AI agents into the software development process without rigorous oversight. It also underscores the importance of maintaining strict boundaries between development, testing, and production environments. As organizations increasingly automate their workflows, the potential for accidental disclosures through high-speed agentic actions becomes a primary security concern. Managing these risks requires a multi-layered approach involving both automated detection and architectural safeguards to prevent local mistakes from escalating into global security breaches.
1. Implementing Zero Data Retention Standards
Zero Data Retention (ZDR) has emerged as a pivotal setting for privacy-conscious developers. It functions by instructing the AI platform to discard prompt and completion text immediately after the inference cycle is completed, thereby preventing the data from being used for model fine-tuning or operational logging. In the wake of the recent disclosure, Together AI transitioned ZDR to be the default state for all new accounts created on the platform. This move reflects a broader industry shift toward privacy-by-design, where the burden of security configuration is removed from the user. However, for legacy accounts established before this policy change, the protection is not automatic. Users must navigate to their account settings to manually enable this feature. Failing to do so means that prompts may still be subject to the platform’s standard logging and retention protocols. This highlights a common challenge in software-as-a-service environments: the lag between new security implementations and their adoption across an existing user base, necessitating proactive communication from service providers.
While ZDR provides a robust layer of protection for live production traffic, its scope is often misunderstood by engineering teams. The policy specifically governs the production inference paths where data is routed through serverless or dedicated endpoints. It does not necessarily extend to peripheral activities, such as quality assurance testing or performance evaluation. If prompts are extracted from production logs to be used in an evaluation harness or copied into a private repository for testing, they fall outside the immediate protection of the ZDR setting. In the Together AI incident, the data that was eventually exposed resided in an engineering dataset within a private Hugging Face repository. This indicates that a comprehensive security strategy must map every copy of sensitive data, ensuring that “zero retention” at the API level is not undermined by long-term storage in development environments. Compliance teams are now tasked with auditing these secondary storage locations to ensure they mirror the privacy standards of production pipelines, creating a unified data governance model that persists throughout the software development lifecycle.
2. Analyzing Vulnerabilities in Automated Development Cycles
The technical root of the Together AI leak can be traced back to the development of the “xorl” repository, which serves as a public project for the company’s open inference stack. During the rapid iteration phases of this project, an AI coding agent was utilized to assist with code commits and repository management. This agent inadvertently included a sensitive Hugging Face credential in a commit pushed to the public GitHub repository. Although secret scanning tools eventually identified the leak, the nature of git history meant that the credential remained accessible until the commit was fully purged or the token was revoked. This scenario is becoming increasingly common as more organizations empower AI agents to handle routine programming tasks. The speed at which these agents operate often exceeds the capacity for manual human review, creating a “speed-to-risk” trade-off. Organizations must recognize that while agents improve efficiency, they lack the contextual judgment to recognize when a configuration file contains a secret that should never be made public.
The presence of actual user prompts in a testing repository further complicated the situation. Together AI noted that the leaked samples were gathered during routine software testing, but instead of using purely synthetic data, the archive contained serverless traffic samples. This highlights a persistent issue in the AI industry: the reliance on real-world data to ensure that models and routing stacks are performing correctly under varied conditions. When developers prioritize accuracy in testing over data minimization, they create durable artifacts that represent a significant attack surface. In this instance, the leaked repository became a treasure trove for the unauthorized party, as it contained not only the prompts but also credentials embedded within those prompts. The transition toward synthetic data generation is now seen as a non-negotiable security requirement for AI evaluation harnesses. By using high-fidelity synthetic prompts, developers can achieve the same testing benchmarks without the catastrophic risk associated with storing real customer interactions in potentially vulnerable secondary locations.
3. Monitoring Unauthorized Access via Forensic Canaries
A significant detail in the Together AI disclosure was the detection of activity surrounding “canary” credentials. These canaries were part of a security experiment designed to track the movement of stolen data across the web. Canary tokens are essentially traps; they are fake credentials or URLs that, when accessed, send an immediate alert to the security team. The intruder who downloaded the Hugging Face repository was confirmed to have tested five of these canaries, indicating a deliberate effort to find exploitable information within the stolen prompts. This behavior proves that the threat actor was not merely a passive observer but was actively looking to escalate their access. The use of canaries provided Together AI and its forensic partners with clear evidence of post-breach intent, allowing them to track the scope of the intruder’s interest. This incident underscores the value of seeding development data with decoy secrets, as they provide an early warning system that traditional firewalls and access controls might miss once a credential has already been compromised.
The investigation identified specific dates and models that were impacted by the serverless traffic leak. The dates involved were June 24, July 4, July 8, and July 14, 2024. The models identified in the stored sample set included MiniMax M3, GLM-4, and Kimi K1.5. These models, provided through third-party partnerships, represent a diverse range of AI capabilities, and users who utilized these specific serverless endpoints during the named window were the most affected. Together AI has since engaged forensic firms to review the content for any personal or sensitive data that might require further disclosure. For organizations that routed high-stakes code, customer support logs, or internal credentials through these models on the specified dates, the assumption must be that the text was part of the downloaded archive. This highlights the complex relationship between model providers and aggregators; when data passes through multiple hops, the security of the entire chain is only as strong as its most vulnerable repository. Continuous monitoring of these model-specific traffic logs is essential for maintaining a clear audit trail.
4. Establishing Comprehensive Security and Compliance Standards
In response to the incident, Together AI has overhauled its internal security protocols to prevent a recurrence of the coding agent error. The company implemented four primary controls designed to harden its development pipeline. First, they transitioned to the use of scoped or short-lived credentials, ensuring that even if a token is exposed, its utility is limited in time and scope. Second, they integrated mandatory automated credential scanning into every pull request, ensuring that no commit can be merged if it contains sensitive keys. Third, as previously mentioned, Zero Data Retention was made the default for all new accounts to enhance user privacy. Finally, they updated their development policies specifically for the use of AI coding agents, requiring more rigorous human oversight for any action that interacts with sensitive repositories. These changes represent a shift toward a “zero-trust” development environment where even internal agents are treated as potential sources of risk. This proactive stance is necessary to rebuild trust with a user base that increasingly demands transparency in how their data is handled.
For end users and developers relying on AI services, several actionable steps have been identified to enhance their own security posture. For those utilizing inference services, it is critical to manually enable ZDR in account settings and rotate any API keys or passwords that may have been included in prompts during the exposure window. For teams that integrate AI coding agents into their own workflows, the use of CI/CD tools to block commits containing secrets is paramount. Additionally, developers should avoid providing agents with production-level credentials, favoring ephemeral tokens instead. Another key strategy is the separation of evaluation datasets; keeping testing data in separate, restricted repositories and using synthetic data whenever possible minimizes the impact of a potential leak. These defensive measures, combined with a thorough review of model usage logs for the affected dates, provide a roadmap for navigating the complexities of AI security. The integration of these practices ensures that the benefits of AI automation do not come at the cost of fundamental data integrity.
5. Strengthening Long-Term Resilience in AI Systems
The forensic investigation concluded that the implementation of synthetic data standards and ephemeral credentials mitigated the primary risks associated with the accidental exposure. It was determined that the best path forward involved the immediate rotation of all potentially compromised credentials and the adoption of more rigorous automated scanners across all public-facing projects. Organizations that adopted these measures found that their exposure to similar credential leaks was significantly reduced, as the window of opportunity for attackers was narrowed by the use of short-lived tokens. The security audit also confirmed that the deployment of canary tokens provided the necessary visibility to detect unauthorized access before it could expand into other critical infrastructure. By shifting toward a model where AI agents operated with strictly scoped permissions and under constant surveillance, the development team successfully balanced the drive for productivity with the necessity of data privacy. This approach allowed the company to maintain its release schedule while ensuring that the underlying infrastructure remained resilient against both human and machine error.
The final review of the incident demonstrated that the rapid response of the security team was a key factor in limiting the damage caused by the unauthorized download. By engaging law enforcement and external forensic experts early in the process, the company was able to verify that the intruder understood the necessity of deleting the accessed data. The investigation established a clear timeline of events, which provided the transparency required for customers to assess their own risks accurately. Moving forward, the lessons learned from the Together AI exposure led to a more robust framework for managing third-party model traffic and internal code repositories. These steps ensured that the integration of artificial intelligence into the software lifecycle remained a secure and sustainable practice for the industry at large. Ultimately, the transition to a privacy-first default and the hardening of the agentic development pipeline served as a model for other providers navigating the intersection of rapid innovation and cybersecurity. The collective efforts of the engineering and compliance teams resulted in a more sophisticated defense posture that is better equipped to handle the evolving threats of the current technological landscape.
