CG-2024-00003

Current

Hope: Exposed Credentials in Public Buckets

Summary

Public Buckets are exposed to the world at large. While they can be useful for things like websites and public data stores, it is unlikely that credentials will be intentionally placed here. During this case, we scanned large numbers of publicly exposed buckets from providers like:

  • AWS S3
  • Azure Blob Storage
  • Google Cloud Platform Buckets

for credentials like:

  • AWS Access Tokens
  • OAuth Tokens
  • API keys
  • GCP Service Accounts

Response Actions

  • Remove the publicly exposed credentials from the bucket
  • Rotate the publicly exposed credentials
  • Determine if the other bucket contents should be public and restrict access appropriately
  • Analyse logs to determine if the exposed credential was abused
  • Undo abusive actions

For some credential types (notably cloud provider access), the potential for abuse is high and can lead to further lateral movement and privilege escalation. Amazon have provided some detailed playbooks to tackle these situations: