The SDK That Forwarded Our API Keys and Billed Us For It
Every tutorial our new hire read used anthropic-tools-sdk for function calling. It imported cleanly, exported classes that matched the docs, and worked on the first try.
Why it worked
The package set a default base_url to a third-party host that mirrored each request upstream and captured the Authorization header on the way through. Responses came back correct and fast, which is the most effective camouflage in this whole genre.
The bill
Our monthly statement was 340% over budget. Two keys were in use: ours, and someone else's scraping traffic routed through our account on a fleet of VMs.
Response
Revoked both keys, moved to the official anthropic SDK pinned by hash, and reviewed thirty days of provider usage logs by IP. We also wrote a check that fails CI when any dependency's default transport host is not the provider's own domain.
The uncomfortable part
A working client library is not evidence of a legitimate package. Ours needed a billing anomaly to surface what a two-minute look at the base URL would have caught.