Showing posts with label privacy. Show all posts
Showing posts with label privacy. Show all posts

Wednesday, July 15, 2026

The Great AI Memory Bank: How Your Data Gets Consumed (and How to Keep It Private)

In a nutshell (TL;DR)

To secure your data, consider these strategies:

  • Anonymization Pipelines: Replace sensitive identifiers with placeholders (e.g., [NAME]) before data leaves your network.
  • Zero Data Retention (ZDR): Mandate that providers process prompts in memory only, without saving logs or using data for training.
  • Local Models & Secure Orchestration: Keep data within corporate firewalls by running local models or utilizing secure protocols like MCP.
  • Targeted Encryption: Encrypt or mask sensitive prompt segments, such as using unique emoji sequences, to keep text unreadable to the provider.

It's been two weeks since I last posted! But I am back after the day job got in the way with a major project and a tight deadline. Last post I talked about the dangers of copy and paste and how easily information can end up in the hands of the LLMs

Whenever we type a prompt into an AI assistant, it is easy to imagine our words vanishing into the digital ether the moment we hit 'send'. But Large Language Models (LLMs) have incredibly sticky memories. While it is easy to accidentally slip sensitive data into an AI tool, it is equally important to understand what the AI actually *does* with that information once it has it. 


LLMs are designed to consume, process, and generate text, which means treating them like a private diary or a secure vault can lead to unintended, and highly public, consequences. Here is a look at how your confidential information gets consumed and redistributed by AI, and the best practices you can use to keep your private data safe.

The Consumption and Redistribution Cycle

When you feed Personally Identifiable Information (PII) or corporate secrets into an external LLM, you are exposing that data to several hidden risks:

Data Logging and Storage

Many AI providers log user prompts to monitor for abuse, debug their systems, or improve their overall services. Once your confidential data is stored on a third-party server, it becomes vulnerable to unauthorized access or potential data breaches on the provider's end.

Training Data Contamination

The prompt you submit today could inadvertently become the training data of tomorrow. Even though some enterprise providers have strict policies, there is always a baseline risk that PII from user prompts might be absorbed to further train or fine-tune future versions of the models.

Output Leakage and Regurgitation

LLMs are known to memorize information from their pre-training phases as well as from prompts processed during active inference. This can lead to a phenomenon where the model unintentionally regurgitates your sensitive information verbatim in its responses to completely different users. In fact, the OWASP Top 10 for LLMs lists "Sensitive Information Disclosure" as a critical vulnerability, noting that poor input handling can cause models to leak PII, business strategies, or system credentials directly into the public domain.

Defending Your Data: Precautions and Safe Methods

Fortunately, you do not have to unplug your routers and swear off AI entirely. There are several highly effective precautions and architectural strategies you can implement to interact with LLMs safely:

1. Build Anonymization and Mapping Pipelines

The most practical defense is to scrub the data before it ever leaves your network. By using tools like Named Entity Recognition (NER), you can automatically identify sensitive entities and replace them with generic placeholders—for example, swapping a real name and email for `[FIRSTNAME]` and `[EMAIL]`. This allows the LLM to understand the context of the prompt without ever seeing the raw data. On your end, you keep a secure, temporary map of these placeholders. When the LLM replies, a mapping-based de-anonymization module simply swaps the real information back in, ensuring 100% accuracy without exposing the data to the cloud.

2. Demand Zero Data Retention (ZDR)

If you rely on cloud-based AI vendors, mandate a "Zero Data Retention" agreement. Under ZDR, the provider processes your prompt and immediately returns the response without writing your request to any persistent storage, training queues, or logs. The data exists only in memory for the exact duration of the API call, effectively shifting your risk profile from uncertain to bounded.

3. Utilize Local Models and Secure Orchestration (e.g., MCP Servers)

For the highest level of control, organizations can run fine-tuned, smaller language models entirely within their own corporate firewalls, ensuring data never leaves the internal infrastructure. When connecting AI to internal databases, utilizing secure architectural patterns like the Model Context Protocol (MCP) can help safely orchestrate how context is provided to the AI without exposing raw data to public endpoints.

4. Targeted Encryption

For highly regulated environments, researchers are developing targeted encryption techniques. This involves encrypting only the sensitive sub-parts of a prompt, sometimes even translating them into unique sequences of emojis (like *EmojiCrypt*), so the text remains unreadable to humans and providers, but retains enough structure for the LLM to process. While computationally expensive and complex to implement, it represents the bleeding edge of prompt privacyLarge Language Models (LLMs) pose significant security risks because they can unintentionally memorize and redistribute sensitive information, such as PII and corporate secrets. Primary dangers include unauthorized data logging, training data contamination, and output leakage where models regurgitate your data to others.


AI models are incredibly eager to learn, which makes them fantastic assistants but terrible secret-keepers. By adopting smart anonymization pipelines, demanding strict retention policies, and securing your integrations, you can enjoy all the productivity benefits of generative AI without accidentally donating your private data to the world.


Tuesday, June 2, 2026

Fortifying the Digital Vault: A Wee Guide to AI Privacy

In a nutshell (TL;DR)...

The widespread use of generative AI tools introduces major security risks for private and confidential company information. Sensitive data can leak when prompts are retained for logging/training, employees paste data into unmanaged "Shadow AI" accounts (the "Copy/Paste Blind Spot"), or malicious "Prompt Injections" trick the model. Consequences are severe, including regulatory fines (GDPR/HIPAA), data breaches, and loss of competitive advantage. To stay secure, organizations must:

  • Anonymize sensitive data (PII) before using external LLMs.

  • Prioritize vendors offering Zero Data Retention (ZDR).

  • Banish "Shadow AI" by enforcing Single Sign-On (SSO).

  • Upgrade to action-centric Data Loss Prevention (DLP) that monitors copy/paste actions.

Apply the principle of least privilege and keep a human in the loop for critical actions.


The AI Privacy Guide: How to Keep Your Confidential Data Safe in the Age of LLMs

The company I work for has drummed into me the perils of letting slip any confidential information when working with AI applications, but just how important is it? My employer specifically lists the AI applications we are allowed to use when working with confidential information, so it’s a really important thing to bear in mind. Let’s have a look at what the problems are and how we can protect ourselves, our customers and our employers…

Everyone is officially living in the era of Artificial Intelligence. From drafting emails to analyzing complex datasets, generative AI and Large Language Models (LLMs) have seamlessly integrated into our daily workflows. In fact, nearly half of all enterprise employees are already using these tools. But amid all this newfound productivity, there is a crucial conversation we need to have: how are we protecting our private data and confidential company information?

While AI assistants are incredibly helpful, treating them like a private diary or a secure company vault can lead to serious risks. Let’s break down exactly how sensitive information can slip through the cracks, what the consequences are, and the best practices you should adopt to stay secure.

How Does Confidential Information Actually Go Public?

When you type a prompt into an external LLM, that data is processed by a third-party provider. If you aren't careful, sensitive information can be exposed in a few common ways:

Logging and Training Contamination

Many AI providers retain user prompts for a certain period to monitor for abuse, debug their systems, or even train future versions of their models. If you paste confidential data into a prompt, it could end up stored on the provider's servers or, worse, replicated in the model's future outputs.

The Copy/Paste Blind Spot

A staggering 77% of employees paste data directly into generative AI tools, and the vast majority of this activity happens on unmanaged personal accounts. Because this bypasses official corporate channels, IT and security teams have no visibility into what is being shared, creating a massive "Shadow AI" blind spot.

Prompt Injections

Malicious actors can use "prompt injections", carefully crafted inputs designed to manipulate the AI's behavior to trick the model into revealing sensitive information. This can lead to the AI accidentally exposing personally identifiable information (PII), confidential business strategies, or even system credentials. I’ve made a note to dig deeper on this subject for a later post…

The Uncomfortable Consequences of Data Leaks

The fallout from exposing sensitive data to an LLM is rarely a minor hiccup. When PII or corporate secrets leak, the consequences can be severe.

Regulatory Penalties

Mishandling personal data violates strict data protection regulations like GDPR and HIPAA. Failing to comply with these laws can result in massive legal and financial penalties.

Data Breaches and Loss of Trust

If a customer service chatbot or an internal AI tool inadvertently reveals private user details or passwords, it can lead to full-scale data breaches. This erodes user trust and severely damages your organization's reputation.

Loss of Competitive Advantage

Exposing proprietary business data or intellectual property can directly result in a loss of your competitive edge in the market.

Best Practices for Handling Sensitive Information with AI

Fortunately, you don't have to abandon AI to keep your data safe. By implementing a few strategic best practices, you can enjoy the benefits of LLMs while minimizing your risk.

1. Anonymize Before You Analyze

Before sending a prompt containing sensitive data to an external LLM, scrub the text of any PII. You can use automated tools to detect and replace names, emails, and phone numbers with generic placeholders (e.g., swapping a real name for [PERSON] or [EMAIL]). This allows the AI to understand the context of your prompt without ever seeing the raw, sensitive data.

2. Demand "Zero Data Retention" (ZDR)

If you are procuring AI tools for your company, prioritize vendors that offer "Zero Data Retention" agreements. Under a ZDR policy, the AI provider processes your prompt and immediately returns the response without writing your data to any persistent storage, logs, or training queues. This ensures your data exists only in memory for the duration of the request. I think this is what my employer might have in place for the applications I am allowed to use.

3. Banish "Shadow AI" and Enforce SSO

Employees often use unmanaged personal accounts to access AI tools, completely bypassing enterprise security. To regain control, organizations must restrict the use of personal accounts for business-critical apps and enforce Single Sign-On (SSO) across all corporate logins.

4. Upgrade Your Data Loss Prevention (DLP)

Traditional Data Loss Prevention tools are heavily focused on file uploads, but today's sensitive data usually leaks when employees copy and paste text directly into AI prompts. Organizations need to shift to "action-centric" DLP policies that monitor file-less data transfers and enforce controls directly at the web browser level.

5. Keep a Human in the Loop and Limit Privileges

Finally, never give an AI unchecked autonomy. Apply the principle of "least privilege" by ensuring your AI applications only have access to the specific data sources they absolutely need. For high-impact actions, like modifying files or handling highly sensitive records, always require human approval before the AI can proceed.

AI is a powerful collaborator, but it is ultimately up to us to set the boundaries. By treating generative AI platforms with the same security rigor as any other enterprise tool, we can innovate quickly without putting our most valuable data on the line.


Next week let’s take a shifty at this “prompt injection” malarky and see how we can protect ourselves from that…


The HTTP of AI Shopping: Inside UCP, MCP, and the Open Protocol Stack

In a nutshell (TL;DR)... This document explores the shift toward "Agentic Commerce," where AI agents independently execute shoppin...