{"ref":"capability:data-masking","page":"/capabilities/data-masking","json":"/capabilities/data-masking.json","generated":"2026-10-26","drafted_with_ai":true,"entity":{"id":"data-masking","name":"Data masking","domain":"ai-and-agents","ecosystems":["btp","cap"],"universal":true,"description":"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.","short":"Replacing personal values in a prompt with placeholders","core_coverage":{"state":"core-only","assessed_at":"2026-09-14","what_core_does":"A module of the orchestration service in [SAP AI Core](artifact:btp-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.","where_it_stops":"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.","sources":[{"url":"https://btp-ai-bp.docs.sap/docs/technology/sap-ai-launchpad","title":"SAP AI Launchpad — SAP BTP AI Best Practices, Technologies","checked":"2026-09-14","quote":"This feature enables data masking through anonymization or pseudonymization before passing it into a generative AI model. If pseudonymization is used, masked data in the model's response will be unmasked."},{"url":"https://btp-ai-bp.docs.sap/docs/technical-view/generative-ai/plain/data-masking","title":"Data Masking — SAP BTP AI Best Practices","checked":"2026-09-14","quote":"AI Core supports data masking as a feature."}],"note":"Every provider behind this door is SAP's, so core-only is a assessment of the corpus rather than a quote from the core."},"coverage_by_ecosystem":{"cap":{"state":"core-and-community","assessed_at":"2026-09-14","relationship":"unassessed","what_core_does":"[@sap-ai-sdk/orchestration](artifact:sap-ai-sdk-orchestration) carries the same masking module into a Node.js or CAP service, configured per call and per fallback configuration.","where_it_stops":"At the call. What the SDK masks is what the orchestration service masks; the fields the application chooses to send are its own decision.","community_adds":"[cap-llm-plugin](artifact: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.","sources":[{"url":"https://sap.github.io/ai-sdk/docs/js/orchestration/chat-completion","title":"Orchestration Chat Completion — SAP Cloud SDK for AI (JavaScript)","checked":"2026-09-14","quote":"This includes system prompts, content filtering rules, data masking settings, grounding configurations, and other orchestration module settings."}]}},"drafted_with_ai":true},"sap_delivery":{"door":"btp","all":{"built_in":[],"documented_pattern":[],"announced":[],"packages":[{"ref":"artifact:btp-ai-core","name":"SAP AI Core","json":"/artifacts/btp-ai-core.json"}]},"by_flavor":{}},"edges":{"use_cases":[],"shared_tasks":[],"related_tasks":[],"options":[{"ref":"artifact:sap-ai-sdk-orchestration","name":"@sap-ai-sdk/orchestration","json":"/artifacts/sap-ai-sdk-orchestration.json","ecosystem":"cap","origin_ring":"sap-official"},{"ref":"artifact:cap-llm-plugin","name":"cap-llm-plugin","json":"/artifacts/cap-llm-plugin.json","ecosystem":"cap","origin_ring":"independent"},{"ref":"artifact:btp-ai-core","name":"SAP AI Core","json":"/artifacts/btp-ai-core.json","ecosystem":"btp","origin_ring":"sap-official"}],"samples":[{"ref":"artifact:sap-samples-btp-ai-bp-data-masking-cap","name":"SAP BTP AI Best Practice Demo - Data Masking - CAP","json":"/artifacts/sap-samples-btp-ai-bp-data-masking-cap.json"},{"ref":"artifact:sap-samples-sap-btp-ai-best-practices","name":"sap-btp-ai-best-practices","json":"/artifacts/sap-samples-sap-btp-ai-best-practices.json"}],"explained_by":[{"ref":"content:beyond-basic-ai-error-handling-in-sap-cpi-a-rules-first-architecture-with-hana-c","name":"Beyond Basic AI Error Handling in SAP CPI - A Rules-First Architecture with HANA Cloud Learning","json":"/content/beyond-basic-ai-error-handling-in-sap-cpi-a-rules-first-architecture-with-hana-c.json"},{"ref":"content:btp-ai-bp-data-masking","name":"Data Masking","json":"/content/btp-ai-bp-data-masking.json"}],"normative_context":[]}}