Bitzu

312-50 ยท Cloud computing security

Cloud attack techniques

Metadata service abuse, IAM privilege escalation, credential leakage in repositories, wrapping attacks, side-channel and cloud cryptojacking.

Key points

  • Metadata service abuse: SSRF makes a server query 169.254.169.254 and leak its role credentials.
  • IMDSv2 (session token via PUT) blocks simple SSRF.
  • IAM privilege escalation: abusing permissions such as passing or editing roles.
  • Credential leakage: keys in public repositories.
  • Wrapping attacks: forged XML signature wrappers in SOAP/SAML.
  • Side-channel attacks on shared hardware. Cryptojacking: hijacked compute mines coins.

Source: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/configuring-instance-metadata-service.html

Practice questions

Single choice

What is the link-local address of the EC2 instance metadata service?

  1. 127.0.0.1
  2. 10.0.0.1
  3. 169.254.169.254
  4. 192.168.0.254
Show answer

Answer: C. 169.254.169.254

IMDS is reachable at 169.254.169.254 from inside the instance; this is why SSRF to it is dangerous.

Select all that apply

Which are realistic ways cloud credentials leak?

  1. Access keys committed to a public Git repository
  2. Secrets baked into a container image pushed to a public registry
  3. A password stored in a managed secrets vault
  4. An MFA prompt on the admin console
  5. A role with a short-lived session token
Show answer

Answer: A. Access keys committed to a public Git repository, B. Secrets baked into a container image pushed to a public registry

Keys in a public repository and in a shared container image are common leaks. Hashing a password in a vault or MFA prompts do not expose credentials.

True or false

True or false: deleting a leaked access key from the latest commit is enough to make the repository safe.

Show answer

Answer: False

False. The key remains in Git history and may already be harvested; it must be revoked and rotated.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More 312-50 topics in this module