QueryShield

How does PCI DSS apply to AI text-to-SQL pipelines?

PCI DSS v4.0 (mandatory March 2025) governs any system that stores, processes, or transmits cardholder data (CHD). An LLM text-to-SQL pipeline querying a CHD-adjacent database is in scope if the agent can return CHD or sensitive authentication data (SAD). Relevant requirements:

Realistic posture: keep the LLM out of the CHD scope wherever possible (use tokenized references), and where it must touch CHD-adjacent data, enforce minimum-necessary at the AST layer with QueryShield + masked views + comprehensive logging. The QSA's first question will be "show me the access control list for this agent" — your policy file *is* the answer.