Last updated

Masking types

AgentLink provides a wide range of predefined data masking types categorized by regulatory frameworks.
Each type defines a specific pattern of information that will be automatically detected and masked in tool responses.


GDPR — General data protection regulation

Covers personal identifiers of EU citizens.

Example FieldsDescription
Email AddressReplaces local part of the email (e.g., a***@example.com).
Phone NumberMasks digits except for the country code (e.g., +44 ******123).
Passport / ID NumberReplaces all digits with *.
AddressMasks street names and house numbers.
Bank NumberObscures all but the last four digits.

PHI — Protected health information (HIPAA)

Applies to health-related data used in regulated contexts.

Example FieldsDescription
Medical LicenseMasks identifier fully.
Health Record IDPartially masks unique record identifiers.
Insurance NumberRemoves middle segment of the number.
Diagnosis CodesOptionally replaces with “[REDACTED]”.

PCI DSS — Payment card industry

Applies to payment and credit card data.

Example FieldsDescription
Credit Card NumberMasks all but the last four digits.
CVV / Security CodeFully masked.
IBAN / Bank AccountPartially masked.
Cardholder NameReplaced with generic placeholder.

CCPA — California consumer privacy act

Targets U.S. consumer personal data.

Example FieldsDescription
SSNMasks middle digits (e.g., ***-**-6789).
Driver LicenseFully masked.
Home AddressReplaces street name with [REDACTED].
Tax IDMasks all characters except the last two.

COPPA — Children's online privacy protection act

Used when child-related data is involved.

Example FieldsDescription
Child NameReplaced with “Child”.
Birth DateReplaced with “01/01/YYYY”.
School NameMasked entirely.

Masking behavior

  • Masking occurs before any data is returned to AI agents.
  • The original values are never stored or exposed in logs.
  • When multiple policies apply to the same tool, masking is applied cumulatively.
  • All matched values are replaced with deterministic redaction tokens in the form REDACTED_<TYPE>.
    • Examples: REDACTED_EMAIL_ADDRESS, REDACTED_CREDIT_CARD, REDACTED_US_SSN.

Example response

{
  "email": "REDACTED_EMAIL_ADDRESS",
  "creditCard": "REDACTED_CREDIT_CARD",
  "patientId": "REDACTED_PATIENT_IDENTIFIER"
}