CISA Contractor Exposes AWS Keys and Passwords on Public GitHub for Six Months
Written by AI from the linked story. Not reviewed by an editor. How this works
A CISA contractor accidentally committed sensitive credentials — including AWS GovCloud keys and plaintext passwords — to a public GitHub repository, where they remained exposed for nearly six months. The breach was not discovered internally; it took intervention from an external security firm and a journalist to surface the issue, revealing a critical gap in both secret detection tooling and monitoring practices. Once discovered, CISA's response was hampered by slow credential rotation and unclear incident notification channels, compounding the risk window. This incident underscores that human error in handling secrets is inevitable, making automated detection, rapid response playbooks, and robust key management controls essential — even for the organizations responsible for defending others.
Tactical Insight
Immediate actions
- Scan all public and private repositories immediately using secret-scanning tools (e.g., GitHub Advanced Security, truffleHog, or GitGuardian) to identify any exposed credentials.
- Rotate all potentially compromised credentials, API keys, and passwords without delay, treating any publicly exposed secret as fully compromised.
Long-term improvements
- Enforce pre-commit hooks and CI/CD pipeline checks that automatically block commits containing secrets, API keys, or plaintext passwords before they reach any repository.
- Implement a centralized secrets management solution (e.g., HashiCorp Vault, AWS Secrets Manager) so credentials are never stored in code or configuration files.
- Establish and regularly test a formal credential-compromise runbook with clear escalation paths, defined SLAs for rotation, and designated incident notification owners.
Detection measures
- Enable continuous repository monitoring and alerting for newly pushed secrets across all branches and forks, including those by third-party contractors.
- Require contractors and vendors to adhere to the same secrets management and code review standards as internal staff, enforced via onboarding agreements and periodic audits.