Comprehend detects and redacts PII. AI agents in a regulated business also need policies, separate tenants, audit logs and on-prem or air-gapped deployment. Protecto ships all of it.
SOC 2 Type II · ISO 27001 · HIPAA, BAA available
Dashed layers are what your team builds around Comprehend, or what it doesn’t offer.
Amazon Comprehend is a managed AWS API that detects PII in text and redacts it in S3 files, one way. Protecto is the alternative when AI agents handle real data in a regulated business. It adds consistent, reversible tokens, policies by user, AI agent and task, separate tenants, audit logs, and on-premises or air-gapped deployment. You can keep AWS, and keep Comprehend for S3 batch jobs.
Pick one. Each shows what a team builds around Comprehend and what Protecto does instead.
Enterprise controls first, then AI agents, tokens and detection.
| Capability | Protecto | AWS Comprehend |
|---|---|---|
| Policies by user, AI agent and task | Your application passes who is asking and for what task | No |
| Separate tenants or projects | Own policy and tokens per tenant, created by API. Automation Anywhere runs 5,000+ live enterprise tenants on Protecto | No. You build it |
| Audit logs | Logs each request and reveal, kept in your infrastructure when self-hosted. An API call purges records older than the days you choose | API calls in AWS CloudTrail. A log of who saw which value is yours to add |
| On-premises and air-gapped | On-premises, private cloud or fully air-gapped, with the token vault and keys in your infrastructure. SaaS also available | No. AWS Regions only |
| Business-confidential information beyond PII | Context-Based Access Control | No |
| 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 |
| 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 |
| AI agent runs | Each step is masked, and real values go only where policy allows | 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 |
| 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 | 200+ 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 |
| Pricing | By quote | Published. Detect PII is $0.0001 per 100 characters in US East, with a free tier |
Based on AWS documentation, reviewed November 2026.
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.
A support rep 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.
“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.”
Comprehend charges by the character and AWS runs it. What it leaves out is the work around detection, and that is where the cost sits.
With Comprehend
Run by AWS. Nothing to host, in AWS Regions only.
With Protecto
SaaS, or you host it. Nothing to run on SaaS. Self-hosted, one GPU node for the detection models plus servers for the vault.
With Comprehend
Published. $0.0001 per 100 characters for Detect PII in US East, with a free tier.
With Protecto
By quote. Priced for your volume and deployment.
With Comprehend
You build it. DetectPiiEntities returns types and offsets. Your code rewrites the text, and a token store with keys if values must come back.
With Protecto
Included. Consistent tokens. Protecto Vault keeps the mapping with your encryption keys.
With Comprehend
You build it. Unmasking rules by user, AI agent and task, and a log of who saw which value. CloudTrail records API calls.
With Protecto
Included. Policies by user, AI agent and task, and a log of each request and reveal.
With Comprehend
You build it. Hooks into prompts, retrieval, responses and tool calls, each with its own failure cases.
With Protecto
Included. One API for prompts, RAG, tool calls and MCP servers, with any LLM.
IncludedYour team builds or runs itBoth need it
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
You don’t have to leave AWS. Keep the move small until the results on your own data are clear.
Protecto works with any LLM, including models on Bedrock. Comprehend batch jobs on S3 can keep running where one-way redaction is enough.
Pick the prompt, RAG or tool call flow where one-way redaction hurts most, and test there first.
List what your custom recognizers catch today. Protecto adds custom entities in days, without training a model.
Yes, when AI agents handle real data in a regulated business and you need policies, separate tenants, audit logs or on-premises deployment, 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.
Yes. Protecto runs on-premises, in your private cloud or fully air-gapped, with the detection models, the token vault and your encryption keys in your infrastructure. Comprehend runs only in AWS Regions. SaaS is also available.
Yes. Each tenant gets its own policy and its own tokens, so the same value gets a different token in each one. New tenants are created by API, and Automation Anywhere runs 5,000+ live enterprise tenants on Protecto.
Yes. Protecto doesn’t impose a retention period, so your rules apply. Self-hosted, the data stays in your infrastructure, and an API call purges audit records older than the number of days you choose.
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.
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.
For a POC, Protecto Vault with its detection models needs 40 vCPU, 102 GiB of memory, one NVIDIA GPU with at least 24 GiB (A100, V100 or H100 class) and 1.45 TB of disk. Production sizing depends on your volume. On SaaS, there is nothing to host.
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 what each user, AI agent and model receives 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.