Menu

Your public AI chatbot is an open wallet
📰

Your public AI chatbot is an open wallet

DEV Community: nextjs·Sebastian Musiał·1 day ago
#LMsbLLu0
#devtonextjs#devto#dev#askdare#model
Long article (1648 words) — no AI summary yet.
Reading 0:00
15s threshold

Put a chatbot on a public page and you have published an endpoint that spends your money. Anyone can send it a message, every message is billed to your OpenAI project, and a script can send thousands of them.

askdare's threat model starts from one admission: an anonymous public bot can't be made unforgeable. A determined attacker can always use it as a rate-limited LLM. So the goal is narrower and reachable. Bound the damage in requests, tokens and money per day, and stop the attacker from escalating to data, scripts or other people's conversations.

Below are the threats I'd check in any public chatbot, whatever it's built with, and then what askdare does about each one by default.

The client chooses what it shouldn't

The cheapest attack is a field in the request body. If the browser sends the model name, an attacker sends the most expensive one. If it sends instructions, a vector store ID or a conversation ID, they send their own or try someone else's.

This isn't hypothetical for us.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.