Risk Management for AI Chatbots
For leaders considering a public-facing AI chatbot, the core issue is not model quality alone but exposure. A freeform interface creates an attack surface where prompt injection, policy evasion and data leakage can become operational, legal and reputational problems within hours. The management question is whether the business value justifies a control model strong enough to absorb that risk, not whether the launch team can ship quickly.
This makes governance decisions more important than the chatbot itself. Before launch, executives need clear ownership for acceptable use, incident response, logging, human review and escalation. Legal, security, privacy, PR and customer support should not be consulted after a failure; they need defined decision rights while the design is still fluid. A practical next question is: who can pause, throttle or disable the service when output quality or user behavior crosses a threshold?
There is also a portfolio trade-off hiding in the build-versus-buy conversation. A custom model, tighter user eligibility, and stronger filtering can reduce exposure, but each choice adds cost, complexity and slower time to market. The right decision is rarely โmaximum opennessโ or โmaximum restrictionโ; it is the least permissive operating model that still supports the intended business case. That means explicitly funding monitoring, red-teaming and content review, not treating them as residual overhead.
Boards and transformation leaders should ask for evidence, not optimism. What abuse cases were tested? What metrics define acceptable drift, harmful output, or unusual prompt patterns? How will the organization learn from incidents without normalizing them? If the answers are vague, the rollout is not ready. If the answers are clear, the chatbot becomes a governed capability rather than an unmanaged experiment.
Does your company plan to release an AI chatbot, similar to OpenAIโs ChatGPT or Googleโs Bard? Doing so means giving the general public a freeform text box for interacting with your AI model.
That doesnโt sound so bad, right? Hereโs the catch: for every one of your users who has read a โHereโs how ChatGPT and Midjourney can do half of my jobโ article, there may be at least one who has read one offering โHereโs how to get AI chatbots to do something nefarious.โ Theyโre posting screencaps as trophies on social media; youโre left scrambling to close the loophole they exploited.
Welcome to your companyโs new AI risk management nightmare.
So, what do you do? Iโll share some ideas for mitigation. But first, letโs dig deeper into the problem.
Old Problems Are New Again
The text-box-and-submit-button combo exists on pretty much every website. Itโs been that way since the web form was created roughly thirty years ago. So whatโs so scary about putting up a text box so people can engage with your chatbot?
Those 1990s web forms demonstrate the problem all too well. When a person clicked โsubmit,โ the website would pass that form data through some backend code to process itโthereby sending an e-mail, creating an order, or storing a record in a database. That code was too trusting, though. Malicious actors determined that they could craft clever inputs to trick it into doing something unintended, like exposing sensitive database records or deleting information. (The most popular attacks were cross-site scripting and SQL injection, the latter of which is best explained in the story of โLittle Bobby Tables.โ)
With a chatbot, the web form passes an end-userโs freeform text inputโa โprompt,โ or a request to actโto a generative AI model. That model creates the response images or text by interpreting the prompt and then replaying (a probabilistic variation of) the patterns it uncovered in its training data.
That leads to three problems:
- By default, that underlying model will respond to any prompt.ย Which means your chatbot is effectively a naive person who has access to all of the information from the training dataset. A rather juicy target, really. In the same way that bad actors will use social engineering to fool humans guarding secrets, clever prompts are a form ofย social engineering for your chatbot.ย This kind of prompt injection can get it to say nasty things. Or reveal a recipe for napalm. Or divulge sensitive details. Itโs up to you to filter the botโs inputs, then.
- The range of potentially unsafe chatbot inputs amounts to โany stream of human language.โ It just so happens, this also describes all possible chatbot inputs.ย With a SQL injection attack, you can โescapeโ certain characters so that the database doesnโt give them special treatment. Thereโs currently no equivalent, straightforward way to render a chatbotโs input safe. (Ask anyone whoโs done content moderation for social media platforms: filtering specific terms will only get you so far, and will also lead to a lot of false positives.)
- The model is not deterministic.ย Each invocation of an AI chatbot is a probabilistic journey through its training data. One prompt may return different answers each time it is used. The same idea, worded differently, may take the bot down a completely different road. The right prompt can get the chatbot to reveal information you didnโt even know was in there.ย And when that happens, you canโt really explain how it reached that conclusion.
Why havenโt we seen these problems with other kinds of AI models, then? Because most of those have been deployed in such a way that they are only communicating with trusted internal systems.ย Or their inputs pass through layers of indirection that structure and limit their shape. Models that accept numeric inputs, for example, might sit behind a filter that only permits the range of values observed in the training data.
What Can You Do?
Before you give up on your dreams of releasing an AI chatbot, remember: no risk, no reward.
The core idea of risk management is that you donโt win by saying โnoโ to everything. You win by understanding the potential problems ahead, then figure out how to steer clear of them. This approach reduces your chances of downside loss while leaving you open to the potential upside gain.
Iโve already described the risks of your company deploying an AI chatbot. The rewards include improvements to your products and services, or streamlined customer service, or the like. You may even get a publicity boost, because just about every other article these days is about how companies are using chatbots.
So letโs talk about some ways to manage that risk and position you for a reward. (Or, at least, position you to limit your losses.)
Spread the word: The first thing youโll want to do is let people in the company know what youโre doing.ย Itโs tempting to keep your plans under wrapsโnobody likes being told to slow down or change course on their special projectโbut there are several people in your company who can help you steer clear of trouble. And they can do so much more for you if they know about the chatbot long before it is released.
Your companyโs Chief Information Security Officer (CISO) and Chief Risk Officer will certainly have ideas. As will your legal team. And maybe even your Chief Financial Officer, PR team, and head of HR, if they have sailed rough seas in the past.
Define a clear terms of service (TOS) and acceptable use policy (AUP): What do you do with the prompts that people type into that text box? Do you ever provide them to law enforcement or other parties for analysis, or feed it back into your model for updates? What guarantees do you make or not make about the quality of the outputs and how people use them? Putting your chatbotโs TOS front-and-center will let people know what to expect before they enter sensitive personal details or even confidential company information. Similarly, an AUP will explain what kinds of prompts are permitted.
(Mind you, these documents will spare you in a court of law in the event something goes wrong. They may not hold up as well in the court of public opinion, as people will accuse you of having buried the important details in the fine print. Youโll want to include plain-language warnings in your sign-up and around the promptโs entry box so that people can know what to expect.)
Prepare to invest in defense: Youโve allocated a budget to train and deploy the chatbot, sure. How much have you set aside to keep attackers at bay? If the answer is anywhere close to โzeroโโthat is, if you assume that no one will try to do you harmโyouโre setting yourself up for a nasty surprise. At a bare minimum, you will need additional team members to establish defenses between the text box where people enter prompts and the chatbotโs generative AI model. That leads us to the next step.
Keep an eye on the model: Longtime readers will be familiar with my catchphrase, โNever let the machines run unattended.โ An AI model is not self-aware, so it doesnโt know when itโs operating out of its depth.ย Itโs up to you to filter out bad inputs before they induce the model to misbehave.
Youโll also need to review samples of the prompts supplied by end-users (thereโs your TOS calling) and the results returned by the backing AI model. This is one way to catch the small cracks before the dam bursts. A spike in a certain prompt, for example, could imply that someone has found a weakness and theyโve shared it with others.
Be your own adversary: Since outside actors will try to break the chatbot, why not give some insiders a try?ย Red-team exercises can uncover weaknesses in the system while itโs still under development.
This may seem like an invitation for your teammates to attack your work. Thatโs because it is.ย Better to have a โfriendlyโ attacker uncover problems before an outsider does, no?
Narrow the scope of audience: A chatbot thatโs open to a very specific set of usersโsay, โlicensed medical practitioners who must prove their identity to sign up and who use 2FA to login to the serviceโโwill be tougher for random attackers to access. (Not impossible, but definitely tougher.) It should also see fewer hack attempts by the registered users because theyโre not looking for a joyride; theyโre using the tool to complete a specific job.
Build the model from scratch (to narrow the scope of training data): You may be able to extend an existing, general-purpose AI model with your own data (through an ML technique called transfer learning). This approach will shorten your time-to-market, but also leave you to question what went into the original training data. Building your own model from scratch gives you complete control over the training data, and therefore, additional influence (though, not โcontrolโ) over the chatbotโs outputs.
This highlights an added value in training on a domain-specific dataset: itโs unlikely that anyone would, say, trick the finance-themed chatbot BloombergGPT into revealing the secret recipe for Coca-Cola or instructions for acquiring illicit substances. The model canโt reveal what it doesnโt know.
Training your own model from scratch is, admittedly, an extreme option. Right now this approach requires a combination of technical expertise and compute resources that are out of most companiesโ reach. But if you want to deploy a custom chatbot and are highly sensitive to reputation risk, this option is worth a look.
Slow down: Companies are caving to pressure from boards, shareholders, and sometimes internal stakeholders to release an AI chatbot. This is the time to remind them that a broken chatbot released this morning can be a PR nightmare before lunchtime. Why not take the extra time to test for problems?
Onward
Thanks to its freeform input and output, an AI-based chatbot exposes you to additional risks above and beyond using other kinds of AI models. People who are bored, mischievous, or looking for fame will try to break your chatbot just to see whether they can. (Chatbots are extra tempting right now because they are novel, and โcorporate chatbot says weird thingsโ makes for a particularly humorous trophy to share on social media.)
By assessing the risks and proactively developing mitigation strategies, you can reduce the chances that attackers will convince your chatbot to give them bragging rights.
I emphasize the term โreduceโ here.ย As your CISO will tell you, thereโs no such thing as a โ100% secureโ system. What you want to do is close off the easy access for the amateurs, and at least give the hardened professionals a challenge.
Many thanks to Chris Butler and Michael S. Manley for reviewing (and dramatically improving) early drafts of this article. Any rough edges that remain are mine.
Enjoyed this article? Sign up for our newsletter to receive regular insights and stay connected.
