---
title: "Prompt redaction"
url: https://port1.ai/learn/glossary/prompt-redaction/
description: "Prompt redaction replaces sensitive values in an AI prompt with placeholders before the prompt reaches a model. What it means, how it differs from masking."
author: "Jason Makevich, CISSP"
updated: 2026-11-14
---
# Prompt redaction

Prompt redaction is replacing sensitive values in an AI prompt, like names or account numbers, with placeholders before the prompt reaches a model, so the model can still help without seeing the original values.

Prompt redaction is replacing sensitive values in an AI prompt, like names or account numbers, with placeholders before the prompt reaches a model, so the model can still help without seeing the original values. It helps cut [AI data leakage](https://port1.ai/learn/glossary/ai-data-leakage/) while people keep using AI.

## How does prompt redaction work?

Prompt redaction works in the background, between the person and the model. A tool scans the prompt and any attached files, finds the sensitive values, and swaps each one for a placeholder before sending the prompt on.

For example, a prompt asking for help with a letter to "Jane Smith about account 4417" can go to the model with a placeholder for the name and another for the account number. The model drafts the letter around the placeholders.

When the answer comes back, the tool can put the real values back for the person, a step called [rehydration](https://port1.ai/learn/glossary/rehydration/).

## What's the difference between redaction and masking?

Redaction replaces a sensitive value with a placeholder, and masking hides or generalizes it. In [Liminal](https://port1.ai/liminal/), either way the value is protected before the prompt reaches the model, and Liminal restores the protected details for the user in the response.

Liminal admins set each type of sensitive data to mask, redact, warn or block. Warn alerts the person to sensitive terms and still lets the prompt go, and block keeps the prompt from being sent. The policy set for each data type decides what a model sees.

## How does Liminal handle prompt redaction?

Liminal detects sensitive data in prompts and files, protects it before it reaches a model, and restores it in the response. As of November 2026, it covers personal (PII), health (PHI) and payment card (PCI) data and intellectual property with more than two dozen built-in data types.

Admins can also add custom terms, like client names, and set a policy for each one.

Policies are set by data type for each model, and models can be assigned to the whole organization, specific teams or individuals, so different teams can run different rules.

For the full picture, see [how Liminal keeps sensitive data out of AI models](https://port1.ai/liminal/data-protection/).

[Book a Liminal demo](https://calendly.com/d/ctjs-76p-gyd/demo-of-liminal-for-msps?utm_source=port1.ai&utm_medium=website&utm_content=learn-glossary-prompt-redaction)

## Related

- [How Liminal keeps sensitive data out of AI models](https://port1.ai/liminal/data-protection/): Liminal detects sensitive data in prompts and files, protects it by policy before it reaches a model, and restores it in the response. Admins set the action for each data type, so clients get complete answers while protected values stay out of public AI models.
- [Liminal for MSPs](https://port1.ai/liminal/): Liminal for MSPs gives your clients a Secure AI Workspace: unlimited use of the latest AI models from OpenAI, Anthropic, Google, Perplexity and xAI, with sensitive data protected before any prompt reaches a model. PORT1 launched Liminal for MSPs, its official partnership with Liminal.
- [Rehydration](https://port1.ai/learn/glossary/rehydration/): Rehydration is the step where an AI data protection tool restores protected values in a model's response, so the person gets a complete answer after sensitive data was protected on the way in.
- [AI data leakage](https://port1.ai/learn/glossary/ai-data-leakage/): AI data leakage is when sensitive information, like client records, patient details or account numbers, ends up in an AI tool or model outside the organization's control, usually through a prompt or an uploaded file.
