What the LLM Guard Sensitive scanner does in model output
If your LLM Guard deployment returns model answers to users or to downstream systems, the Sensitive output scanner is the control that checks those answers for personal data before they leave. It reuses the detection mechanisms of the Anonymize scanner, so the same kind of entity recognition that protects prompts is applied to model output. You can limit it to specific entity types such as PERSON and EMAIL, which keeps it focused on the data your organization actually cares about, and you can configure it to redact matches rather than only flag them. Confirm in the LLM Guard Sensitive documentation which entity names your installed version accepts and how redaction replaces each match, because the exact labels and behavior are what your tests will exercise.
Before you rely on this scanner, note that the LLM Guard repository was archived by its owner on 9 July 2026, and the project README states that it and its Hugging Face models are no longer under active development or maintained. The Sensitive scanner therefore belongs in planning for existing deployments, not in new rollouts. Its detection quality is fixed at the models and library versions you have already pinned, and no future fixes for new PII patterns or model weaknesses should be expected from the project. The last PyPI release, 0.3.16, dates from 19 May 2025, so check which version your environment runs and whether it matches the Python range the package supports.
Treat the scanner as one layer of a replacement plan. Record which entity types you configure, which outputs pass through it, and what it misses in your own test data, then carry that list into the migration to a maintained guardrail such as NeMo Guardrails. The reader's practical decision is whether the current configuration still meets the output controls their privacy and security teams have agreed, and whether the gap can be closed on the existing deployment while the replacement is built.
Configuration options and when each fits
This table compares the main Sensitive scanner settings: which entity types to include, whether to redact matches, and how wide the scope should be. Read each row as a choice that trades false positives against missed personal data. The main takeaway is that a narrow entity list lowers noise but leaves gaps, so the list should follow the data your model output can actually contain.
| Option | When it fits | Trade-off for false positives | Trade-off for missed data |
|---|---|---|---|
| Narrow entity list (for example PERSON and EMAIL only) | Output stays in a known domain, such as support replies that rarely include identifiers beyond names and addresses of contacts | Fewer false positives because only the listed types are checked | Other personal data types, such as phone numbers or national IDs, pass through unless added |
| Broad entity list covering all types you need | Output may echo customer records, case notes or free text from many sources | More matches to review, and some legitimate text may be redacted | Lower chance that a personal data type is missed, but only for types the detection models recognize |
| Redaction on | Users or downstream systems should never see matched values, and the output is shown to people outside the data owner's team | Redacted text can read awkwardly, and over-matching removes content users needed | Redaction removes the value from the text but does not log what was found unless you add logging |
| Redaction off (detection only) | You need to measure what the model emits before deciding on a policy, typically in a test or shadow run | Flagged output still reaches the user, so false positives have no visible cost | Exposure continues in production unless another control blocks or reviews the output |
| Entity types limited to one language or locale | Your users write in a single language and you know the names and identifier formats involved | Fewer unrelated matches in other languages | Names and identifiers in other languages may not be detected; confirm coverage with test data |
| Scope set by a written data classification | Your compliance team has defined which personal data categories appear in each application | Reduces guesswork and makes tuning reviewable | Requires upkeep when new data fields or features are added to the application |
Which entity types to configure first
The Sensitive scanner only redacts what it is told to look for, so the entity list is a data decision before it is a configuration one. Each group below carries a different kind of exposure in model output, and the groups overlap in practice, so review them against the data classes your application actually handles.
Identity and person names
Entity types such as PERSON cover full names that appear in model answers about customers, employees or patients. The risk is that a model repeats a name from retrieved records or from earlier context, even when the user never asked for it. Check whether your application returns names from internal sources and whether names alone are enough to identify someone in your data set. Test with sample outputs that mention people in several roles.
Contact details
Entity types such as EMAIL cover addresses, and similar types cover phone numbers and other reach points. These are the entity types most likely to be exposed in support, sales and HR assistants that summarize correspondence. Confirm which contact formats your regions use, since the detector must recognize them before it can redact them. Run tests with addresses in both common and unusual formats.
Financial identifiers
Payment card numbers, bank account numbers and similar identifiers carry direct financial and regulatory exposure when they leak into a reply. The scanner is only one control here, and payment data scoping should be decided elsewhere in your design. Ask which card and account formats your systems store, and test whether the output still carries them after summarization or reformatting.
Health information
Medical record numbers, diagnoses and treatment details often appear in clinical or benefits assistants. Health data is usually a special category under the GDPR, so a leak carries more weight than an ordinary contact detail. Confirm with your privacy and clinical teams which terms count as health data in your context, because generic detectors may miss clinical wording.
Government identifiers
National identity numbers, tax references and passport numbers are high-impact identifiers that differ by country. Each one needs a detector suited to its format, and a generic configuration may not cover them. Ask your team which identifiers your records hold and whether any are used to match people across systems, since these deserve the strictest test cases.
Free-text details
Some sensitive facts sit in free text rather than in a fixed format, such as a case description that names a relative or a location tied to one person. Entity detectors will not catch every such phrase, so this group is a test question rather than a configuration switch. Collect real-looking sample outputs from your own workflows and record which sensitive facts survive redaction.
How to configure the Sensitive scanner step by step
This sequence takes a pinned LLM Guard environment to a Sensitive output scanner that detects configured entity types, redacts them, and hands clean text to the consumer. Each step closes with a check so you know it is complete before moving on.
Confirm the pinned version and Python runtime
Your platform team confirms which LLM Guard release is installed and which Python interpreter runs it. The last LLM Guard release on PyPI is 0.3.16, uploaded on 19 May 2025, and it requires Python 3.10 or newer but below 3.13. Record both values in the deployment record and pin them so a rebuild cannot silently change the scanner. Done when
pip show llm-guardreports 0.3.16 andpython --versionreports a version in the supported range.Install the library or API server
Engineers install LLM Guard into an isolated virtual environment with pip, or deploy the API server in the environment you already operate. Install from a locked requirements file so the Sensitive scanner and its Anonymize dependencies resolve to the same versions in every environment. Done when a small import of the Sensitive output scanner succeeds in the target runtime, or the API server answers its health request from inside your network.
Choose the entity types to detect
Your privacy, legal and application owners agree which personal data types may appear in model output for each application. The Sensitive scanner can be limited to entity types such as PERSON and EMAIL, so list only the types your use case requires and document why each is included. Confirm the entity list against the data your application actually handles, because the scanner cannot protect types it was not told to detect. Done when the approved entity list is recorded in version control next to the scanner configuration.
Enable redaction for matched entities
An engineer sets the Sensitive scanner to redact matches rather than only flag them, so matched values are replaced before the response leaves the application. Review how the replacement text appears to users and whether it hides enough context for your purpose. Store the configuration with the approved entity list and confirm no logging path writes the original unredacted output. Done when a test run returns output where each detected value is replaced and the scanner's result reports the match.
Test with representative model outputs
Your QA or security engineers build a test set of realistic model outputs that contain the approved entity types, including edge cases such as names in ordinary sentences, email addresses in code samples and partial identifiers. Run the set through the scanner and record which values are redacted, which are missed and which ordinary text is changed by mistake. Adjust the entity list or configuration and rerun until the results match what the owners approved. Done when the test report lists expected and actual results for every case and the owners have signed off on the misses that remain.
Verify redacted text reaches the downstream consumer
Your integration engineers trace one request end to end to confirm that the redacted text, and not the original model output, is what the user interface, API client, queue or log receives. Check every consumer, including retries, caching layers and any analytics sink that copies responses. Record the trace and the consumer list in the deployment record. Done when a traced request shows only redacted content at each downstream point and no path carries the original output.
Library use versus API server use
In library mode, the application installs LLM Guard with pip, imports the scanner and calls it inside its own process. The application decides when the Sensitive scanner runs, what it does with the returned text and which errors it catches. The scanner runs in the same Python interpreter as the calling code, so the application team owns the runtime, the dependencies and the upgrade path. Because LLM Guard is archived, the package should be pinned to the last release on PyPI, 0.3.16, which requires Python 3.10 or newer but below 3.13.
- Call site: The scanner is created and invoked where model output is handled, so each application team controls placement.
- Runtime: The host Python must fall within the supported range, so an interpreter upgrade elsewhere in the business can be blocked by LLM Guard.
- Model loading: Models load into each process that imports the scanner, so memory use grows with every worker.
- Dependencies: Transitive packages become application dependencies that your team must scan and update.
- Failure handling: Application code must decide whether a scanner exception blocks, redacts or passes the output.
Check that every service importing LLM Guard uses the same pinned version and that each host Python is inside the supported range.
In server mode, LLM Guard runs as an API server that applications call over HTTP, so scanning logic sits in a separate service that several applications can share. The application sends model output to the server and receives the scanner result, which keeps the Python dependency out of the application's own runtime. The server holds the scanner configuration and the loaded models, so changes to scanning behavior happen in one place. Confirm the endpoints, request format and authentication options in the LLM Guard documentation for the release you deploy.
- Shared service: One deployment can serve several applications, so a single scanner change affects every caller.
- Network path: Model output now travels to the scanner service, so the connection must be encrypted and authenticated inside your network.
- Capacity: Model loading and inference happen in the server, so its memory and CPU sizing set the latency for every caller.
- Access control: The server must restrict which applications can call it, since it receives raw model output that may contain personal data.
- Upgrade coupling: Callers depend on the API contract, so a server change can break applications built against an earlier response format.
Check who can reach the server, what it records for each request and whether callers stop or hold output if the server is unavailable.
In library mode, the Sensitive scanner is created in application code or its settings files, where the entity types and redaction setting are declared. In server mode, the scanner configuration lives with the server deployment, and the application sends text and reads results. Either way, the entity types you choose, such as PERSON and EMAIL, are a policy decision that the owner of the policy should record and review. Versioning follows the same split: library use is versioned through the application's lock file and container image, while server use is versioned through the server image and its configuration files.
- Config location: Library settings sit with the application, while server settings sit with the service deployment.
- Entity list: Record the entity types in version control with the reason each one is in scope.
- Version pinning: Pin the llm-guard package in the lock file for library use, and pin the server image tag for server use.
- Change control: Treat any change to entity types or redaction as a release that needs a test run against sample output.
- Config drift: Server deployments in different environments can hold different settings, so compare them before each release.
Check that you can reproduce the exact scanner configuration and package or image version that produced any output you may need to explain later.
Where the scanner runs changes what gets logged and where redacted text ends up. In library mode, the application controls its own logging, so it can record the scanner decision without storing the original output. In server mode, raw model output crosses the network to the scanner, so request logs, proxy logs and server logs can each capture personal data unless you configure them. Redaction in both modes replaces matched entities in the returned text, but the original text may still exist in memory, in caches or in the infrastructure that forwarded the request.
- Application logs: Library callers decide whether to store the original output, the redacted output or only the scanner decision.
- Server request logs: Load balancers, gateways and the server may record request bodies, so disable body logging where it is not needed.
- Redaction scope: Confirm which fields are scanned and returned, since fields outside the scanned text can keep personal data.
- Retention: Set retention for each log source separately, because each service keeps its own storage.
- Access: Limit who can read scanner logs, since they can expose the content the scanner was meant to protect.
Check, with a test that includes a known sample entity, that personal data does not appear in any log store on the request path in either mode.
How the scanner maps to OWASP sensitive information disclosure
The Sensitive output scanner addresses one part of the OWASP risk of sensitive information disclosure: a model reproducing personal data or other protected values in its response. It reuses the same detection mechanisms as the Anonymize scanner, so it can be configured with entity types such as PERSON and EMAIL and can redact matches before the output reaches a user or downstream system. That is a real reduction in exposure at one point in the pipeline, but it is detection based. A model can leak data in forms the entity recognizer does not match, such as internal project names, customer identifiers in an unfamiliar format, or facts paraphrased from retrieved documents. Treat the scanner as a last filter on output, not as proof that the application does not disclose sensitive data.
The controls that prevent disclosure sit mostly outside the scanner. Access control decides which documents, tools and records a model can retrieve for a given user, so data a user is not allowed to see never enters the context window. Data minimization removes unneeded personal fields from prompts and retrieval sources before the model is called. Logging records what was redacted, for whom and when, so incidents can be investigated and the entity list can be tuned from evidence. Ask the team to test each of these controls separately, using prompts that try to extract data the user should not receive, and record which control stopped each attempt.
Mapping these controls to a framework is the organization's responsibility, not the scanner's or DeployOpen's. Nothing in the GDPR requires a scanner, and Article 32 on security of processing leaves the choice of measures to the controller and processor based on risk. A compliance or privacy lead should document which controls address the risk, what each one does not cover, and how the evidence is kept. DeployOpen can help prepare the configuration, logs and test results that a reviewer will ask for, but an independent auditor or certification body issues any assessment. Confirm with your privacy team which entity types, languages and data categories fall within your obligations before accepting the scanner's default coverage.
Security and operational risks of output redaction
Output redaction with the Sensitive scanner can fail in quiet ways: it can leak the very data it removes, miss entities nobody listed, or expose its own logs. The cards below cover the risks we see most often in existing LLM Guard deployments, each with a mitigation to put in place before the scanner is trusted with regulated data.
Redaction logs holding raw PII
When a scanner rejects or changes an output, application logs and tracing tools often record the original text before redaction. That copy can contain the names, emails and identifiers the scanner was meant to remove. Check what your API server, reverse proxy and observability stack write for each request, and confirm whether the original model output is stored anywhere. Turn off payload capture for scanner calls, or redact upstream of your logging pipeline.
False negatives on unlisted entity types
The Sensitive scanner only redacts the entity types you configure. If the list omits a type your data contains, such as national identifiers, account numbers or addresses, the output passes through unchanged and nothing signals the miss. Build the entity list from the data classes in your privacy records, then test each class with sample outputs. Treat a clean scan as a result for the listed types only.
Model-generated identifiers not caught
Pattern and named-entity detection finds personal data that looks like personal data. A model can still produce plausible identifiers, such as invented case numbers, customer codes or partial addresses that combine several facts about a person. These pass the scanner while still identifying someone. Review a sample of outputs against your own identifier formats and add rules where your business uses internal codes.
Latency on streaming responses
Output scanners need the complete text before they can judge it, so scanning a streamed response either delays the first tokens or lets unscanned text reach the user. Decide which policy applies to your product, buffer-and-scan or pass-through with post-hoc review, and document it. Measure added latency with your own prompt lengths and hardware, because the cost depends on the model loaded and the size of each response.
Unpatched dependencies in an archived project
The project was archived by its owner on 9 July 2026, and its README states that it is no longer maintained. Security fixes for the scanner's Python packages, its models and its base images will not arrive from upstream. Pin the versions you run, track advisories for each dependency yourself, and record an owner who accepts the residual risk. The last release, 0.3.16, was uploaded on 19 May 2025.
LLM Guard repositoryAccess to scanner logs
Scanner logs can reveal which users triggered redactions, what categories of data they handled and how often the filter fired. That makes them sensitive in their own right, and they are often readable by a wider group than the application data itself. Limit read access to the security and compliance roles that need it, set a retention period agreed with your privacy office, and confirm that the logs themselves contain no unredacted entity values.
Why EU personal data rules raise the stakes for output redaction
If your LLM application serves users in the EU or processes personal data of people there, the output side of the application is part of your GDPR exposure. Regulation (EU) 2016/679 has applied since 25 May 2018, and under it a controller must secure processing under Article 32 and handle personal data breaches under Articles 33 and 34. A model that echoes a customer's email address, a patient name or an employee identifier in a response is a disclosure that the controller has to be able to explain, contain and, where required, report. The Sensitive scanner is one of the controls that reduces that exposure, so its configured entity types and redaction behavior should be documented as part of the security measures for the application.
The stakes are set by Article 83, which provides maximum administrative fines of EUR 10 million or 2% of total worldwide annual turnover for infringements such as Articles 25 to 39, and EUR 20 million or 4% for infringements of the principles, lawful basis, data subject rights and transfer rules, whichever is higher in each case. The GDPR requires no audit, attestation or certificate. Certification under Article 42 is voluntary and does not reduce the controller's or processor's responsibility for compliance, so a clean certificate will not answer a regulator's question about a specific leak. Ask your compliance team which records would show what the Sensitive scanner was configured to redact on a given date, and whether those records can be produced without relying on the archived project.
The rules are also moving. Regulation (EU) 2025/2518 lays down additional procedural rules for cross-border GDPR enforcement and applies from 2 April 2027, so the procedure for complaints and investigations will change during the life of most deployments. As of October 2026 the GDPR text has not been amended, but the Omnibus IV proposal and the Digital Omnibus proposal are pending, and their final wording is not yet settled. Confirm the current text on EUR-Lex and the status of both procedures with your legal team before you set a redaction standard, and plan for a review of your entity list when either proposal is adopted.
Questions teams ask before replacing or hardening the Sensitive scanner
What drives the effort to configure and test the Sensitive scanner?
The effort is driven mostly by how many entity types you need to cover and how varied your model output is. The Sensitive scanner reuses the detection mechanisms of the Anonymize scanner, so each entity type you enable, such as PERSON or EMAIL, needs its own set of test cases. Output formats matter too: free text, tables, JSON and code blocks can each hide identifiers in different places. Testing should also cover false positives, because redacting legitimate content breaks answers just as missed matches do. Ask any partner to show how they will build a labeled test set and measure both misses and over-redaction before changing configuration.
Can our team set up and test the Sensitive scanner without outside help?
A team with Python experience and access to a representative set of model outputs can usually configure the scanner itself, because the entity types and redaction behavior are set in the scanner configuration. The harder part is judging whether the result is good enough. That requires someone who knows which identifiers your data contains, who can review redaction decisions, and who can write regression tests that run on every change. If your team has none of those skills in-house, an outside partner can take on the test design and evidence while your staff keep ownership of the policy. Either way, confirm who signs off on the entity list before go-live.
What does the work need from our side?
The work needs three inputs from your side: representative sample outputs, an entity inventory, and named owners. Sample outputs should reflect the products, languages and workflows where the model actually answers users, including the edge cases that have caused incidents before. The entity inventory is a list of the identifier types your organization must protect, such as names, email addresses, account numbers or national identifiers, and where each one appears. Owners include a business or privacy owner who approves what counts as sensitive, a technical owner who runs the deployment, and a reviewer who accepts test results. Without these, configuration tends to drift into guesswork.
How long does replacing or hardening the Sensitive scanner take?
Duration depends on scope rather than on the scanner alone. A narrow change, such as limiting detection to two entity types for one application, involves less test design than covering many entity types across several model-facing products with different output formats. Other factors include whether the scanner runs in an API server or as a library, how many environments need the change, and how quickly your reviewers can approve redaction decisions. Most engagements are fixed-scope, so ask for a written timeline tied to a defined list of applications, entity types and deliverables, and confirm which dependencies on your side could delay it.
What recurs after the Sensitive scanner goes live?
Several things recur after go-live. Your entity inventory changes as products add new data fields, so the scanner configuration needs regular review. Test sets must be rerun whenever the scanner, its dependencies or the underlying model changes, and new output patterns should be added to the regression suite. Logs and redaction records need ongoing review under your data retention rules. Because LLM Guard is archived and no longer maintained, the scanner's detection quality will not receive upstream fixes, so you should plan periodic re-testing and a path to a maintained guardrail. Ask any partner whether ongoing testing and upgrades are offered as a retainer and what each one covers.
Does a scanner alone satisfy GDPR for PII in model output?
No. The GDPR does not name any scanner or technical product as sufficient on its own. Under Article 32, the controller and processor must implement appropriate technical and organizational measures for security of processing, and under Articles 33 and 34 they must handle personal data breaches. A redaction scanner is one technical measure among many, alongside access control, logging, retention limits, data processing agreements and staff training. The GDPR also requires no audit, attestation or certificate, and certification under Article 42 is voluntary and does not reduce the controller's responsibility. Treat the scanner as evidence within a broader compliance program, and confirm the requirements that apply to your organization with your legal or privacy team.
How model output flows through the Sensitive scanner
The flow starts when the application receives a raw model response and passes it to the Sensitive scanner inside the LLM Guard host, which reuses Anonymize detection limited to the entity types you configure. Matches are either redacted before the text leaves the trust boundary or passed through unchanged, so the decision point is where you should test first. The downstream consumer and the logging path are the two hand-offs to check, because redacted text and original matches can end up in different places.
Model output passes through the Sensitive scanner, which redacts or passes text before it reaches the application.
How DeployOpen works on this
DeployOpen plans and supports output redaction for LLM Guard Sensitive output scanner explained inside infrastructure you control, and it treats the archived scanner as a deployment to contain and replace rather than extend. We map which entity types your model output can expose, confirm the redaction behavior with your team, and document the result so your security and compliance reviewers can check it.
How we scope
- Inventory the output paths where model responses reach users, logs, tickets or downstream systems
- Agree the entity types to detect, such as PERSON and EMAIL, and the data categories your organization treats as sensitive
- Record the written scope, deliverables and timeline before any configuration work starts, since engagements are fixed-scope
How we build
- Configure the Sensitive scanner with agreed entity types and redaction settings, and test it against sample model outputs you approve
- Verify that the scanner's Anonymize detection dependencies load and run on your Python version and in your network
- Test false positives and misses on representative output, and record which cases still need a compensating control
How we hand over
- Deliver configuration files, a scanner settings record and a test log that your engineers can rerun
- Document where redaction happens, what is logged, and which data is never stored by the scanner
- Provide a handover session and a decommission or replacement note covering the archived project status
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer if you keep the scanner running
- Retest redaction after model, prompt or entity-type changes so coverage does not drift silently
- Help you prepare evidence for reviewers on how output redaction supports your personal data handling obligations

