Can NeMo Guardrails help keep card data out of LLM conversations for PCI DSS?
NeMo Guardrails can add a detection and masking control that stops primary account numbers from reaching a model, appearing in its answers or landing in traces, but it cannot make an assistant or its environment PCI DSS compliant on its own. The standard that applies is PCI DSS v4.0.1, the only active version since PCI DSS v4.0 was retired on 31 December 2024. The PCI Security Standards Council maintains the standard but does not enforce it. The individual payment brands decide which entities must validate, and they run any enforcement. Your QSA or acquirer will judge the assistant as part of your cardholder data environment (CDE) and its scope, so the first decision is whether the assistant can receive cardholder data at all, and whether it could affect the security of a system that does.
Treat the guardrail as one control inside a wider program. Input rails can screen user messages for card-number patterns before the model sees them, output rails can check responses before users see them, and retrieval rails can filter knowledge-base chunks. Trace and logging settings must be checked separately, because a masked prompt can still be stored in full by a tracing backend. Confirm with your QSA or acquirer which controls they will accept, whether masking that fails open is acceptable in their view, and how the assistant's data flows affect scope. Document the design, your test results and your change approvals, since those records are what assessors sample.
DeployOpen plans, implements, tests and documents this kind of setup in infrastructure you control, and prepares the systems and evidence an assessment will ask for. DeployOpen does not issue Reports on Compliance, Attestations of Compliance or certifications; a Qualified Security Assessor or your acquirer makes that determination. Before you start, ask what the assessor expects in the written scope, and whether the PCI SSC's PCI Data Security Standard requirements are being met through the defined approach or a customized approach, which must be documented and justified separately.
Which PCI DSS requirement areas NeMo Guardrails touches, and the configuration each needs
This table maps PCI DSS requirement areas to what NeMo Guardrails can do, what configuration each needs, and what surrounding infrastructure must supply. Read the middle column for the guardrail role and the last column for the controls that sit outside the guardrails. Most rows depend on infrastructure, not on the guardrails alone.
| Requirement area | NeMo Guardrails role and configuration | Supported by surrounding infrastructure |
|---|---|---|
| Protecting stored cardholder data | Retrieval rails and output rails can block or mask primary account numbers in RAG chunks and responses, but they do not locate or encrypt data at rest in your stores | Data discovery scans, encryption at rest, key management, and retention rules for knowledge bases and vector stores |
| Protecting cardholder data in transit | Guardrails server endpoints should only be reached over TLS configured at the gateway or ingress, with no card data written to HTTP request logs | TLS termination, mutual TLS between services, and network segmentation around the guardrails server |
| Masking card data in prompts and responses | Input rails and output rails run a card-number detector such as a regex rail or PII detector, with block or mask actions defined in config.yml and Colang files | Test card numbers, Luhn-check validation, and documented rail outcomes that an assessor can replay |
| Keeping card data out of traces and logs | Trace and log settings must exclude raw prompt and response content, since blocked-request debugging can otherwise store card numbers | Log pipeline filters, retention limits, and access restrictions on the observability stack |
| Access control | Configuration folders, action code and admin endpoints need restricted write access, and the server should sit behind authenticated callers | Identity provider, role-based access, and service accounts for applications that call the guardrails server |
| Logging and monitoring | Block events from rails should be emitted as structured events that record the rail, the policy and the time, without the card data itself | Central log retention, alerting on repeated blocks, and review records kept by the security team |
| Secure configuration changes | Version config.yml, Colang and action files in source control, and require review before a rail change reaches production | Change approvals, deployment pipelines, and records showing who changed which rail and when |
| Vulnerability testing and rail evaluation | Build test sets with synthetic card numbers that cover formats, separators and split values, and rerun them after each release | Penetration testing of the application, scanning of the container image, and independent assessor review |
Configuring card number detection in NeMo Guardrails
This sequence turns a PAN detection requirement into a tested NeMo Guardrails configuration that covers prompts, responses, retrieved content and trace output. Each step produces an artifact your security and compliance reviewers can inspect.
Define the card data types in scope
The security or compliance lead, with the payment team, writes down which card number formats the assistant may encounter, such as PANs typed by users, card numbers pasted into tickets, or PANs stored in knowledge base documents and returned by retrieval. Record which inputs, outputs and data sources can carry them, and whether sensitive authentication data such as CVV values is also in scope. Done when the list is approved and each data path has an owner.
Choose the detection method and validate it
Select how PANs will be found: regex rails for known formats, a self-hosted PII detector, or a third-party detector, and confirm each option against your own data before relying on it. Ask the vendor or project which PAN formats and Luhn validation the detector supports, since the NeMo Guardrails PII options are documented separately and must be checked for card data specifically. Done when a written decision records the method, its known misses and the reviewer who accepted them.
Place input, output and retrieval rails
The developer adds input rails that run before the model call, output rails that run on each model response, and retrieval rails that inspect RAG chunks before they enter the prompt. Keep these in the config.yml file alongside any Python actions and Colang files. Done when a test request containing a synthetic PAN is blocked or masked at each of the three points and the blocked-event record appears in the logs.
Configure trace capture to exclude raw PANs
Before any traces leave the application, the engineer reviews what NeMo Guardrails and any connected observability tools record, and sets capture so that rail inputs and outputs are stored only after masking, with raw content excluded from logs and traces. Confirm the setting in the version you run, since trace options change between releases. Done when a synthetic PAN sent through the assistant appears nowhere in the stored traces, logs or metrics labels.
Pin the runtime and configuration versions
The platform team pins the nemoguardrails release at 0.25.0 and a supported Python interpreter, which is 3.11, 3.12 or 3.13 for this release, in the build file and container image. Store the config.yml, Colang files and actions in version control with a reviewed change process. Done when a clean build from the repository reproduces the same installed versions and the same test results.
Confirm the Colang version and migration review
Colang 1.0 is the default, so the team states the Colang version explicitly in the configuration. If the project is moving to Colang 2.x, the nemoguardrails convert tool can produce a starting point, but NVIDIA states that converted configurations still need manual review. The reviewer compares converted rails against the approved list from step one and reruns the test set. Done when the reviewed configuration and its sign-off are stored with the release record.
Test with synthetic card numbers
The QA or security engineer builds a test set of synthetic card numbers, which are generated test values that do not belong to real accounts, and sends them through each input, output, retrieval and tool path, including formats with separators and numbers split across messages. Record detections, misses and false positives, then fix and retest until the agreed threshold is met. Done when the test report shows results for every path and is filed with the configuration version it covers.
Record the scope evidence for assessors
The compliance lead documents where the guardrails sit relative to the cardholder data environment, which systems can still receive PANs before the rails run, and which controls remain outside NeMo Guardrails. Confirm the scope conclusion with your Qualified Security Assessor or your acquirer, since PCI DSS scoping decisions belong to the assessor and the payment brands. Done when the scope note, the test report and the configuration version are linked together for the next assessment.
Evidence assessors can be shown from a guardrail deployment
A PCI DSS assessor will ask how card data is kept out of LLM prompts, responses and traces, and how you know the controls still work. The items below connect the guardrail configuration to the evidence that shows it, and each one should be retained as part of the scope and change record. Whether this evidence is sufficient is the assessor's decision, not the vendor's.
Versioned configuration under change control
Keep the config.yml, Colang files and any Python actions in source control, with every change to a masking or blocking rail going through a reviewed pull request. The assessor will look for a clear history showing who approved each change, when it reached production and which build was running. Confirm that the deployed server image and configuration folder can be matched to a specific commit. Colang 1.0 and 2.0 configurations need the same treatment, and converted files should carry the review record from the migration.
Test results with synthetic PANs
Run the input, retrieval and output rails against synthetic card numbers that pass a Luhn check but belong to no real account, and record whether each one was blocked or masked. Keep the test inputs, expected outcomes and actual results together so a rerun can be compared with the original. Include adversarial variants such as spaced, hyphenated and split digits, and document the misses as well as the catches. Results should be tied to the configuration version that produced them.
Trace and log samples showing masked values
Collect samples from the tracing and logging pipeline that show a card number entering a conversation and appearing only in masked form. The assessor is checking that raw primary account numbers do not reach trace stores, log indexes or monitoring tools. Record the sampling method, the date range and the redaction settings in force at the time. Confirm that the samples come from the production path and not only from a test environment.
Access and administration records for the server
Retain records of who can change guardrail configurations, deploy the server, read traces and view unmasked content, along with the logs of those actions. Show how these roles connect to your identity provider and where administrative credentials are stored. Access to the guardrails server is part of the wider system that handles cardholder data, so these records belong in the same review cycle as other in-scope systems. Confirm the retention period for these logs with your assessor and your own policy.
Scoping rationale document
Write a document that states which components touch cardholder data, which ones are excluded from the cardholder data environment and why. Explain whether the guardrail server is in scope, and if it is not, show the technical controls that keep card data from reaching it. The document should reference the requirements you relied on and be reviewed whenever the architecture changes. Ask your Qualified Security Assessor how they expect this rationale to be presented before you finalize it.
Which deployment path to choose after the microservice sunset
The first decision for a cardholder data project is which NeMo Guardrails deployment path you will build on, because the microservice that many teams would have chosen is no longer supported. NVIDIA's NGC catalog says the NeMo microservices have been sunset as of October 1, 2026, with no new releases, and NVIDIA's archived NeMo Microservices documentation says all new development has moved to NeMo Platform and directs existing users to their NVIDIA account team. Do not freeze a design that depends on the NGC container for card detection or masking without written confirmation of what NVIDIA supports from here.
There are three realistic options to compare. The first is the open-source Python library, nemoguardrails, licensed under Apache 2.0, which your application calls directly and which can run inside an environment you control. The second is a self-hosted guardrails server that loads configurations from a folder and exposes an HTTP API, built from the Dockerfile the project provides. The third is NeMo Helix, an Apache-2.0 control plane that runs NeMo Guardrails as an inference gateway middleware plugin applying guardrail configurations to model endpoints. Helix suits a platform team that wants one enforcement point in front of several models, but its documentation should be checked against your own gateway, logging and network design before you rely on it for scope decisions.
Before the cardholder data environment design is frozen, ask NVIDIA which path it supports for your use, whether any NeMo Platform or NVIDIA AI Enterprise terms apply, and what security patches and release commitments cover each option. Record the answers with the version you tested, such as the 0.25.0 release that requires Python 3.11, 3.12 or 3.13. The answer determines where the masking point sits and which systems your assessor will treat as in scope.
Questions buyers ask before adding card data guardrails to an LLM
Do NeMo Guardrails make an LLM application PCI DSS compliant?
No. NeMo Guardrails is a library that can detect and mask card data in prompts, responses and retrieved content, but it does not make an application or environment compliant. PCI DSS applies to the whole cardholder data environment (CDE) and to every entity that stores, processes or transmits cardholder data, so the assessed scope covers your people, processes, network, logging and third parties as well. The guardrails are one control among many. Whether the system is in scope, and how its controls are validated, is decided by your assessor and the payment brands that apply to your organization, using the PCI SSC's documented assessment templates.
How much effort does card data masking in NeMo Guardrails take?
The effort depends on how much surface the guardrails must cover. The main drivers are the data types to detect (primary account numbers alone, or also related data such as expiry dates and security codes, with the handling each one needs), the number of entry points such as chat interfaces, APIs and batch jobs, the retrieval sources feeding RAG chunks, the design of traces and logs that must stay free of card data, and the testing needed to show the rails work on realistic inputs. Each entry point and source adds configuration, test cases and review. Ask any partner for a written scope that lists these items before comparing quotes.
What does the work need from our team?
Expect to supply several people and access points before build work starts. Data owners must confirm which card fields exist in prompts, documents and logs, and what each application is allowed to keep. Your QSA or internal assessor should be engaged early so the design matches the evidence they will sample. Test data must be agreed, including test card numbers that are not live cardholder data, and handled under your own rules. The team also needs access to the target infrastructure, including the cloud accounts, clusters, log stores and model endpoints where the guardrails will run, plus named owners for change approval.
Can our own engineers build this without a partner?
Yes, if you have engineers who can work in Python and who understand PCI DSS well enough to design the controls. NeMo Guardrails 0.25.0 requires Python 3.11, 3.12 or 3.13, and it is configured with a config.yml file, optional Python actions and Colang files. The harder part is usually the compliance side: deciding which data is in scope, how logs are kept clean, and what evidence will satisfy the assessor. Many teams split the work, keeping application code in-house while bringing in outside help for the security design and the assessment evidence.
How long does a card data guardrail project take?
No reliable duration can be given without a defined scope, so treat any single figure with caution. Timing depends on the number of entry points, the data types to cover, the retrieval sources, the depth of trace and log review, the testing cycles, and how quickly your data owners and assessor respond. Work that touches one chat interface with known fields is very different from a multi-channel assistant with several RAG sources. Ask for a timeline tied to written deliverables and milestones, and confirm which dependencies sit with your team.
Does NeMo Guardrails have license costs?
The library itself is licensed under Apache 2.0, which permits use of the open-source code without a license fee. The costs that remain are the work to design, configure, test and operate it, the infrastructure that runs it, and any third-party detection or moderation services you choose to call. Also confirm the status of NVIDIA's hosted or microservice offerings before relying on them, because NVIDIA has announced the sunset of the NeMo Guardrails microservice. Review the license terms of any model or external service you add, since those can differ from the library license.
Does DeployOpen issue a PCI DSS certificate for our guardrails?
No. DeployOpen does not issue audit reports, attestations or certifications. We can plan and implement guardrails in infrastructure you control, prepare configurations, logs and test evidence, and support your assessor's review. Validation under PCI DSS is documented through a Report on Compliance completed by a Qualified Security Assessor, or a Self-Assessment Questionnaire, each with an Attestation of Compliance. Certificates are not recognized as validation, so plan the assessment with your QSA or assessor from the start.
How DeployOpen works on this
DeployOpen approaches NeMo Guardrails for PCI DSS as a scoped engineering project. We agree on which card data flows are covered, build and test the detection and masking rails in infrastructure you control, and hand over configurations and evidence your QSA and security team can review. We do not issue PCI DSS assessment reports or attestations.
How we scope
- Map every path where card data can enter prompts, responses, retrieved chunks and traces before any rail is designed.
- Agree in writing which data flows, models, tools and logs are in scope, and which are excluded and why.
- Record the scope boundary with your QSA early, since it determines which systems fall inside the cardholder data environment.
How we build
- Configure input, output, retrieval and execution rails for primary account number detection and masking in your chosen deployment.
- Set trace and log capture so card data is masked or excluded before it reaches your observability stack.
- Test detection against card-like test data, including formatting variants, and retest after every configuration change.
How we hand over
- Deliver versioned rail configurations, Colang and action code, and the test cases used to verify them.
- Document the data flows, scope rationale and control mapping in a form your assessor can sample.
- Walk your engineering and compliance teams through operation, alert handling and change control before handover.
How we support
- Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts.
- Ongoing support, upgrades, NeMo Guardrails version changes and continuous testing are available as a retainer.
- Ask any provider, including DeployOpen, to confirm in the quote which assessment steps remain with your QSA and payment brands.

