Tech, ExplainedNetworking, infrastructure and security
Part

Data masking

All but the last four digits, hidden.

INSIDE: DATA PROTECTIONHOW IT WORKS · AI SUMMARIES OF SUPPORT CHATS AT A BROADBAND PROVIDERAbout 50,000support chats amonth are sentfor AI summariesThe maskingsoftware readsone chat andfinds 6sensitive valuesEach isreplaced: thename becomes[NAME_1],the phonenumber [PHONE_1]The AI modelsummarises thechat using onlythe placeholdersOn the way back,the name is putback for thesupport teamThe phone andcard numbersstay maskedALSO TALKS TOLLM guardrails↗ GENERATIVE AI APPLICATIONSRetrieval-augmentedgeneration (RAG)↗ GENERATIVE AI APPLICATIONSData security posturemanagement (DSPM)Model deployment platform↗ GENERATIVE AI APPLICATIONSINSIDE: DATA PROTECTIONHOW IT WORKS · AI SUMMARIES OF SUPPORT CHATS AT ABROADBAND PROVIDERAbout 50,000 supportchats a month are sentfor AI summariesThe masking softwarereads one chat and finds6 sensitive valuesEach is replaced:the name becomes[NAME_1], the phonenumber [PHONE_1]The AI model summarisesthe chat using onlythe placeholdersOn the way back, the nameis put back for thesupport teamThe phone and cardnumbers stay maskedALSO TALKS TOLLM guardrails↗ GENERATIVEAI APPLICATIONSRetrieval-augmentedgeneration (RAG)↗ GENERATIVEAI APPLICATIONSData securityposturemanagement (DSPM)Modeldeployment platform↗ GENERATIVEAI APPLICATIONSINSIDE: DATA PROTECTION · AI SUMMARIES OFSUPPORT CHATS AT A BROADBAND PROVIDERAbout 50,000 support chats a month aresent for AI summaries↓The masking software reads one chat andfinds 6 sensitive values↓Each is replaced: the name becomes[NAME_1], the phone number [PHONE_1]↓The AI model summarises the chat usingonly the placeholders↓On the way back, the name is put back forthe support team↓The phone and card numbers stay maskedALSO TALKS TOLLM guardrails↗ GENERATIVE AI APPLICATIONSRetrieval-augmented generation (RAG)↗ GENERATIVE AI APPLICATIONSData security posture management (DSPM)Model deployment platform↗ GENERATIVE AI APPLICATIONS
Data masking replaces six sensitive values in a support chat with placeholders before the AI model reads it, and puts back only the customer's name in the summary for the support team.
opens a page inside this one a page in the same scene a page in another scene a concept page a label only, with no page

Data masking is the hiding of part or all of a sensitive value, so that a person or a program sees only what it needs. A card number shown as XXXX XXXX XXXX 4821, with only the last four digits visible, is the best-known example. Masking is used in three main places: on screens, in copies of data made for testing, and, more and more, in data sent to AI models.

On screens, masking is applied as the data is shown, and the stored value does not change. A support agent sees the masked value, while a manager with more rights may see the full value. This is called dynamic masking. In test copies, the real values are replaced permanently before developers receive the copy. A real name becomes a made-up name, and a real phone number becomes a made-up number in the same format. This is called static masking. Developers need realistic data to test their code, but they do not need real customers.

The newest place is AI. Consider a broadband provider in Visakhapatnam that wants an AI model to summarise its customer-support chats, about 50,000 a month. The chats contain customers' names, phone numbers and email addresses, and sometimes card numbers that customers typed in. The masking software reads each chat before it is sent to the model. In one chat, it finds 6 sensitive values, and replaces each one with a placeholder, such as [NAME_1] or [PHONE_1]. The model writes its summary using the placeholders. The software keeps the list of placeholders for that chat. So, on the way back, it can put the customer's name into the summary for the support team, who are allowed to see it. The phone and card numbers stay masked. The AI model never receives any of the real values.

This matters because data sent to an outside AI model leaves the company's control, and a model may repeat what it was given. The same masking is applied to documents before they are stored for retrieval-augmented generation (RAG), the method by which a model looks up a company's documents to answer questions.

Masking differs from data tokenisation. An approved system can swap a token back for the real value. A value masked on a screen or in a test copy usually cannot be recovered, because the hidden digits are gone. So masking suits data that people need to recognise, not data that a system must use later. Masking works next to LLM guardrails, which check a model's inputs and outputs for attacks. To find the values to mask in databases, the tool can use the labels from data security posture management (DSPM).

Tech, Explained is a part of ingrid.fyi. Every page explains one piece of technology in plain words.