How to Review Your Vibe Coded App Before Deployment

METR’s API key theft shows why you must check authentication, credential access, and permissions before deployment.

·
·
How to Review Your Vibe Coded App Before Deployment
  • An authentication flaw in METR’s vibe-coded dashboard exposed an agent. An attacker obtained its API key and consumed free credits worth approximately $600,000 over three weeks.
  • An HTTP rejection does not prove access controls work. A backend can reject the request after it queues a task that a worker still executes.
  • A separate inference service can hold the provider key, validate workload credentials, and enforce model permissions and usage limits before it forwards requests.
  • Security review must cover generated code, tests, and deployment configuration. Check that unauthorized requests fail and authorized requests still work.
  • High legitimate usage can obscure stolen-key activity. Track credential use, set usage limits, and test how you revoke credentials and remove persistent access.

In August, AI research lab METR published a security disclosure reporting an API key theft which occurred through a vibe-coded agent dashboard. An authentication flaw exposed the agent, which an attacker prompted to reveal its provider key. Over three weeks, the attacker consumed credits with an approximate commercial value of $600,000, although the provider supplied them for free.

AI code generation lets people with limited software development experience build and deploy applications. Those applications still need security checks before deployment.

A successful login demonstrates access for an authorized user. It leaves other questions unanswered. Does the backend reject a request without a session? Can the agent read the key that pays for its model calls? Can its worker modify the host?

Before you deploy your AI generated code, you need to test these boundaries directly. Check the rejected requests as well as the successful ones, trace credential access through the application, and remove permissions the workload does not need. The code, tests, and deployment configuration all belong in that review.

How METR’s Dashboard Exposed Its API Key

According to METR's disclosure, the compromised dashboard was running on a researcher’s personal EC2 instance that was intended to be protected by Google authentication. A fail-open vulnerability disabled authentication and exposed the app for several days.

The attackers also added an SSH key for persistent access. METR subsequently made security reviews for public deployments strict. The report does not provide the vulnerable code or establish which generation step introduced the flaw.

Fail-open means a security check encounters a problem and access remains available. Imagine a dashboard that skips authentication when a required configuration value is absent. The page loads and tasks still run, so a normal demonstration need not expose the defect.

I’ll use an illustrative dashboard throughout the checks below. It lets a user submit an agent task, inspect its output, and cancel it. This is an example of the way you can review your code. METR’s disclosure does not establish its internal architecture. Start with the backend request that creates a task.

Test The Requests that Should Fail

Authentication establishes who makes a request. Authorization determines whether that identity may perform the requested operation. Your backend must enforce both wherever protected resources require them. OWASP recommends denial by default and permission checks on every request.

Validating sessions requires strict ordering: verify identity before modifying state or dispatching work. AI code generators often push payloads into a task queue before completing authentication middleware, or validate tokens asynchronously inside the worker.

Keep reading

Don't miss what's next in AI

Join 300,000+ engineers and researchers who get the signal, not the noise. Create a free account to read the rest of this story.

  • Full access to in-depth AI research breakdowns
  • Be the first to know what's trending before it hits mainstream
  • Daily curated papers, repos, and industry moves
Trending
  • No trending articles

Comments

avatar

Next Reads