CISA Publishes Transparent Postmortem After Contractor Error Exposes Sensitive Internal Credentials on GitHub for Six Months

The Cybersecurity and Infrastructure Security Agency (CISA), the lead federal entity tasked with protecting the nation’s critical infrastructure, has taken the unusual step of publishing a detailed, self-critical postmortem following a significant data exposure incident. The breach, which originated from a third-party contractor, resulted in the public availability of highly sensitive internal credentials—including administrative keys for Amazon Web Services (AWS) GovCloud—on a public GitHub repository for nearly half a year. The incident, which remained undetected by internal agency mechanisms until brought to light by external security researchers, serves as a sobering case study on the dangers of credential leakage and the critical need for robust incident response protocols.
The Anatomy of the Exposure
On May 15, 2026, the security research community became aware of a repository titled "Private CISA" hosted on GitHub. Contained within this repository was approximately 844 megabytes of internal agency data. The sensitivity of the files was acute; one specific file, aptly named "importantAWStokens," provided administrative-level access to three distinct Amazon AWS GovCloud servers. Beyond cloud infrastructure, the repository contained a file labeled "AWS-Workspace-Firefox-Passwords.csv," which held a collection of plaintext usernames and passwords for various internal CISA systems.
The repository had been publicly accessible since late 2025. During those six months, the data remained exposed to anyone with an internet connection, creating a significant window of opportunity for malicious actors to infiltrate federal networks. The exposure was first identified by automated scanning tools operated by GitGuardian, a firm specializing in the detection of "secrets"—such as API keys, cryptographic tokens, and credentials—accidentally committed to public code repositories.
Chronology of a Delayed Discovery
The timeline of the incident highlights systemic failures in how external vulnerability reports were processed by the agency. Guillaume Valadon, a researcher at GitGuardian, noted that his firm’s automated systems had sent nine separate notification emails to the accounts associated with the leaked credentials prior to the May 15 escalation. These automated alerts, intended to warn account holders of a security compromise, went entirely ignored.
Following the lack of response to these automated warnings, GitGuardian contacted KrebsOnSecurity to facilitate a formal disclosure to CISA. Once the notification reached the agency’s leadership, CISA acknowledged the report promptly. However, the operational reality of securing the environment proved more complex than the initial notification suggested. It took the agency more than 48 hours to complete the invalidation of the exposed AWS keys and the rotation of other sensitive secrets.
CISA’s post-incident analysis, authored by Preston Werntz, Acting Chief Information Officer, and Brad Libbey, Acting Chief Information Security Officer, admitted that the interdependencies of federal systems made a rapid, "surgical" shutdown of the exposed credentials difficult. The agency noted that these complexities, combined with a lack of clearly defined reporting channels for internal infrastructure leaks, contributed to the prolonged remediation timeline.
Internal Policy and Reporting Failures
A core finding of the postmortem is that CISA’s existing incident response playbooks were not adequately prepared for incidents occurring on external cloud-hosting platforms like GitHub. While the agency maintained sophisticated protocols for defending against state-sponsored cyberattacks or large-scale software vulnerabilities, the "human error" element—specifically, a contractor pushing credentials to a public repository—fell outside the scope of their primary incident management frameworks.
Furthermore, the agency acknowledged a confusion of channels. Researchers attempting to report the issue found themselves routed through CISA’s Vulnerability Disclosure Program (VDP). While the VDP is an effective mechanism for reporting vulnerabilities in public-facing software and systems, it was not configured to handle "emergency" reports concerning the agency’s own internal infrastructure. This forced the researchers to utilize multiple, redundant, and ultimately inefficient communication methods, including direct emails and third-party media involvement, to ensure the issue was escalated to the correct internal teams.
The Role of Continuous Secrets Scanning
The CISA incident underscores a broader trend in cybersecurity: the catastrophic risk of "secret sprawl." Modern development workflows often involve thousands of lines of code and numerous environment variables. Without rigorous, continuous secrets scanning, it is statistically probable that developers—both internal and those employed by third-party contractors—will inadvertently commit sensitive keys to source control.
Valadon emphasized that the six-month duration of the exposure could have been avoided entirely through two specific practices:
- Pre-commit Hooks: Implementing scanning tools that prevent sensitive files from being pushed to a repository before they ever leave a local machine.
- Continuous Monitoring: Moving beyond quarterly audits to real-time, automated scanning of public repositories to identify leaks as they happen.
CISA has since confirmed that the contractor responsible for the repository has had their system access revoked. The agency has also initiated an agency-wide effort to overhaul its management of developer secrets and to refine its monitoring capabilities to detect similar exposures in the future.
Lessons in Transparency and Zero Trust
Despite the severity of the leak, CISA’s response has garnered cautious praise from the cybersecurity community for its transparency. By openly documenting its failures—specifically the lack of defined reporting channels and the gaps in its incident response playbooks—CISA is attempting to set a new standard for federal agency accountability.
The agency’s report highlighted that its adoption of "Zero Trust" architecture and enhanced logging capabilities were vital to the recovery process. Because the agency had granular visibility into its network logs, it was able to definitively confirm that no mission-critical data was exfiltrated and that the exposed credentials had not been leveraged by unauthorized third parties during the six months they were public. This level of confidence, CISA argued, is the primary benefit of modernizing federal security stacks toward a zero-trust model.
Broader Implications for Federal Contractors
The CISA incident is likely to trigger a reevaluation of how federal agencies oversee their contractors. If a contractor can accidentally expose administrative access to government cloud infrastructure, the current vetting and training processes for third-party developers are insufficient.
Industry analysts suggest that the federal government will likely move toward more stringent contractual requirements, including:
- Mandatory Secrets Scanning: Requiring contractors to use enterprise-grade scanning tools as a condition of their contract.
- Credential Rotation Policies: Implementing automated, time-bound rotation for all development keys to ensure that even if a leak occurs, the credentials become useless shortly thereafter.
- Dedicated Reporting Paths: Creating "Security Direct" lines of communication that bypass standard vulnerability disclosure queues for urgent, infrastructure-related reports.
A New Standard for Disclosure
In his analysis of the CISA report, Valadon remarked that this is arguably the first time a national cybersecurity agency has advocated so strongly for simplified communication with security researchers. "The person reporting a leak to you is not the threat," he wrote, urging other organizations to move away from adversarial stances toward researchers.
For CISA, the path forward involves refining the "security.txt" file protocol, which provides clear, machine-readable instructions on how to report vulnerabilities. The agency is encouraging all organizations—both public and private—to ensure that their security reporting instructions are published in multiple, prominent locations, rather than buried in documentation.
Ultimately, the CISA data leak demonstrates that even the most well-defended organizations are susceptible to the "weakest link" problem inherent in modern software supply chains. By treating the incident as a learning opportunity rather than attempting to obscure the details, CISA has provided a roadmap for how large organizations can navigate the inevitable intersection of human error and automated security monitoring. The agency’s commitment to improving its internal processes suggests a shift toward a more agile and transparent security culture, one that acknowledges that in the digital age, resilience is built not by avoiding mistakes, but by having the systems in place to detect and neutralize them before they can be exploited.






