Securing AI applicationsMiddleLesson 1425 min read

Misinformation and overreliance in AI features

Models can be confidently wrong. The danger grows when your product makes wrong answers look trustworthy, or when people and systems act on them without checking.

Lesson in motion

In 60 seconds

Misinformation and overreliance in AI features

Models can be confidently wrong. The danger grows when your product makes wrong answers look trustworthy, or when people and systems act on them without checking.

1/5
In simple words
A classmate always answers fast and sounds sure, but sometimes makes things up. The real trouble starts when the whole class copies them without checking.
OWASP's LLM09 Misinformation covers false or misleading output that looks believable. The model may invent facts, sources, policies or code. Overreliance is the other half: people or systems act on the output without checking. Together they become a security and safety problem when output drives real decisions.

Where it causes harm

FeatureWhat goes wrongHarm
Customer support botInvents a refund or discount policyAngry customers, complaints, cost and possible legal trouble
HR policy assistantStates the wrong leave or notice rulesEmployees make decisions on false information
Coding assistantSuggests a library that does not exist, or insecure codeSupply-chain attack, vulnerabilities in production
Security or IT helperSummarises an alert as harmless when it is notA real incident is missed
Health or finance informationConfident but wrong guidanceReal harm to people; needs professional review

An example: package hallucination

Coding assistants sometimes suggest package names that do not exist. Attackers can register those names on public package registries and fill them with malicious code. A developer who trusts the suggestion and installs it runs the attacker's code. This is sometimes called slopsquatting.
  • Check that a suggested package exists, is the well-known one, and has a real history and maintainers before installing.
  • Watch for names that are close to popular packages but slightly different.
  • Use lock files, a private mirror or an allow-list of approved packages for important projects.
  • Run dependency scanning in your pipeline (Unit 4).

Design for doubt

UX that invites overreliance
  • Every answer looks equally certain
  • No sources, or sources that cannot be opened
  • A tiny disclaimer at the bottom of the page
  • No way to reach a human
UX that supports checking
  • The bot says "I could not find this in our documents" when retrieval finds nothing
  • Clickable citations next to the claims they support
  • A short, clear note next to high-stakes answers
  • An easy path to a human, and a feedback button

Match review to the stakes

  1. 1

    Classify

    Sort the feature's outputs by what happens if they are wrong.
  2. 2

    Low stakes

    Drafts, suggestions, search help: automatic, with sources.
  3. 3

    Medium stakes

    Policy answers, summaries used for work: sources required, clear warning, easy escalation.
  4. 4

    High stakes

    Money, health, legal, access changes, security actions: a qualified human reviews before anything happens.
Grounding helps: tell the model to answer only from retrieved documents and to say so when they do not cover the question. Then check it. Automatic checks that compare claims to cited sources can catch some errors, but they are also imperfect. Keep evaluation sets of questions with known correct answers, and measure how often the feature gets them right.
Watch out
A disclaimer alone does not fix overreliance. People stop reading warnings they see on every screen. Put effort into sources, honest "I don't know" answers and human review where it matters.
Try this. Ask a chatbot to suggest a Python library for a very specific, unusual task. Before installing anything, look each name up on the official package website. Does it exist? Who maintains it? How long has it existed?

Watch and read more

Lab

A redesigned answer screen and a stakes table for one AI feature, plus a checked package list.

~25 min

The problem

Part A (pen and paper): a shop's support bot answered "Yes, you can return any item within 30 days for a full refund" with no source. The real policy is 7 days.

  1. Sketch a better answer screen: where the source appears, what the bot says when it is not sure, and how the user reaches a human.
  2. Make a table of five question types this bot gets, with a stakes level (low / medium / high) and the review rule for each.

Part B (browser only, no installing): ask a chatbot for three Python libraries for an unusual task. For each name, check the official package website and write: exists? well-known? maintainers? first release date?

You are done when

Hard questions

Try to answer before you reveal. If you can answer these, you understood the lesson.

Q1Your bot cites a real policy document, but the answer still misstates it. How could you catch this automatically, and what are the limits?Reveal

You can run a second check that compares each claim in the answer to the cited text, using rules for numbers and dates, or another model as a grader. This catches some errors. But the checker can also be wrong, and it may miss subtle changes of meaning. Use it to flag answers for review and to measure quality over time, not as proof of correctness.

Q2Why might showing a confidence percentage next to each answer do more harm than good?Reveal

Models are not reliably calibrated, so the number may not match real accuracy. A precise-looking number like "92%" makes answers feel more scientific and increases trust. Honest signals, such as whether a source was found and whether the claim is quoted from it, are usually more useful.

Please sign in to continue.

Questions people ask

Can we remove hallucinations completely?

Not today. Better models, retrieval and grounding reduce them, but a language model can always produce fluent text that is wrong. Design the feature so that errors are caught before they cause harm.

Is RAG enough to stop misinformation?

It helps a lot, but the model can still misread a document, mix two sources, or fill gaps with guesses. The documents themselves may be old or wrong. Citations let users check, and evaluation tells you how often it goes wrong.

Why is overreliance a security problem, not just a quality one?

Because attackers can use it. They can plant false information for the model to repeat, register hallucinated package names, or rely on staff trusting an AI summary. Any output that people act on without checking is an attack path.

Who decides what is "high stakes"?

The product owner, with security, legal and domain experts. Write the decision down per feature. When in doubt, and especially for health, legal or financial matters, require review by a qualified professional.

Lesson test

5 questions. Get 3 right (60%) to pass and complete this lesson.

Sign in to take the test and save your progress