Hardening Generative AI Chatbots: Prevent Prompt Injection, Data Exfiltration & Hallucinations

Episode 6 60 min

Maria Sukhareva Principal Key Expert

Episode 6 · Hardening Generative AI Chatbots: Prevent Prompt Injection, Data Exfiltration & Hallucinations

60 min

What we talked about

Maria Sukhareva is a Principal Key Expert in Artificial Intelligence at Siemens. She started as a linguist, moved into computational linguistics and worked as a researcher before joining BMW's NLP group as a data scientist. Her role is to advise management on which AI technologies to adopt or avoid, including their risks. Alexey invites her to discuss how generative AI chatbots fail in production and how to harden them against prompt injection, data leaks and hallucinations.

Maria describes a challenge in which participants tried to make a chatbot output prohibited words, run at Siemens with 1,500 participants. A hidden value stored in a knowledge base, the name of her cat, was extracted by about 30 people, even though a filtering model checked the output. Participants used high-information characters, crafted API requests and Python functions. The key technique was overloading the prompt with irrelevant instructions to divert the model's attention from its rules. Companies also face legal and financial exposure, such as an airline chatbot that invented a discount the airline had to honor.

Mitigations include analyzing user queries for attempts to extract data, validating outputs for confidential content, and using layered defenses. Maria and Alexey agree that simpler, non-LLM classifiers are harder to manipulate. Maria argues that hallucinations harm trust, and that reputational damage can outweigh the direct cost of an error. She cites a test in which ChatGPT gave cooking advice for a death cap mushroom, and she says chatbots often fail to win adoption because users find them inaccurate or verbose. Business chatbots also rarely carry the disclaimers that consumer tools show.

Maria recommends human-in-the-loop review, where a person approves or corrects a response before it is sent. She frames AI as an assistant rather than a replacement, and Alexey recalls a fraud- flagging model for a marketplace that was introduced with the autopilot analogy. Maria says human translators remain necessary for technical text, because terminology must stay consistent and mistranslations can be dangerous. She also warns teams against endless prompt tuning, since prompts can break after a model update and outputs vary between runs. Her earlier work on low- resource and historical languages, from Middle English to Sumerian, shows how little data some tasks have.

Chapters

  1. 0:00 Episode Introduction & Guest Overview 2 min
  2. 2:13 Career Path: From Linguist to Computational Linguistics and Industry 2 min
  3. 4:11 Role Definition: Principal Key Expert in AI — Advising on Technology and Risk 2 min
  4. 5:42 Democratization of Generative AI: Rise of Prompting and New "AI Experts" 4 min
  5. 9:28 Bot Safety Challenge: Large-Scale Chatbot Hacking Exercise and Findings 2 min
  6. 11:38 Chatbot Failures: Hallucinations, Legal Exposure, and Financial Incidents 2 min
  7. 13:20 Data Exfiltration Techniques: Overloading Prompts and Knowledge-Base Retrieval 3 min
  8. 16:15 Mitigations: Output Validation, Query Analysis, and Layered Defenses 1 min
  9. 17:00 Non-LLM Classifiers: Robust Alternatives to Manipulable Generative Models 1 min
  10. 18:01 Trust and Hallucinations: User Confidence, Safety, and Adoption Risks 3 min
  11. 20:39 Chatbot Adoption Issues: Usability, Verbosity, and Return on Investment 5 min
  12. 25:34 Human-in-the-Loop Solutions: Hybrid Review to Improve Accuracy 2 min
  13. 27:13 AI as Assistant: Moderation Tools, Autopilot Analogy, and Workforce Impact 3 min
  14. 29:53 Translation Workflows: AI-Augmented Translators and Quality Control 3 min
  15. 32:28 Prompt Customization: Controlled Machine Translation with ChatGPT 3 min
  16. 35:44 Historical Linguistics: Middle & Old English Pronunciation Insights 9 min
  17. 45:08 Ancient Languages: Cuneiform, Sumerian Transcription, and MT Approaches 3 min
  18. 48:26 Script Complexity: Logograms vs. Phonetics in Ancient Texts 5 min
  19. 53:01 Multilingual Models: Progress and Challenges for Low-Resource Languages 4 min
  20. 56:52 Orthography & Data Quality: Inconsistent Spelling in Historical Corpora 1 min
  21. 57:28 Industry Trade-offs: Research Innovation vs. ROI and Operational Needs 2 min
  22. 59:14 Episode Wrap-Up: Key Takeaways on AI Trust, Safety, and Future Directions 1 min

Maria Sukhareva Principal Key Expert

Maria Sukhareva is a Principal Key Expert in Artificial Intelligence at Siemens with over 15 years of experience at the forefront of generative AI technologies. With a background spanning linguistics and computational AI, she transforms cutting-edge research into practical, production-ready tools, from hardened chatbot systems to controlled machine translation, while keeping innovation balanced with ethical responsibility.

Topics in this episode

The wiki pages this conversation is filed under, the strongest first.

AI

AI across machine learning, generative AI, agents, production systems, evaluation, infrastructure, and governance.

AI Red Teaming

AI red teaming for prompt injection, data exfiltration, unsafe outputs, and agent abuse.

LLMs

Large language models with links to retrieval, agents, evaluation, production, and security pages.

NLP

Natural language processing across language data, annotation, LLMs, speech, search, and production systems.

Production

Production for data, ML, and AI systems, covering deployment, monitoring, reliability, ownership, and cost.

Security

Security in data and AI systems: LLM abuse, data exfiltration, access control, privacy, release approval, and secure ML artifacts.

MLOps

Reference page for MLOps as the operating discipline for production machine learning systems.

AI Engineering

AI engineering is the discipline of shipping LLM applications, RAG systems, agents, evaluations, and production AI products.

AI Tools Workflow Guide

How data professionals integrate AI tools into daily work, keep reviews in place, and add evaluation and privacy habits around repeated tasks.

Agent Engineering

Agent engineering across workflow design, tools, retrieval, evaluation, guardrails, and production constraints.

Agent Ops

Agent Ops covers orchestration, guardrails, data lineage, deployment risks, and monitoring for AI agents in production.

Annotation Quality Workflows

Annotation quality as an NLP workflow with guidebooks, human baselines, agreement checks, model assistance, privacy controls, and feedback loops.

Data Product Adoption

Getting dashboards, models, analytics tools, and data products into real business decisions.

Generative AI

Generative AI as applied language, chatbot, agent, coding, and content-generation systems.

Governance

Governance ties decision rights, risk review, compliance, release controls, and accountability across data, product, ML, and AI systems.

LLM Production Patterns

Durable serving, reliability, context, cost, and guardrail patterns for production LLM systems.

LLM System Design Interview

Prepare for LLM system design interviews with production patterns for RAG, agents, evaluation, safety, latency, cost, and operations.

LLM and RAG Production Roadmap

A learning and rollout roadmap for teams moving from bounded LLM workflows to RAG, evaluation, agents, and production readiness.

LLMOps

LLMOps covers the lifecycle discipline for LLM applications: traces, evaluation sets, releases, guardrails, cost control, and feedback loops.

Privacy Engineering for ML

Privacy engineering for ML across access governance, privacy-enhancing technologies, and production LLM privacy tradeoffs.

Prompt Engineering

Prompt engineering techniques: role prompts, examples, structured output, evaluation, RAG context, and injection risks.

Prompt Injection Risks

How chatbot teams manage prompt injection, retrieval abuse, data leaks, hallucinations, legal exposure, red-team tests, and layered defenses.

Related books

Creating Intelligent Products

6 questions answered

Creating Intelligent Products: Generative AI, advanced analytics, smart automation teaches you how to successfully integrate AI into your software products. Written for product managers, team leads, and anyone responsible for the success of a software product or service, this practical book introduces Generative AI, AI-assisted data analytics, intelligent process automation, and more. You’ll love the examples from across many industries that illustrate the power and versatility of AI-powered solutions.

Janna Lipenkova

Artificial Intelligence with Python

4 questions answered

Artificial Intelligence with Python, Second Edition is an updated and expanded version of the bestselling guide to artificial intelligence using the latest version of Python 3.x. Not only does it provide you an introduction to artificial intelligence, this new edition goes further by giving you the tools you need to explore the amazing world of intelligent apps and create your own applications.

Prateek Joshi

Build a Large Language Model (From Scratch)

58 questions answered

In Build a Large Language Model (From Scratch), you'll learn and understand how large language models (LLMs) work from the inside out by coding them from the ground up, step by step. In this book, I'll guide you through creating your own LLM, explaining each stage with clear text, diagrams, and examples.

Sebastian Raschka

Optional analytics

Optional analytics are off unless you allow them. Your choice does not affect access to DataTalks.Club, Slack, events, or courses.

Current choice: not chosen.

Privacy Policy

If you allow analytics, self-hosted Umami counts anonymous public pageviews without analytics cookies. Private account and learning pages are excluded. Read the Privacy Policy for the complete data boundary.

Want to learn more about our community?

How it started, who's here, and everything that goes on here: courses, events, Slack, and more.

About DataTalks.Club