AppsEvaluations

Response checks · Autessa Evaluations

Sensitive data detectors and pattern rules

Sensitive data detectors and pattern rules are LLM guardrails for personal data, credentials and your own formats. Turn on ready-made detectors for Social Security numbers, card and bank numbers, API keys, private values the customer entered and leaked instructions, or write a regular expression for anything else. Each can remove just the matched text and send the rest of the reply.

A core AI agent evaluation capability, done properly
Start free
Sensitive data detectorsSAMPLE
● Social Security numbers● Card numbers○ Bank account & routing numbers○ Driver’s license numbers○ Email addresses○ Phone numbers○ IP addresses○ IBANs○ Dates of birth● API keys, tokens & private keys● Private values the customer entered● The agent’s own instructions○ Internal links & addresses
SENT TO CUSTOMER
Your SSN on file is [REDACTED]. Anything else I can help with?

The problem

Agents repeat what tools hand them

A tool returns a customer record and the agent reads the Social Security number back. Someone talks the agent into reciting its own instructions. A reply includes a link to an internal admin page. None of these are model errors in the usual sense; the agent is being helpful with data it should never have said out loud. Detectors catch that data in the reply itself, before it leaves.

What you get

  • Autessa includes detectors for US Social Security numbers, payment card numbers that pass the card checksum, US bank account and routing numbers, and US driver license numbers.
  • Detectors also find email addresses, phone numbers, IP addresses, IBANs and dates written as a date of birth.
  • The API keys, tokens and private keys detector covers credentials from common cloud, developer, payment and AI providers, signed tokens and private key blocks.
  • The private values detector catches any value the customer typed for a private argument in this conversation, or a value from a secret, repeated word for word.
  • The instructions detector flags a long run of words copied from the agent instructions: 12 words in a row by default, and you can change it.
  • The internal links detector finds links to local machines, private network addresses and internal-only domains, plus any domains you list.
  • Pattern rules match your own regular expression, with standard flags, required context keywords within 80 characters, and an optional card-number checksum.

How it works

How does sensitive data detectors and pattern rules work in Autessa Evaluations?

  1. Add a detector check

    Click Add check and pick Sensitive data detectors, then turn on the detectors this agent needs.

  2. Or write a pattern rule

    Pick Pattern rule and enter a regular expression, such as an internal ticket format like TCK-\d{6}.

  3. Cut false matches

    Add required context keywords so nine digits only count near "account" or "member ID", or require the card checksum to screen out random digit runs.

  4. Choose Remove the matched text

    The matched text becomes [REDACTED] and the rest of the reply goes out, or pick block or retry when any match should stop the reply.

Every option

Detectors and pattern rule options

OptionWhat it does
Social Security numbersUS Social Security numbers.
Card numbersPayment card numbers that pass the card checksum.
Bank account and routing numbersUS bank account and routing numbers.
Driver's license numbersUS driver license numbers.
Email addresses, phone numbers, IP addressesAny email address, phone number or IP address.
IBANsInternational bank account numbers.
Dates of birthDates written as a date of birth.
API keys, tokens and private keysProvider credentials, signed tokens and private key blocks.
Private values the customer enteredA private argument value or secret repeated word for word.
The agent's own instructionsA run of words copied from the instructions; 12 in a row by default, adjustable.
Internal links and addressesLocal machines, private network addresses, internal-only domains and domains you list.
Pattern: expression and flagsYour regular expression, with case-insensitive, multi-line and the other standard flags.
Pattern: required context keywordsA match counts only if one of these words appears within 80 characters of it.
Pattern: card-number checkA match counts only if it passes the checksum real card numbers pass.

From code

Do it from the CLI or API

Run `autessa <command> help` for the full list of arguments.

CLI documentation →
A detector check in the agent config (Agents API)
{
  "checkType": "BUILT_IN",
  "id": "a8d27e10-4c6b-4f3e-8d2a-71b9c0e4f512",
  "name": "Sensitive data",
  "action": "REDACT",
  "detectors": ["SSN", "CREDIT_CARD", "SECRETS", "PRIVATE_VALUES"]
}

Permissions

Who can do what?

WhoCan
Agent editor (WRITE)Choose detectors, write pattern rules and set actions on the draft.
Publisher (PUBLISH)Publish the version so the detectors apply to live traffic.
Reviewer with history accessSee what was caught in the Response checks card on each reply.

Connected

How it connects to the rest of Evaluations

FAQ

Questions about sensitive data detectors and pattern rules

Can a tool echo a private value like a card number back to the customer?

Not through the AI. A private value goes straight to the tool, and if the tool result repeats it, the value is masked before the AI reads the result. The private values detector is a backstop for the rare case where the customer also typed it into the normal chat.

How do I stop the agent from revealing its instructions?

Turn on The agent's own instructions detector. It flags a long run of words copied from the instructions, 12 in a row by default.

How do I avoid matching every nine-digit number?

Use a pattern rule with required context keywords. A match then counts only when a word like "account" appears within 80 characters.

Do detectors call a model?

No. Detectors and pattern rules are rules that run instantly, in parallel with your other checks.

Try sensitive data detectors and pattern rules in Autessa Evaluations

Sensitive data detectors and pattern rules find PII, credentials, leaked instructions and your own formats in a reply, and can remove just the matched text.

Start free

Test sets · simulated users · four-dimension scoring · response checks · grading API

100% customizable, code and all

Make Autessa Evaluations fully your own.

Use it out of the box, then change anything. Ask Autobot, Autessa’s AI builder, for a new field, screen, report, workflow or agent and it builds it into your copy of the app. Or open the code and edit it yourself. Nothing is locked: the app, its data and its code are yours.

Start free and make it yours