Reddit用户称Anthropic API密钥产生167美元费用
AI 总结
一名Reddit用户称,其Anthropic API密钥在设置30美元消费上限后仍产生167美元使用费,费用据称主要涉及Opus 5.5和Fable请求。用户表示,一把受影响的密钥从未提交到代码中,其他密钥则硬编码在私有GitHub仓库中。其已轮换密钥并检查使用日志,但密钥泄露途径及超限原因仍不明确。
深度见解
该案例暴露了API密钥管理与消费限制执行方面的潜在风险,但尚未说明密钥如何泄露或为何超出设定上限。
I run a small SaaS, a WordPress plugin with an AI backend. This week I found that someone else had used my Anthropic API key. They ran $167 of usage, mostly Opus 5.5 and Fable requests, even though I had a $30 spend limit set.
What I know
- one of the affected keys was an older key that was never committed to my code. Other keys were hardcoded in a private GitHub repo.
- I only use Claude chat and Claude Desktop, with no other AI tools.
- The usage was on the most expensive models, which looks like someone choosing the priciest option rather than normal traffic from my app.
- The cause is still unknown.
Processing img g8t8py564u0i1...
- Both of the keys were used in specific proportion, the one key in code could make sense, but the other one which never was in code was also used which doesnt' make sense.
What I’ve done
- Rotated every key in the project.
- Moved all secrets out of git into an untracked config file.
- I’m checking the usage logs for the first unauthorized call, and my GitHub security log.
Questions
- Where could a key that was never in my repo have leaked from? I’m checking old
.envand notes files, pasted text in chats, shell history, browser extensions, old laptops, backups and clipboard tools. What am I missing? - Why did a $30 limit allow $167? Has anyone seen limits overshoot because of delayed usage reporting, per-workspace versus org limits, or limits that only apply to part of the usage? there is no way to opening a support ticket with Anthropic just a fin agent.
- Is there a way to see which IP or client made each request, so I can tell it apart from my own traffic?
submitted by /u/alisaleem252 [link] [comments]