Security
Immigration files hold passports, family details and a person's whole career. Petria is built so that this information stays inside Petria, and the AI that helps write the draft works on placeholders instead. This page explains exactly how.
The AI works on placeholders
Names, passport and ID numbers, dates of birth and contact details are replaced with placeholders inside Petria before any AI call.
If protection fails, nothing is sent
If the replacing step or the second check cannot run, the request stops. Petria never falls back to the original text.
Never used for training
Your files never train any model. The AI runs inside Petria's AWS account, and everything is stored in the United States.
Deleted when you say
Deleting a matter or your account removes the files, the text and the placeholder tables at once.
- 1UploadEncrypted in transit and at rest
- 2Read textPDF, Word and OCR, inside Petria
- 3TokenizeNames and identifiers become [PERSON_001]
- 4Draft and searchAI on Amazon Bedrock sees tokens only
- 5Restore namesOn Petria's servers, never in the AI
- 6Your Word fileEncrypted, download links expire in 1 hour
Your clients' personal information
An immigration file holds a person's name, passport and identity numbers, date of birth, family, addresses and career. Petria is built so that this information stays inside Petria's own environment, and so that the AI services that help write the draft work on placeholders instead. This section explains exactly how, what it covers, and what it cannot do.
What an AI service actually sees
Before any text is sent to an AI model or a search service, Petria replaces names and identifiers with placeholder tokens. For example, a sentence from an exhibit:
Dr. Lena Okafor-Brandt (passport C7340921, born March 14, 1988) joined the Harwell Coastal Institute in 2019. Email: lena.ob@example.com.
is sent to the AI as:
Dr. [PERSON_001] (passport [PASSPORT_001], born [DOB_001]) joined the [ORG_001] in 2019. Email: [EMAIL_001].
The AI writes the argument with the tokens. Petria then puts the real values back on its own servers before you see the draft. The table that links each token to its real value never leaves Petria.
What is replaced
| Kind | Examples |
|---|---|
| People | the applicant, family members, letter writers, colleagues, everyone named in the record |
| Identity numbers | passport, Social Security, alien registration (A-number), and labelled ID numbers |
| Dates of birth | wherever the text shows that a date is one |
| Contact details | email addresses, phone numbers, street addresses |
| Organizations | employers, universities, companies and other named organizations |
Two methods run together, both on Petria's own servers: a language model trained to recognize names of people, organizations and places, and pattern rules for identifiers with a known shape, such as passport and Social Security numbers. Neither is an outside AI service.
What is kept in plain text, and why
Some words stay as written because the argument depends on them and they do not identify a person on their own: countries and regions, the names of journals and media outlets, and immigration terms. A letter that says an article appeared in a particular journal, or that the applicant is a citizen of Portugal, is still meaningful to the AI, and the officer will read the real petition anyway.
Where it happens, step by step
- Upload. Your files are stored encrypted in Petria's storage in the United States. Nothing is sent anywhere else.
- Reading. Petria reads the text of each document on its own servers, including scanned pages and photos.
- Replacing. Names and identifiers are replaced with tokens, in the exhibits and in the facts and instructions you entered. This happens before any AI or search service is called.
- Drafting and search. The AI models run on Amazon Bedrock, inside Petria's AWS account in the United States: Claude (made by Anthropic) for drafting, analysis and Ask, and Amazon Titan with Cohere Rerank for search. They receive only tokenized text, and no outside AI company receives any. Translation of foreign-language documents also receives tokenized text.
- Restoring. Petria puts the real values back into the draft on its own servers.
- Final check. Before your Word file is saved, every page is checked for any token still left in it.
If something goes wrong, nothing is sent
- If the replacing step fails or is unavailable, the drafting job stops before any AI call. Petria never falls back to sending the original text.
- As a second safeguard, every request to an AI or search service is checked again against all the names and identifiers already found in the matter, and any that appear are replaced. If that check itself cannot run, the request is not sent.
- When Petria runs in production, the replacing service will not start without its name-recognition model, so it cannot quietly run on pattern rules alone.
Ask
When you ask a question about a matter, the question, the earlier conversation, any files you attach, exhibit labels and file names are all tokenized with that matter's tokens before any AI or search call. If that fails, Ask declines the question rather than send the text. Answers are shown to you with the real names.
What the AI services keep
- No training. Petria does not use your firm's data to train AI for anyone else. Amazon Bedrock does not use prompts or outputs to train or improve any model.
- Not shared with the model makers. Anthropic and Cohere make some of the models, but Amazon Bedrock does not share prompts or outputs with them.
- Short retention. AWS may keep prompts and outputs inside AWS for a limited time to detect abuse, under the AWS Service Terms. The models only ever receive tokenized text.
Who can see the real information
- Your firm. Users of your firm, within their role. Paralegals can upload evidence; attorneys can also draft; administrators can also manage users and settings.
- Your clients, on the Enterprise client portal, see only what your firm shares with them and send only what your firm asks for.
- Petria staff open a firm's matters only to provide support the firm asks for, to investigate a security or service problem, or where the law requires it. Everyone with access is bound by confidentiality.
- No other customer. Every request is checked against the signed-in user's firm, and each firm's files are stored separately.
Deleting it
Deleting a matter or your firm's account removes its files, their extracted text, the token tables and every stored copy at once. Deleting a single document removes the file, its extracted text and every stored version; copies of its text inside earlier drafting jobs stay with those jobs until you delete the job or the matter. Deletion cannot be undone. Two kinds of copies expire on a fixed schedule: database backups after 7 days and system logs after 30 days. Cancelling a subscription does not delete anything; an administrator deletes the account in Settings, under Data. Section 7 of our Privacy Policy has the full schedule.
Other safeguards
- Encryption. All connections use HTTPS. Files, the database and its backups are encrypted at rest.
- Stored in the United States. All files and drafts are kept in Amazon Web Services in Oregon.
- Signing in. Strong passwords, optional authenticator-app sign-in and passkeys. Sessions end after 30 minutes without activity.
- Malware. Uploaded files are scanned, and an infected file cannot be opened.
- Download links expire after one hour.
- Audit log. Petria records who uploaded, downloaded, drafted and deleted what, and when. Enterprise firms can view and export it.
- Monitoring. Petria's cloud accounts are watched for threats and configuration changes around the clock.
The full list of service providers, with what each receives, is on our Subprocessors page.
Certifications and assurances
- In place
Tokenization before AI
Every drafting job, Ask question and search request works on tokenized text. A failure stops the request.
- In place
No training on your data
Petria does not train models on firm data, and Amazon Bedrock does not train models on prompts or outputs.
- In place
Data stored in the United States
Files, drafts and the database live in AWS in Oregon. Deleting a matter or account removes every stored copy at once.
- Planned
SOC 2 Type II
An independent audit of Petria's security controls. Until the report exists, we answer security questionnaires directly.
- Planned
Independent penetration test
A third-party test of the application and its infrastructure, with a summary available to customers.
- Planned
Required multi-factor sign-in
Authenticator apps and passkeys are available to every user today. Firms will be able to require them.
For security questionnaires and documentation, write to security@petria.io.
Incidents and reporting
If we confirm a security incident affecting your firm's data, we will notify your account administrators without undue delay and within 72 hours, and help you meet your own notification duties.
If you believe you have found a vulnerability, email security@petria.io with enough detail to reproduce it. Please do not access, change or delete data that is not yours, and give us reasonable time to fix it before telling anyone else. We will acknowledge your report within 5 business days and will not pursue legal action against good-faith reports that follow these guidelines.
Disclaimer
- Petria is software. Petria is not a law firm, does not practice law, and is not an attorney or accredited representative before USCIS or any other agency.
- Petria does not give legal advice. Using Petria does not create an attorney-client relationship with Petria.
- Petria drafts from the evidence and the choices you give it. The person responsible for the petition decides what to claim and what to file: the attorney or accredited representative, or, in a self-petition without counsel, the petitioner.
- Petria never signs or files anything. Each petition is signed by hand by the person USCIS requires to sign it.
- Scores and ratings in Petria, such as evidence strength or the risk of a request for evidence, are information. They do not predict an officer's decision or guarantee any outcome.
- This page explains how Petria protects your clients' information. It is not a legal opinion on your professional duties. How the ABA Model Rules, as your state adopts them, and ABA Formal Opinion 512 apply to your use of Petria is for you to judge.
- This page is not contractual. If it and our Terms of Service disagree, the Terms control, including the Data Processing Addendum and the Subprocessors list.