AWS bedrock cost Spike 14,000 USD !

Background:

We are an app development agency with several customers in the SME segment. We created an AWS account for this customer almost a year back.

This AWS account generally gets 10-15 USD bill per month since it hosts a small internal tool. Our customer decided to give bedrock a go and used keys that were already created to deploy a chatbot.

Mind you, the keys created had bedrock Full Access enabled in IAM because earlier bedrock used to restrict model access until and unless enabled explicitly via console UI. I think AWS removed the model access feature sometime last year and all models are enabled by default.

The incident:

The EC2 was accessing bedrock using accesskey instead of IAM, so hackers got hold of the keys from the EC2, and used 14K USD worth of Claude calls in 24hrs. The app the customer created only had Claude Haiku in use, expecting a bill of less than 100 USD.

AWS support has asked to secure the account so that process is underway, but this is crazy that a feature change changes the security posture completely.

There is no way this customer of ours can pay this AWS bill, they are a 3 person printing agency that was trying to work with AI usecases after getting curious about AWS after attending one AWS event.

Question:

  1. Does AWS support still accommodate charge adjustment like they previously used to?

  2. Does this RCA make sense? We are assuming that this was the reason for the compromise, does this make sense?

Sounds like a you problem not the customers problem.

yeap, because if the customer doesnt pay the bill, we have to pay it!

I mean…

Immediate steps to strengthen your case:

  1. Escalate beyond Tier 1 support. Get your case in front of the AWS Trust & Safety team or a senior billing specialist. Front-line support simply doesn’t have the authority to approve adjustments this size!
  2. Call it what it is: unauthorized/fraudulent use. Not a billing dispute. Use the words “credential compromise” and “unauthorized access.” AWS has specific processes for this and that framing matters.
  3. Pull your last 12 months of bills and put them in front of them. $10–15/month for a year, then $14K in 24 hours. That pattern makes the case for you
  4. File an AWS abuse report at https://aws.amazon.com/forms/report-abuse if you haven’t already. This creates an official paper trail and signals you’re treating it seriously…

Are you guys an actual managed service provider with all the usual liabilities and contractual agreements or just set a company up with aws and left them to it?

No we just do AWS billing, our core area is app development, not AWS infra actually

Thank you, will check this, but AWS support did say they will need to check with the billing team for a billing adjustment, but the service team is not giving a go-ahead to restore the account

If you created the AWS account, you should know how to manage it. There’s no need for access keys from an EC2 instance. Use the EC2 IAM role and no keys to be compromised.

Additionally, use AWS budgets to set expected usage. You can automatically revoke the IAM permission when the budget is exceeded.

It’s why we refused to allow devs to create access keys for bedrock.

They did ask, we said absolutely not. It works perfectly well with iam access via standard iam roles.

SSO for humans, IRSA/pod identity for applications.

Works perfectly well.

The budgets were set. Alerts dont come until after the charge reflects in the account, charge calculation and reflection is not real time. It just took 24hrs for the entire charge to come to the account, and the budget emails started blaring.

Also, thats also not true, us creating the AWS account does not mean we manage the resources inside it. This is true for most if not all IT agencies.

There is a defined scope in the contract within which we work. The scope is just AWS billing/ invoicing.

Why should your customer pay the bill at all?

As an aside what’s the value add here if you’re just a glorified billing proxy? Are all the customer accounts in a single aws organisation? Who owns the root credentials to the org?

What a story dude.
Contract with SME has anything specified about the usage?
You give your customer FULL admin access keys!!!

I saw it on a conference :rofl:

I hate to say this, but the charges are to anthropic based on the model usage in the charts. Yes, AWS will often credit you for AWS charges, but they have to pay anthropic for those charges. A credit/refund would still result in them having to pay anthropic, so I doubt you have much recourse in this situation.

Yes thats covered contract clearly specifies that we dont own the AWS account, we only create the account for them. But no way on earth they’ll be able to pay the bill.

Infact the admin access keys were created by them and shared with us when we deployed the app we built for them.

Blaming this on a security posture change is a bit too easy - even without that change the credentials could have been abused to call the specific model which was enabled. You can also set up SCPs to limit access, and those IAM credentials that were leaked could also have been limited to a certain model.

Extra steps for next time: see if you can lower your Bedrock quota to let’s say 10x expected usage.

damn…

Very helpful, will check quota and lower it immediately