Comprehend redacts files in S3, one way. Protecto protects the live AI call and restores values for authorized users. You can keep AWS.
SOC 2 Type II · ISO 27001 · HIPAA, BAA available
Amazon Comprehend is a managed AWS service that detects PII in text and redacts it in S3 files, one way. Protecto is the alternative when AI uses real data in production. It masks prompts, RAG, agents, tool calls and MCP with consistent tokens, and restores real values by user, agent and task. You can keep AWS, and keep Comprehend for S3 batch jobs.
A Fortune 100 company deployed within days. A SaaS company processes 13M+ long texts a day.
Long texts a day, at a SaaS company
Lower cost than the in-house estimate, at a SaaS company
Live enterprise tenants at Automation Anywhere
Comprehend does its job well. The question is whether redacting text is still the whole job once AI uses your data.
A security company got to market over 12 months faster with Protecto.
A support agent asks AI to sum up a refund case. Two people are involved, and the answer depends on who did what.
Comprehend replaces each value with its type or a mask character. That removes the risk, and it also removes what the model needs to answer. Protecto gives each person their own consistent token.
Text sent to the model
Maya approved Ravi’s refund, then Maya emailed Ravi.
Where they match, where Comprehend is strong and where Protecto goes further.
| Capability | Protecto | AWS Comprehend |
|---|---|---|
| LLM prompts and responses | Masks prompts, restores real values by policy, any LLM | Real-time API finds PII. You write the replacement and any restore |
| RAG and retrieval | Masks before indexing, applies policy at retrieval | AWS pattern: a redaction job before ingestion. One way |
| Agents | Policy by user, agent and task | No |
| Tool calls | A tool gets a real value only when policy allows it | No |
| MCP servers | Controls which MCP servers get which real data | No |
| Masked output | Consistent tokens that keep entities distinct | Entity type label or mask character |
| Restoring real values | By policy, through Protecto Vault | No. Redaction is one way |
| Unmasking by user, agent and task | Yes, your application passes who is asking and for what task | No |
| Business-confidential information beyond PII | Context-Based Access Control | No |
| Audit logs | Logs each request and reveal, stored locally when self-hosted | API calls in AWS CloudTrail |
| Method | Agentic detection and classification engine | Managed ML and NLP models |
| Benchmark | Higher F1 (DataXpert, UT Dallas) | Lower F1 in the same study |
| Entity types | 50+ across PII, PHI and PCI | 36 PII types, including card data |
| PHI | Included | Separate service, Comprehend Medical, US English |
| Custom entities | Yes, added in days | Separate recognizer you train, up to 25 entities |
| Languages | Seven tested, including Arabic. Others on request and tested on your data | PII detection in English and Spanish |
| Protected text in real time | Yes | No. Redaction runs as an async S3 job |
| Batch and pipelines | API, Snowflake UDF, Databricks, Kafka, Spark | S3 jobs, up to 5 GB per job and 10 active jobs |
| Where it runs | SaaS, private cloud, on-premises, air-gapped | AWS Regions only |
| Pricing | By quote | Published. Detect PII is $0.0001 per 100 characters in US East, with a free tier |
| Compliance evidence | SOC 2 Type II, ISO 27001. Signs a BAA when Protecto hosts, manages or can access your instance | AWS compliance programs. HIPAA eligible under an AWS BAA |
Based on AWS documentation, reviewed November 2026.
Most teams here aren’t leaving AWS. They are deciding what to add to it. Pick what you need and see how each option handles it.
What do you need to do? Pick one.
Comprehend gives you detection at a low price per call. Using it on live AI traffic leaves the rest with your team.
DetectPiiEntities returns types and offsets, up to 100 KB per request. Your code rewrites the text.
A store for mappings, with backup and key management, if real values ever need to come back.
The same person needs the same token across sessions, retrieved documents and tools.
Who sees real values, by user, agent and task, and how your apps pass that context.
Hooks into prompts, retrieval, responses and tool calls, each with its own failure cases.
CloudTrail records API calls. Who saw which real value, and why, is a log you add.
Protecto doesn’t ask you to move your data, models or accounts. Your apps call Protecto, and your models receive tokens instead of real values.
Protecto works with any LLM, including models on Bedrock. Comprehend batch jobs can keep running where one-way redaction is all you need.
An independent benchmark by DataXpert and UT Dallas, published by Protecto. Email was a tie.
Phone false positives
11 Protecto, 524 Comprehend
Credit card false positives
0 Protecto, 427 Comprehend
How to read this. 3,000 synthetic samples scored at the entity level, March 2025. The study counted invalid values as not PII, which affects false positive counts. AWS also advises customers to test Detect PII on their own content, and that is the best check for both products.
“Protecto enabled us to deliver data security, privacy, and compliance for our AI features at scale across 5,000+ enterprise clients, strengthening customer trust in our AI automation solutions.”
Yes, when AI uses your data in production and masked text has to stay useful, or someone needs real values back. If you only redact S3 files in English or Spanish, Comprehend is a sound choice.
No. Protecto works with any LLM, including models on Bedrock, and runs as SaaS, in a private cloud, on-premises or air-gapped.
Guardrails masks model input and output with placeholders such as {NAME}. AWS’s docs say its PII filter doesn’t evaluate tool inputs or results. Protecto issues consistent tokens, restores values by policy and covers tool calls. See AI guardrails vs Protecto for the full comparison.
No. Redaction replaces each value with its type or a mask character, and there is no way to restore the original from that output. Protecto Vault restores values for users your policy allows.
No. The real-time API returns entity types, offsets and scores. Redacted text comes from an async job that reads from and writes to S3 buckets in the same Region.
No. AWS closed topic modeling, event detection and prompt safety classification to new customers on April 30, 2026. AWS says other Comprehend features are not affected.
Comprehend’s PII feature covers some health numbers, such as UK NHS numbers. PHI in clinical text is handled by a separate service, Comprehend Medical, in US English. Protecto covers PII, PHI and PCI in one engine.
Comprehend detects PII in English and Spanish. Protecto is tested in English, German, French, Spanish, Dutch, Arabic and Japanese, with others on request and tested on your data. At Bank Muscat, Protecto reached 99% recall and 96% precision, including on Arabic content.
In the DataXpert and UT Dallas benchmark, Protecto had a higher F1 score than Comprehend, with a tie on email addresses. Test both on your own data, as AWS also advises.
Comprehend publishes its price: $0.0001 per 100 characters for Detect PII in US East, with a 300-character minimum and a free tier. Protecto is by quote. Compare the full cost, including what your team would build and run around Comprehend. A SaaS company processing 13M+ long texts a day spent 90% less with Protecto than its in-house estimate.
Bring a prompt, document or tool call, and see how Protecto handles it on your own data.
A third-party study compares how accurately Protecto, Microsoft Presidio, and AWS Comprehend find personal and health data in unstructured text.
By submitting you agree to Protecto’s privacy policy.