An AWS access key was committed to a private GitHub repo. It cost Uber $148 million.
Engineers committed an AWS access key into a GitHub repository they thought was private. Attackers found the key (a former Uber employee maintained access), used it to log into Uber's S3 buckets, and exfiltrated personal data on 57 million riders and drivers.
An AWS key, hardcoded into a config file
// committed into a GitHub repo
const AWS_ACCESS_KEY = "AKIAXXXXXXXXXXXXXXXX";
const AWS_SECRET_KEY = "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEX";
Cursor, Claude, and Copilot all suggest hardcoded keys at least once a session — usually as a "temporary placeholder while we wire up env vars." The placeholder rarely gets replaced.
Critical · 99% confidence. Pattern AKIA[0-9A-Z]{16} matches the
AWS access key format. We refuse to let it commit.
secrets.aws-access-key