Data masking

Replacing the personal or confidential values in a prompt with placeholders before it leaves for a model, and putting them back in the answer. Anonymisation, where the values are gone for good, and pseudonymisation, where they return, are the two forms; which fields count as sensitive is the application's question, not the module's.

Overview

InBTP/BAIPassessed
SAP SHIPS

A module of the orchestration service in SAP AI Core: the prompt is masked before the model sees it, by anonymisation or pseudonymisation, and with pseudonymisation the placeholders in the response are unmasked again.

Not covered: At the prompt text. The module works on what is in the prompt it is handed, with the entity types chosen per call; anything a model reaches by another route is outside it.

Every provider behind this door is SAP's, so core-only is a assessment of the corpus rather than a quote from the core.

THE COMMUNITY ADDS

No community artifact is documented here.

InCAPassessed
SAP SHIPS

@sap-ai-sdk/orchestration carries the same masking module into a Node.js or CAP service, configured per call and per fallback configuration.

Not covered: At the call. What the SDK masks is what the orchestration service masks; the fields the application chooses to send are its own decision.

THE COMMUNITY ADDS

cap-llm-plugin does the anonymisation in SAP HANA before the prompt leaves the database, which is a different place to do the same job.

Artifacts3

Group by3 of 3 artifacts
ArtifactSignals
CDS plugins1
cap-llm-pluginGenerative AI in CAP with fields anonymised through SAP HANA
Signals
Functional boundary
Packages1
@sap-ai-sdk/orchestrationOrchestration Service client for templating, grounding and masking
Signals
none
Services1
SAP AI CoreAI runtime on BTP with the Generative AI Hub
Signals
none

Content2

Group by
Piece, what it offers
Beyond Basic AI Error Handling in SAP CPI - A Rules-First Architecture with HANA Cloud Learning
SAP Community, Krishna_Karthik, Blog
Data Masking
SAP BTP AI Best Practices, SAP, DocThe reasoningA reference
Data Masking
SAP BTP AI Best Practices, SAP, DocThe reasoningA reference

Seen working2

ArtifactSignals
Samples2
SAP BTP AI Best Practice Demo - Data Masking - CAPCAP samples generating email through SAP AI Core with anonymization
Functional boundary
sap-btp-ai-best-practicesSample implementations for AI-powered applications on SAP BTP
none

Details

Coverage
statecore only, BTP/BAIP
assessed
state in CAPcore and community, assessed
also inCAP
For your agent