{"id":7583,"date":"2025-06-09T14:10:22","date_gmt":"2025-06-09T12:10:22","guid":{"rendered":"https:\/\/blog.bart.sk\/en\/?p=7583"},"modified":"2025-08-06T08:53:46","modified_gmt":"2025-08-06T06:53:46","slug":"when-a-chatbot-says-too-much-rules-for-safe-ai","status":"publish","type":"post","link":"https:\/\/blog.bart.sk\/en\/when-a-chatbot-says-too-much-rules-for-safe-ai\/","title":{"rendered":"When a Chatbot Says Too Much: Rules for Safe AI"},"content":{"rendered":"\n<p><strong>AI chatbots and assistants are now helping answer customer questions, summarize data, and support administrators. They\u2019re always available, faster than any human, and\u2014if configured properly\u2014surprisingly accurate. But with this convenience comes a pressing question: What happens when AI says more than it should\u2014to your clients, your team, or even the entire world?<\/strong><\/p>\n\n\n\n<p>This isn\u2019t a hypothetical concern. <strong>In 2023, a student cleverly tricked Microsoft\u2019s Bing AI chatbot into revealing internal system rules that were meant to stay hidden.<\/strong> Due to a misconfiguration, even regular users could access this sensitive information.<\/p>\n\n\n\n<p>Cases like this demonstrate that <strong>AI is powerful\u2014but still lacks context and risk awareness<\/strong>. That\u2019s why the conversation around AI safety now includes not just companies but regulators too.<\/p>\n\n\n\n<p>As of August 2024, the EU\u2019s AI Act has come into force\u2014the first comprehensive law governing artificial intelligence in the European Union. Its goal is to <strong>differentiate between high- and low-risk AI use cases<\/strong> and to establish <strong>clear rules where AI could impact users\u2019 privacy, health, or safety.<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p><strong>Today, it\u2019s not enough for developers and companies to simply \u201chave AI.\u201d It must be designed to comply with the AI Act and remain useful, trustworthy, and safe for all users.<\/strong><\/p>\n<\/blockquote>\n\n\n\n<p>In the following section, we\u2019ll explore the most common mistakes companies make when implementing AI\u2014and the practical rules that help prevent them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>How We Do It in Practice:<\/strong><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>1. AI Never Gets More Than It Actually Needs<\/strong><\/h3>\n\n\n\n<p>We design every AI solution with the principle of \u201cnarrow context\u201d in mind. That means <strong>the model receives only the specific data it needs to respond accurately<\/strong>. It is never directly connected to a live database or production system. <strong>All inputs are preprocessed, filtered, and structured<\/strong> so only relevant information reaches the model. This significantly <strong>reduces the risk of misinterpretation, unintentional data exposure, or contextual errors.<\/strong><\/p>\n\n\n\n<p>This approach is essential in projects involving sensitive data\u2014like medical records\u2014but we apply it even when working with public data sets.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>2. Data Stays in the EU and Is Never Used for Further Training<\/strong><\/h3>\n\n\n\n<p>In any project involving personal or business data, we need to know exactly where the data is stored and what guarantees the infrastructure provides. For example, with the Crossuite medical system based in Belgium, we use AWS hosting in Frankfurt, Germany\u2014fully complying with the AI Act requirements for high-risk systems. These include provisions that <strong>personal data collected within the EU must be processed primarily within the EU<\/strong> and always in line with EU regulations.<\/p>\n\n\n\n<p>Amazon\u2019s terms also explicitly guarantee that <strong>our input data is not stored, evaluated, or used to train the model further<\/strong>. This is especially critical in fields like healthcare, where any overlap between user data and model training is strictly prohibited.<\/p>\n\n\n\n<p>Our responsibility is not only technical, but legal\u2014<strong>clients must know that what AI \u201csees\u201d stays between them and the model<\/strong>. No one else\u2014not now, and not in the future\u2014should have access to that data.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>3. Secure Inputs Are the Foundation of Safe Outputs<\/strong><\/h3>\n\n\n\n<p>AI safety isn\u2019t just about what data the model receives, but how it\u2019s guided to respond. <strong>In every project, we design prompts to ensure the model sticks to relevant information, stays on topic, and provides clear, predictable answers.<\/strong><\/p>\n\n\n\n<p>We use predefined templates that define what information the AI can access, the desired tone of the response, and how it should react to uncertainty. We also monitor whether it stays within these constraints. This approach\u2014known as prompt engineering\u2014<strong>turns AI into a trusted tool, not an unpredictable experiment.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>4. If Needed, We Anonymize Data Before AI Even Sees It<\/strong><\/h3>\n\n\n\n<p>Not every application handles sensitive data\u2014but any app might one day. <a href=\"https:\/\/blog.bart.sk\/digitalne-inspiracie-90-co-inovativne-sme-spolu-zrealizovali-v-aprili\/#xfarby\">Dejmark, for example, uses AI<\/a> to simplify repeat purchases for their sales team. A photo of an old order, receipt, or ERP screenshot is enough for the AI to identify products, quantities, and volumes, and create a new cart. Currently, this process doesn\u2019t handle personal data\u2014but in the future, it might process invoices or delivery notes, which could include names, addresses, or email contacts.<\/p>\n\n\n\n<p>That\u2019s why we built anonymization into the solution from day one\u2014using regex filters or preprocessing at the application layer. <strong>The model never sees raw input, only a clean extract without identifiers.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>5. Every Output Is Traceable, Explainable, and Adjustable<\/strong><\/h3>\n\n\n\n<p>Transparency builds trust. For every AI implementation, we create <strong>mechanisms to audit outputs<\/strong>. Our goal is to always be able to <strong>trace what was asked, how the model responded, and why<\/strong>\u2014so the results can be verified and explained if needed.<\/p>\n\n\n\n<p>This is especially important in healthcare: if there\u2019s a discrepancy in data summaries, we need to understand what the model based its response on. In chatbot applications, we check whether the model stays within its role, and if not, we can retrain it, adjust the prompt, or refine the input handling.<\/p>\n\n\n\n<p><strong>Every AI deployment goes through a two-step testing process: internal review by our developers and final validation by the client before going live.<\/strong><\/p>\n\n\n\n<p><strong>This allows us to build AI that\u2019s not only functional\u2014but defensible.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>6. Trusted Models, Clear Rules, Ongoing Oversight<\/strong><\/h3>\n\n\n\n<p><strong>AI safety begins with choosing the right model and provider.<\/strong> In our projects, we prioritize partners who offer proven technology, transparent policies, and strong data protection\u2014like OpenAI via Azure, Google Vertex AI, AWS Bedrock, or self-hosted solutions. Their <strong>infrastructure includes encryption, access control, and regular audits.<\/strong><\/p>\n\n\n\n<p>On top of this infrastructure, we define strict usage rules\u2014<strong>what data the model can process, its limits, and fallback instructions for uncertainty.<\/strong> Every solution undergoes internal testing and client validation. <strong>Regular security audits help us adapt these rules as technology, regulations, or data types evolve\u2014so our AI remains safe and reliable long term.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>AI Has Limits\u2014And We Set Them So You Can Trust It<\/strong><\/h2>\n\n\n\n<blockquote class=\"wp-block-quote\">\n<p>The biggest risk with AI isn\u2019t the technology\u2014it\u2019s letting it operate without clear boundaries.<\/p>\n<\/blockquote>\n\n\n\n<p>At bart.sk, we design AI solutions to be useful, trustworthy, and\u2014above all\u2014safe. We respect data sensitivity, legal obligations, and user needs. <strong>Trust isn\u2019t something you leave to the model. It has to be built into the architecture from day one.<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Sources<\/strong><\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.darkreading.com\/cyber-risk\/shadow-ai-sensitive-data-exposure-workplace-chatbot-use\">https:\/\/www.darkreading.com\/cyber-risk\/shadow-ai-sensitive-data-exposure-workplace-chatbot-use<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.lakera.ai\/blog\/chatbot-security\">https:\/\/www.lakera.ai\/blog\/chatbot-security<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.europarl.europa.eu\/topics\/en\/article\/20230601STO93804\/eu-ai-act-first-regulation-on-artificial-intelligence\">https:\/\/www.europarl.europa.eu\/topics\/en\/article\/20230601STO93804\/eu-ai-act-first-regulation-on-artificial-intelligence<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/support.park.edu\/support\/solutions\/articles\/6000275001-using-ai-chatbots-privacy-and-information-security-considerations\">https:\/\/support.park.edu\/support\/solutions\/articles\/6000275001-using-ai-chatbots-privacy-and-information-security-considerations<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.theguardian.com\/world\/2018\/jan\/28\/fitness-tracking-app-gives-away-location-of-secret-us-army-bases\">https:\/\/www.theguardian.com\/world\/2018\/jan\/28\/fitness-tracking-app-gives-away-location-of-secret-us-army-bases<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/arstechnica.com\/information-technology\/2023\/02\/ai-powered-bing-chat-spills-its-secrets-via-prompt-injection-attack\/\">Ars Technica &#8211; AI-powered Bing Chat spills its secrets via prompt injection attack<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">AI Security FAQ: How to Protect Your Data When Using Artificial Intelligence<\/h2>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Why could an AI chatbot accidentally reveal sensitive information?<\/summary>\n<p>If the chatbot\u2019s inputs and access levels aren\u2019t properly configured, it might process and reuse data it shouldn\u2019t \u2014 like internal policies, personal information, or confidential files. That\u2019s why it\u2019s essential to follow the \u201cnarrow context\u201d principle and only give the AI what it truly needs to respond.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What is the AI Act and who does it apply to?<\/summary>\n<p>The AI Act is an EU law effective from August 2024. It classifies AI systems by risk level and introduces rules for transparency, data handling, safety, and auditability \u2014 especially for tools working with sensitive or regulated data. Businesses using AI must comply based on their use cases.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Is my AI system processing data outside the EU?<\/summary>\n<p>It depends on the model and where it\u2019s hosted. When handling personal data, it\u2019s best to use cloud services based in the EU \u2014 and ensure the data isn\u2019t being used to train the model. Hosting through AWS Frankfurt or Azure Europe, for example, aligns with both GDPR and the AI Act.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What is prompt engineering and how does it improve security?<\/summary>\n<p>Prompt engineering is the practice of designing clear, safe, and well-scoped inputs for AI systems. It ensures the model responds in the right tone, stays within defined limits, and only handles the data it should. This reduces the risk of inaccurate or inappropriate outputs.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Can AI misuse information from documents I upload?<\/summary>\n<p>If the model is not properly configured, it might retain or reuse sensitive parts of your documents. Never feed raw, unfiltered data into an AI tool \u2014 anonymize it or extract only what\u2019s necessary before it reaches the model.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What\u2019s the difference between a secure AI model and a typical AI tool?<\/summary>\n<p>A secure model includes clear data handling rules, EU-based data storage, access restrictions, encryption, output logging, and full auditability. In contrast, many public AI tools don\u2019t offer these guarantees, making them risky for use in regulated industries.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Can I track what the AI responded and why?<\/summary>\n<p>Yes. Professional solutions log who asked what, the exact prompt, the AI\u2019s response, and the data sources used. This kind of audit trail is critical for industries like healthcare, finance, and internal enterprise tools.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>Which AI models are considered safe for business use?<\/summary>\n<p>Recommended platforms include OpenAI via Azure, Google Vertex AI, AWS Bedrock, or private self-hosted models. These options offer strong guarantees for data security, encryption, transparency, and control over how information is handled.<\/p>\n<\/details>\n\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>What should I do before deploying AI in production?<\/summary>\n<p>First, define what data the AI will access, who can see it, how it will be filtered, and where it will be stored. Create internal security policies, anonymize sensitive inputs, use prompt templates, and enable logging for all outputs. Only then is it safe to go live.<\/p>\n<\/details>\n\n","protected":false},"excerpt":{"rendered":"AI chatbots and assistants are now helping answer customer questions, summarize data, and support administrators. They\u2019re always available,&hellip;","protected":false},"author":15,"featured_media":7584,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","csco_display_header_overlay":false,"csco_singular_sidebar":"","csco_page_header_type":""},"categories":[612,516,251],"tags":[826,835,837,838,827,830,822,833,828,831,773,825,834,821,836,832,829,823,839,824],"_links":{"self":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7583"}],"collection":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/comments?post=7583"}],"version-history":[{"count":2,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7583\/revisions"}],"predecessor-version":[{"id":7627,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/posts\/7583\/revisions\/7627"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media\/7584"}],"wp:attachment":[{"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/media?parent=7583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/categories?post=7583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bart.sk\/en\/wp-json\/wp\/v2\/tags?post=7583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}