Netskope LogoNetskope Logo
  • Security Services
  • AI Services
  • Networking Services
  • Analytics Services
  • Integrations
  • getting-started.svgGetting Started
    • Support
    • Community
    • Netskope.com
    © 2026 All Rights Reserved. Netskope Inc.
    Home
    AI Gateway
    Configuration
    AI Gateway Policies
    Redact Sensitive Data

    Redact Sensitive Data

    AI Gateway uses DLP On Demand (DLPoD) to detect and redact sensitive information in LLM prompts and responses before sending them to upstream AI providers or returning them to clients. It replaces sensitive information with a placeholder, ensuring data like credit card numbers, PII never leave your environment as plain text.

    Example

    DirectionContent
    Original promptCredit card John Smith 5115-0018-0060-6500 2/28/2025 123
    After redactionCredit card John XXXXX XXXX-XXXX-XXXX-XXX X/XX/XXXX 123

    Before you start

    Before enabling content redaction, ensure these requirements are met:

    RequirementDetails
    DLP On Demand versionVersion 138 or later.
    AI Gateway versionAI Gateway 1.6 or later
    DLP licenseAdvanced DLP (DLP-L3)
    DLP entities configuredConfigure redaction at the entity level in your DLP profiles. See DLP Entity for configuration details.
    Redaction uses DLP entities and profiles. Ensure your AI Gateway DLP policy’s profiles have redaction enabled for the relevant entities before activating Redact Sensitive Data.

    How Redaction Works

    When a DLP policy with Redact Sensitive Data enabled matches traffic, AI Gateway sends the prompt or response to DLPoD for inspection. DLPoD detects sensitive data per your DLP profiles and returns a redacted version, which AI Gateway forwards instead of the original. The LLM provider receives a clean prompt; the client receives a clean response.

    The redaction method (mask, FPE, or hash) depends on your DLP entity configuration. See DLP Entity.

    Redaction applies only to text-based prompts and responses. File content, SSE streaming responses, and MCP traffic are not supported in this release.

    Configure Redact Sensitive Data in a DLP Policy

    The Redact Sensitive Data checkbox appears when you select Monitor as the action in a DLP policy. Redaction lets traffic proceed, replacing sensitive content before forwarding.

    The Block and Replace actions do not support Redact Sensitive Data.
    1. Log in to the Netskope tenant UI and go to Policies > AI Gateway.
    2. Click the DLP tab, then click New Policy.
    3. Set the match criteria — Token Group, AI Provider and Model, and Activity. Select Prompt and/or Response to specify which direction to redact.
    4. Under Profile, select the DLP profile with redaction configured for the entities you want to protect.
    5. Under Action, select Monitor.
    6. Select the Redact Sensitive Data checkbox.
    1. Set the Content Redaction Failure behavior:
    2. Monitor (default) — if redaction fails, allow the traffic and log the failure.
    3. Block — if redaction fails, drop the connection.
    4. Enter a policy name and description, select the policy group and position, then click Save and apply changes.

    Redaction Failure Behavior

    If you enable Redact Sensitive Data, but AI Gateway cannot complete redaction, it performs the configured fallback action.

    Fallback ActionBehavior
    Monitor (default)AI Gateway forwards traffic without redacting it and logs a redaction status of Failed (Fall-back Action: Monitor) in Skope IT.
    BlockAI Gateway drops the connection and returns an error to the client.
    This fallback applies whenever redaction fails, including network errors and DLP timeouts, not only version incompatibility.

    Monitoring Redaction Activity in AI Gateway Events

    AI Gateway records the redaction outcome in Skope IT > AI Gateway Events. Each event matched by a DLP policy with redaction enabled includes two redaction status fields — one for the prompt and one for the response:

    FieldTracks
    Redaction Status (Prompt)Redaction outcome for the prompt
    Redaction Status (Response)Redaction outcome for the response

    Each field displays one of the following values:

    Status valueMeaning
    SuccessfulRedaction was applied. Forwarded content has sensitive data replaced.
    Failed (Fall-back Action: Monitor)Redaction failed. AI Gateway forwarded the traffic without redacting it.
    Failed (Fall-back Action: Block)Redaction failed. AI Gateway dropped the connection.
    N/A – No entities foundDLP found no matches for the configured profiles. Content was not redacted.

    In this Topic
    • Redact Sensitive Data