CISA Postmortem Reveals Critical Gaps in Incident Response Following Six-Month Credential Leak on GitHub

The Cybersecurity and Infrastructure Security Agency (CISA), the primary federal body tasked with safeguarding United States critical infrastructure and federal networks, has released a comprehensive postmortem detailing a significant internal data exposure. The incident involved a third-party contractor who inadvertently published sensitive internal credentials, including administrative keys for Amazon Web Services (AWS) GovCloud environments, to a public GitHub repository. The data remained accessible to the public for nearly six months before a notification from an external security researcher prompted its removal. This event has sparked a broader conversation within the cybersecurity community regarding the challenges of secret management, the necessity of continuous monitoring, and the critical importance of transparent incident reporting.
Overview of the Security Breach
The breach originated from a public GitHub repository titled “Private CISA,” which contained approximately 844 MB of sensitive agency-related data. The exposure was characterized by its depth and the high level of privilege associated with the leaked credentials. Among the most concerning files discovered was one labeled “importantAWStokens,” which housed administrative credentials for three separate AWS GovCloud servers. AWS GovCloud is a specialized cloud region designed to host sensitive data and regulated workloads for U.S. government agencies and their partners, requiring strict adherence to International Traffic in Arms Regulations (ITAR) and Federal Risk and Authorization Management Program (FedRAMP) requirements.
Furthermore, the repository contained a file named “AWS-Workspace-Firefox-Passwords.csv.” This document listed plaintext usernames and passwords for dozens of internal CISA systems, effectively bypassing standard authentication protocols. The exposure of such high-value assets within a public-facing repository represents a fundamental breakdown in secure development practices and highlights the risks posed by third-party contractors who handle sensitive federal information.
Chronology of Exposure and Discovery
The timeline of the incident underscores a significant delay between the initial leak and the eventual remediation. According to the postmortem, the repository was likely created and made public in late 2025 or early 2026, remaining active for nearly 180 days. During this period, GitGuardian, a cybersecurity firm specializing in automated secret scanning, identified the exposure.
Guillaume Valadon, a researcher at GitGuardian, revealed that his firm’s automated systems sent nine separate alerts to the account holder associated with the repository. These alerts, designed to warn users when sensitive secrets like API keys or passwords are detected in public code, went unanswered. The failure to act on these automated warnings allowed a localized mistake by a single contractor to evolve into a prolonged national security risk.
The situation only reached a resolution when GitGuardian sought the assistance of investigative journalist Brian Krebs of KrebsOnSecurity on May 15, 2026. Krebs subsequently notified CISA officials, who then initiated their incident response protocols. While CISA acknowledged the notification quickly, the process of securing the environment was not instantaneous. It took the agency more than 48 hours to fully invalidate the leaked AWS keys and rotate the numerous other secrets exposed in the repository.
Systemic Failures in Alert Management and Communication
A primary focus of the CISA postmortem was the analysis of why the leak persisted for so long despite multiple automated warnings. The agency admitted that its internal mechanisms for receiving and processing security notifications from external researchers were not sufficiently robust. In this instance, the reporting channels were poorly defined, creating a "bureaucratic maze" for the researcher attempting to do the right thing.
Preston Werntz, CISA’s acting Chief Information Officer, and Brad Libbey, the acting Chief Information Security Officer, authored the analysis, noting that the researcher was forced to attempt multiple avenues of contact. These included emailing the contractor directly and submitting a report through CISA’s Vulnerability Disclosure Platform (VDP). However, the VDP is primarily designed for reporting vulnerabilities in the broader cybersecurity ecosystem or within products CISA oversees, rather than for reporting breaches affecting CISA’s own internal infrastructure.
This misalignment resulted in the report landing in a queue intended for product-related bugs, rather than being escalated as an immediate internal security emergency. The agency’s postmortem stresses that organizations must maintain clear and distinct reporting channels to ensure that incidents affecting the organization’s own infrastructure are handled with the appropriate level of urgency and by the correct teams.
The Complexity of Remediation and Key Rotation
One of the most revealing aspects of the report was CISA’s explanation for the 48-hour delay in invalidating the compromised credentials. In a modern cloud environment, credentials are often deeply integrated into various automated processes, cross-account permissions, and third-party integrations. CISA noted that the "complexities of the agency’s systems and interconnections with federal and industry partners" made the rotation process more difficult than anticipated.
This admission serves as a stark reminder for all security teams: rotating a key is rarely as simple as clicking a button. If a key is used by a critical service, revoking it without a pre-tested rotation plan can lead to system outages or the failure of essential security functions. CISA has used this experience to encourage other organizations to maintain "mature and well-tested key management capabilities," emphasizing that incident response playbooks must include specific procedures for cloud services and third-party platforms like GitHub.
Technological Safeguards: Zero Trust and Logging
Despite the severity of the leak, CISA’s postmortem highlighted certain areas where the agency’s existing security architecture performed as intended. The agency credited its adoption of "Zero Trust" principles and enhanced logging capabilities for preventing a worst-case scenario.
Zero Trust is a security framework based on the premise that no user or system should be trusted by default, regardless of whether they are inside or outside the network perimeter. By requiring continuous verification and limiting the "blast radius" of any single credential, CISA was able to determine that the leaked keys were not used to access or exfiltrate mission-critical or customer data.
Furthermore, CISA’s detailed audit logs allowed investigators to conduct a thorough forensic analysis of the period during which the credentials were public. The agency confirmed that while the keys were exposed, there was no evidence of unauthorized use outside of CISA’s controlled environments. This capability to retrospectively verify the integrity of their systems provided a level of assurance that would have been impossible without comprehensive logging and monitoring.
Strategic Lessons for the Cybersecurity Community
The CISA incident provides several vital lessons for both public and private sector organizations. Experts point to three main areas of improvement:
- Continuous Scanning vs. Periodic Audits: Guillaume Valadon of GitGuardian argued that the incident validates the need for continuous, real-time scanning of public repositories. Relying on quarterly or even monthly audits is insufficient in a landscape where a leaked secret can be exploited within minutes of being posted.
- The Role of security.txt: CISA and GitGuardian both emphasized the importance of the
security.txtfile—a proposed standard for website security information that allows researchers to easily find contact information for reporting vulnerabilities. CISA suggested that whilesecurity.txtis a good start, reporting instructions should be published in multiple prominent locations to ensure clarity. - Third-Party Risk Management: The fact that a contractor was responsible for the leak highlights the ongoing challenge of supply chain and contractor security. Organizations must ensure that the same rigorous security standards applied to internal staff are also enforced across all third-party partners who have access to sensitive environments.
Official Responses and Future Action Plans
In the wake of the incident, CISA has taken several corrective actions. The agency has revoked the access of the contractor responsible for the exposure and has completed the rotation of all secrets involved. More importantly, the agency has developed a new action plan to improve the management of developer secrets and to enhance the monitoring of public code repositories.
The agency is also refining its reporting channels to make them more intuitive for external researchers. By creating a more direct path for "self-impact" reports, CISA aims to ensure that future notifications do not get lost in product-related queues.
The transparency of CISA’s postmortem has been largely praised by the cybersecurity community. While the breach itself was an embarrassment for the nation’s top cyber defense agency, the decision to publish a detailed account of the failures and the lessons learned is seen as a model for other organizations. Valadon noted that this is perhaps the first time a national cybersecurity agency has publicly advocated for secrets scanning and simplified researcher relations in such a candid manner.
Broader Implications for National Security
The exposure of AWS GovCloud keys is particularly sensitive because these environments often house data related to national defense, law enforcement, and critical infrastructure protection. While CISA’s logs indicate no data was stolen, the potential for a sophisticated adversary to have discovered these keys during the six-month window remains a sobering thought for national security analysts.
The incident serves as a call to action for federal agencies to modernize their approach to "secrets sprawl"—the phenomenon where API keys, passwords, and tokens are scattered across various platforms, local machines, and code repositories. As government agencies continue their transition to cloud-native architectures, the ability to manage these secrets securely and respond to leaks instantaneously will be a defining factor in national cyber resilience.
In conclusion, CISA’s postmortem on the GitHub data leak is more than just a summary of a security failure; it is a roadmap for institutional improvement. By acknowledging the gaps in its response and the limitations of its reporting infrastructure, CISA has provided a valuable service to the global security community, reinforcing the idea that even the most sophisticated organizations must remain vigilant against the simplest of errors.







