Cloud Economics
Surprise Cloud Bill Case Study: HIBP’s 2021-22 Egress Spike
This surprise cloud bill case study follows Troy Hunt's January 2022 account of a large Have I Been Pwned (HIBP) download that Cloudflare did not cache because the archive exceeded the cacheable file size limit on his plan at the time. Repeated downloads sent data from Azure Blob Storage to users and accumulated more than AU$11,000 in additional charges. Hunt added storage bandwidth alerts and Azure cost alerts; Azure’s current budget documentation says budgets notify but do not stop consumption.
A new data release coincided with a sharp egress increase
Troy Hunt traced an unusually high Azure bill to outbound bandwidth from the storage account behind Pwned Passwords downloads in his January 2022 post. He dated the usage increase to December 20, 2021, and linked it to the launch of an ingestion pipeline for the FBI and hundreds of millions of new passwords provided by the NCA. That timing pointed him in a direction, but he still needed to find the specific requests behind the bill. (Hunt’s January 2022 account)
The Azure cost breakdown gave him his first clue: one storage-related line item made up 98% of his bandwidth costs across Azure services. Hunt reported an egress rate of AU$0.1205 per GB. He then checked a short period of bandwidth activity and found recurring spikes of about 17.3 GB each. (Hunt’s January 2022 account)
The spikes pointed to a downloadable archive of Pwned Passwords hashes. Hunt expected Cloudflare’s edge cache to reduce repeat requests to Azure. Instead, Azure logs showed successful reads of the large archive. One logged response had a body size of 18,555,441,195 bytes. (Hunt’s January 2022 account)
This was a billing and caching failure, not a security breach. Hunt described repeated anonymous requests for a publicly downloadable file through Cloudflare, while the storage origin continued serving the archive. He did not describe unauthorized access to protected data. The write-up drew a long Hacker News discussion in January 2022, where commenters debated egress pricing and discussed Cloudflare caching. (Hunt’s January 2022 account)
Why Cloudflare passed the large downloads to Azure
Hunt thought Cloudflare was caching the files at its edge. The cache rules appeared to be in place. The Azure blobs had no Cache-Control property, but he believed the edge TTL rule would override that. The origin logs showed Cloudflare IP addresses, confirming that requests passed through Cloudflare. The logs showed that Azure repeatedly served the full archive. (Hunt’s January 2022 account)
A Cloudflare contact identified a plan limit: in December 2021, when the problem started, Hunt’s plan allowed caching files up to 15 GB. The SHA-1 archives had grown beyond that size, to more than 15 GB. Cloudflare’s edge did not cache them, so downloads kept consuming Azure egress. (Hunt’s January 2022 account)
That limit applied to the plan and period Hunt described. Cloudflare’s current documentation lists cacheable file limits of 512 MB for Free, Pro, and Business plans, and a default 5 GB maximum for Enterprise customers, with increases available by request. Those current values differ from the 15 GB limit Hunt encountered in 2022. Check the current plan and account configuration before relying on a cache-size assumption. (Cloudflare’s current cache documentation)
For the largest object, check what the edge actually caches. A cache rule alone does not establish that every response is cacheable under every size and header combination. Cloudflare’s current documentation says cache behavior depends on response headers and configuration, and lists exceptions for directives such as private, no-store, no-cache, and max-age=0. (Cloudflare’s current cache documentation)
How the cost accumulated
When a request for an uncached archive reached Cloudflare, Cloudflare fetched it from Azure Blob Storage, and Azure recorded outbound data transfer. Repeated full-file downloads added to the egress total. The logs showed Hunt repeated blob reads, and the regular large spikes matched the bandwidth pattern he had found. (Hunt’s January 2022 account)
Hunt wrote that the additional cost for the period exceeded AU$11,000. His post also gave approximate conversions: about US$8,000, GB£6,000, or EU€7,000. He described the increase as roughly AU$350 per day for a month. These are the figures he reported in January 2022 for usage from December 2021 into January 2022, not current cloud prices or a general estimate for serving a large file. (Hunt’s January 2022 account)
| What Hunt reported in January 2022 | Figure | What it describes |
|---|---|---|
| Azure egress rate | AU$0.1205 per GB | Rate Hunt cited in his post |
| Repeated bandwidth spikes | About 17.3 GB each | The recurring pattern he investigated |
| Additional bill | More than AU$11,000 | His reported unexpected cost |
| Approximate US conversion | About US$8,000 | Hunt’s conversion in the post |
Keep these figures in their historical context. Rates can depend on account, service, region, and pricing terms; the figures above describe Hunt's January 2022 report. For more on infrastructure costs beyond the advertised compute rate, see GPU rental hidden costs and Vercel, AWS, and Railway true costs.
The controls Hunt added and their limits
Hunt described two changes after tracing the cause. First, he removed direct download links from the HIBP website and left torrent links available. He said the torrents had enough seeds to keep the data accessible. After Cloudflare raised the cacheable-size limit, he restored direct links for users who could not use torrents. (Hunt’s January 2022 account)
Second, Hunt added a bandwidth alert for the storage account, with an email action when usage exceeded his expected threshold. He also added Azure cost alerts for actual and forecasted costs. The bandwidth alert watched a resource-level usage signal, while the budget alerts gave him a broader view of spend. Hunt said the storage alert triggered soon after he configured it, surfacing the active condition. (Hunt’s January 2022 account)
Azure’s current budget documentation says that budget thresholds trigger notifications but do not affect resources or stop consumption. Microsoft also says cost and usage data is typically available within 8 to 24 hours, and budgets are evaluated against that data every 24 hours. A notification gives someone a chance to respond, but a budget is not a hard spending cap or an immediate circuit breaker. The same page notes that action groups can trigger automation such as Azure Functions or webhooks, which you would build and test yourself. (Microsoft Learn: Create and manage budgets)
An alert can flag a threshold crossing, but it does not block requests, disable a storage account, or stop egress. A separate operational response may be needed to remove a download link, change routing, restrict access, or otherwise stop the traffic. The right response depends on the service design and how much interruption is acceptable.
Shared access signatures (SAS) do not make storage usage free or separate the account from the charges. Microsoft's current guidance says the account is billed for usage, including usage through a SAS. Its example explains that a read-enabled SAS can be used to download a blob repeatedly, generating egress costs for the account. A SAS controls delegated access through its permissions and validity; it does not cap bandwidth or spending. (Microsoft Learn: Shared access signatures overview)
A short checklist for large public downloads
- Measure the largest object. Record the actual file size and compare it with the cacheable-size limit for the plan and configuration in use. Keep historical limits separate from current documentation. (Hunt’s January 2022 account, Cloudflare’s current cache documentation)
- Check cache results at the origin. Use storage or CDN logs to see whether repeat requests are cache hits or still fetch the object from origin. Hunt found the issue by matching Azure bandwidth activity with blob-read logs. (Hunt’s January 2022 account)
- Alert on both usage and spend. Resource-level bandwidth alerts can flag a traffic change, while budget notifications can flag broader cost thresholds. Treat both as signals that need a response, not automatic shutdown controls. (Hunt’s January 2022 account, Microsoft Learn: Create and manage budgets)
- Review access routes. If you issue SAS tokens, scope permissions and validity to the need, and remember that usage through them is billed to the storage account. (Microsoft Learn: Shared access signatures overview)
- Have a traffic response ready. Decide who can remove a link or redirect downloads if origin usage rises unexpectedly. While still investigating, Hunt added a Cloudflare firewall rule to cut the origin traffic; once he found the cause, he temporarily left only torrent links. (Hunt’s January 2022 account)
Adding a date to a price, limit, or other operational claim helps readers judge whether the evidence still applies. See pricing snapshot date versus evidence date for that distinction.
Sources
- How I Got Pwned by My Cloud Costs (Troy Hunt, 24 January 2022)
- Hacker News discussion (Hacker News, 2022)
- Tutorial: Create and manage budgets (Microsoft Learn, updated 2025-06-26; accessed Nov 30, 2026)
- Shared access signatures overview (Microsoft Learn, updated 2026-02-27; accessed Nov 30, 2026)
- Default cache behavior (Cloudflare Docs, updated Sep 14, 2026; accessed Nov 30, 2026)
How this note was produced
Drafted with AI assistance from committed ByteCosts pricing snapshots and deterministic cost formulas. Figures are grounded in the linked sources (last updated 2026-11-30). Read our editorial & automation policy, inspect the methodology, or report a discrepancy.
Surprise Cloud Bill Case Study: HIBP’s 2021-22 Egress Spike. ByteCosts. Updated 2026-11-30. https://bytecosts.com/blog/surprise-cloud-bill-case-study/