Leak · AI model
An AI endpoint anyone can call.
Your AI feature answers whoever asks. Every answer lands on your bill.
Specification
The class, as Xtarwall tests it.
Pattern, signal, proof and fix, then what XShield adds on a live app. This class sits in the proven tier of the benchmark.
-
Class
CWE-306/missing-authentication- Area
- Access control and sign-in
- Impact
- Money and data
- Tier
- Detected, with a fix, proven by running the attack
- Pattern
- The route that forwards prompts to the model vendor accepts requests with no credentials. Every completion bills the company's vendor key.
- Signal
- An unauthenticated
POSTreturns 200 and the response attributes the cost to the company. - Proof
- One request with no
Authorizationheader. The proof passes on a 200 billed to the company key. - Fix
- Authenticate the caller before forwarding to the vendor, and gate the proxy to an internal service identity. XGuard re-runs the proof on every push.
- Live, XShield
- A canary key, a credential-shaped value planted where an intruder would look, is answered 401 before your handler runs. The touch is reported to your console and sealed in your signed ledger.
class CWE-306/missing-authentication
step 1 POST /api/model/complete no Authorization header
{"prompt":"drain the vendor budget"}
pass status == 200
pass billedTo == "company"
impact run the company's paid LLM vendor budget with no account
It looks like normal use.
Nothing crashes and nothing turns red, which is why it goes unnoticed.
What the leak is
An endpoint is an address on your server that your app sends requests to. An AI endpoint passes each request on to an AI model that you pay for by use. The leak is an AI endpoint that answers anyone who finds it, signed in or not, with no cap.
Why it costs you
You pay for every answer. A stranger can run their own project on your AI account, and you learn about it from the invoice. Heavy use can also exhaust your allowance with the model provider, so your real customers start seeing errors.
How it gets abused
The address is not a secret: every visitor's browser calls it. If the server does not ask who is calling or how much they have used, anyone can send it their own questions, as many as they like.
How Xtarwall proves it
On a safe copy, never on your live app.
A safe copy is a stand-in for your app, started for the test and thrown away after it.
Detect
Xtarwall finds your AI endpoints and reads what each one asks of a caller.
Prove
On a short-lived safe copy of your app, it calls the endpoint as a stranger with no account. If an answer comes back, the leak is real. The test itself runs under a spending cap.
Protect
You get the fix as a specific change to your code, and a proof you can run again to watch the same attempt fail.
No proof, no alert.
XWatch is free: it finds weak spots and writes the fix. Hosted plans add proof by real attack. How it works
What the fix looks like.
In principle. Xtarwall writes the exact change for your code.
Know the caller
Every call to an AI endpoint belongs to a signed-in customer.
Give each customer a budget
Count use on the server, per customer, and stop at the cap.
Keep the provider key on the server
The key for your AI provider stays behind your server and never reaches a browser.
Measured, not promised.
Measured on our test suite, 28 Nov 2026. How we measure
- 83
- attack types detected
- 73
- with a ready fix
- 53
- proven by running the real attack
- 0
- false alarms on 17 safe test cases
The other leaks Xtarwall goes looking for.
Free credits, drained
The welcome credits you set aside for new customers get collected again and again by one person.
Limits that live in the browser
The screen says five a day. The server never counts. Skip the screen and you skip the limit.
One customer in another's data
Someone opens an order, an invoice or a file that was never theirs. You hear about it from them.
Find it on a copy, before someone finds it on the real thing.
Start with XWatch. It is free, and it runs on your own AI key.