cd /news/artificial-intelligence/an-80k-breach-forced-us-to-own-our-a… · home › topics › artificial-intelligence › article
[ARTICLE · art-176276] src=twitter.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↓ negative

An $80K breach forced us to own our AI stack. We're never going back

Dreamwork moved almost all of its backend onto self-controlled servers and cloud accounts after Railway's October 20 security incident exposed its AI provider keys, which an attacker abused to run up more than $80,000 in unauthorized inference before Dreamwork was notified. The company now runs 100% of its apply planning on its own fine-tuned model served from its own GPU, logging over 50,000 live planner calls across thousands of applications in three weeks, and reports cutting per-application inference costs by roughly an order of magnitude versus calling a frontier model at every interaction. Dreamwork also deployed custom classifier models for data filtering and enrichment and a lightweight browser built to crawl nearly 3 million live jobs across about 140,000 companies.

recommendation

For narrow, high-volume agent workloads, fine-tune a small model and self-host it on your own GPU instead of calling a frontier API per step; Dreamwork cut per-application inference costs roughly 10x and gained full trace visibility.

more in playbook: Inference and self-hosting
read6 min views1 publishedNov 25, 2026
An $80K breach forced us to own our AI stack. We're never going back
Image: source

How last month's Railway incident made us rethink what infrastructure has become table stakes for AI-native companies

The TLDR: Over the past month, we moved almost all of Dreamwork's backend onto servers and cloud accounts we control - deploying our own fine-tuned models in charge of applying, custom classifier models for our data filtering + enrichment, and rolling out a custom lightweight browser built specifically for crawling nearly 3M live jobs across ~140,000 companies. The result is higher reliability, faster iteration, and dramatically lower operating costs...and it made us rethink some things in the process.

So what caused the move?

To understand why we made such a drastic change, we need to go back to Railway's security incident on Oct 20. Per their incident report, an attacker decrypted environment variables for a subset of workspaces and went after AI provider keys. As a result of this, several of our keys were exposed and abused immediately, running up $80K+ in unauthorized inference before we were even notified.

Painful.

While dealing with the fallout, we took this as a clear signal to stop renting the core of our stack. As AI models become more capable, these kinds of security incidents are only going to get worse. And security isn't the only reason to own inference anymore. Data visibility and unit economics have become just as important.

The problem with today's AI models in production

Applying to jobs across thousands of different employer portals is an inherently messy, stateful problem. Deterministic rules or narrow structured decision models break the moment a site changes a widget, throws a custom validation error, or shifts its multi-step flow. To drive a browser agent reliably in the wild, you genuinely need an LLM that can reason through the page.

It's easy to glaze the latest frontier models for what they can do in coding or knowledge work, and they're a clear force multiplier in everyday use. But running them at scale in production is an entirely different problem.

First, closed models from Anthropic, OpenAI, and Google hide or summarize their full reasoning traces to protect against distillation. In a personal chat this doesn't really matter. However, in production where an agent misreads a form or gets stuck, you cannot see the full reasoning behind the mistake in real time. You are stuck debugging a black box through slow trial and error.

Second, today's smartest LLMs are generalists by design. They are trained to produce a safe, median outcome across everything on the internet, not to execute one narrow, repetitive job with high consistency.

Put those two together at scale and you end up with frequent opaque failures and agents burning tokens on bloated, wandering thinking chains. Most of the industry treats this as the norm because personal AI subscriptions heavily subsidize everyday use. When you are paying per-token API rates across thousands of live runs in a fast-changing production environment, what frontier labs build for stops making economic sense.

This is where a small, specialized LLM becomes the most viable option. We're able to keep the reasoning needed for messy real-world forms, gain full visibility into every trace so we can retrain on failures, and cut per-application inference costs by roughly an order of magnitude compared to calling a frontier model at every interaction.

What this looks like in practice

Today, 100% of Dreamwork's apply planning runs on our own fine-tuned model, served directly from our own GPU, with over 50,000 live planner calls across thousands of applications in three weeks. It is trained on real application traces kept strictly on our own infrastructure, with sensitive credentials and personal data scrubbed. Every iteration passes offline evaluations and shadow traffic before taking production runs, backed by a kill switch throughout.

For our specific workload, our specialized planner now outperforms the frontier models we ran before. First-attempt success has climbed week over week as we keep retraining on the hardest employer portals, and we have eliminated the rate limits and model-outage errors that used to stall live runs. Because inference runs on fixed GPU capacity instead of metered frontier tokens, we do not have to penny-pinch steps or pass a frontier model tax onto job seekers. Once you start asking what you should own versus rent, you see the same pattern across the rest of the stack:

  • A lightweight browser for crawling: Standard headless Chrome is heavy and expensive to scale for continuous job-board indexing, and alternative headless browsers proved too fragile in production. We built a lightweight browser runtime that renders pages like a real browser, starts in under a second, and uses far less memory and CPU than Chrome and Firefox-based options. On the boards we have moved over so far, it has completed over 25,000 crawls at ~99.9% reliability. It's open source too if you want to try it for your own crawling or web projects:browserr.dev .
  • Smaller models on plain CPUs: For high-volume classification, we are replacing hosted API calls with compact, domain-specific CPU models trained on millions of labeled records we already have. On held-out data they match hosted accuracy at 95-97% while running on hardware we already pay for, cutting classification costs by an estimated order of magnitude as they roll into production.
  • Dedicated compute instead of shared PaaS: Moving crawlers and apply workers onto our own hardware cut crawl failures on one of the hardest job platforms in half. We migrated every service in stages, running old and new stacks in parallel with automated health checks, graceful draining, and instant rollbacks, so every one of our workers cut over with zero downtime.

What owning the stack actually changes

We rebuilt our security posture from the ground up instead of patching around the problem. Production secrets no longer sit in environment variables on a third-party platform. Deploys authenticate without static keys, our model serving stays off the public internet, and anyone can check live service health at dreamworkhq.com/status.

Just as important, we broke our reliance on bigger platforms for the parts of Dreamwork that matter most. A third-party PaaS outage, a vendor breach, or a frontier lab's API hiccup is no longer a single point of failure for us.

Most teams assume leaving managed platforms slows you down. I used to think this way too. But for our situation, it actually removed some of our biggest bottlenecks. Because we own the servers, the crawling runtime, and the planner weights, our workloads no longer compete for shared resources or hit third-party timeouts and API limits. When we hit a tough job portal or a new edge case, we can fix the automation, retrain the model, and ship to production at a pace you simply cannot match when you are waiting on someone else's stack.

The tradeoff with this approach is that uptime is on us now, but honestly, I prefer it that way.

From our users' side, the workflow stays just as simple: upload a resume, set what you are looking for, and Dreamwork finds live roles, writes tailored materials, and applies for you. Underneath, your applications run on faster, more reliable infrastructure built specifically for the task at hand. I'm proud of how fast our team of two determined engineers (h/t @LordOfThePies4) was able to move on this. We still have a lot more work to do.

Try Dreamwork at dreamworkhq.com.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @dreamwork 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/an-80k-breach-forced…] indexed:0 read:6min 2026-11-25 · —