Compliance Templates
Uncontrolled exfiltration of cardholder data, PHI, or PII creates regulatory exposure, investigation burden, and reputational harm. SafeSquid Text Analyser supports pattern-based detection for PCI, HIPAA, GDPR, and custom data. Use these templates as a starting point for detection and enforcement, not as a substitute for a full compliance program.Problem: Sensitive data in transit requires detection for compliance
Organizations must detect and control sensitive data in web traffic to meet PCI-DSS, HIPAA, GDPR, and similar requirements. Failure to detect cardholder data, PHI, or PII in transit creates regulatory and legal risk. SafeSquid Text Analyser supports pattern-based detection so administrators can block or log matches and demonstrate control operation to auditors.Key benefits
Pre-built patterns reduce implementation time for PCI-DSS, HIPAA, GDPR, and similar programs. Organizations can show auditors configured detection rules and logs of matches or blocks. Combine templates with Access Restriction to block, log, or alert on matches after tuning.Prerequisites
- HTTPS inspection enabled so SafeSquid can inspect request/response body content. See Configure HTTPS Inspection.
- Access to Configure → Real Time Content Security → Text Analyser in the Configuration Portal.
- Decision on which regulations apply and which data types to protect (assess before configuring).
Pre-built patterns for regulatory requirements
SafeSquid’s Text Analyser supports pattern-based detection of sensitive data. Use the sections below as starting points for PCI-DSS, HIPAA, GDPR, and other regulatory requirements. :::note These templates provide detection patterns only. They do not by themselves make an environment compliant. Combine them with Access Restriction, HTTPS inspection, logging, governance, retention, and review processes. :::PCI-DSS (Payment Card Industry)
Detect credit card numbers, CVV codes, and cardholder data in transit.Credit Card Number Patterns
Configuration Example
- Navigate to Configure → Real Time Content Security → Text Analyser
- Add a new policy with:
- Comment: PCI-DSS Credit Card Detection
- Mime type:
text/.*|application/json|application/xml - Keyword(s):
(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|3[47][0-9]{13}) - Score: 100
- Set Threshold to 100 to block on first match
Additional PCI Patterns
HIPAA (Healthcare)
Detect Protected Health Information (PHI) including medical record numbers, SSNs, and health-related terms.Social Security Number
Medical Record Identifiers
PHI Keywords (High-Risk Terms)
Configuration Example
- Create a Text Analyser policy:
- Comment: HIPAA PHI Detection
- Keyword(s): SSN pattern + PHI keywords
- Score: 50 per match
- Set Threshold to 100 (blocks when multiple indicators present)
GDPR (European Union)
Detect Personally Identifiable Information (PII) for EU data subjects.EU National ID Patterns
IBAN (Bank Account)
Email Addresses
Phone Numbers (International)
GDPR-Sensitive Keywords
Financial Services
Bank Account Numbers
Tax Identifiers
Intellectual Property
Source Code Detection
Detect code snippets that may indicate IP leakage:Confidential Markers
Implementation Guidelines
Step 1: Assess Requirements
Identify which regulations apply to the organization and which data types require protection.Step 2: Configure Detection
Add Text Analyser policies using patterns from this document. Start with logging or limited pilot enforcement to assess false positive rates.Step 3: Tune Thresholds
Adjust scores and thresholds based on observed traffic:- High threshold (200+): Reduces false positives, may miss some violations
- Medium threshold (100): Balanced detection
- Low threshold (50): Aggressive detection, more false positives
Step 4: Enable Enforcement
After tuning, enable blocking for high-confidence matches. Avoid broad hard enforcement before you have verified false-positive behavior on real traffic.Step 5: Monitor and Report
Use Reporting Module to track DLP events for compliance audits.Verification and Evidence
- Interface: Configure → Real Time Content Security → Text Analyser shows policies with patterns, scores, and thresholds. Access Restriction policies reference the same profiles for block/log actions.
- Logs: Security and access logs record matches and blocked requests when threshold is exceeded. Filter logs by DLP or Text Analyser events.
- Audit evidence: Export reports from the Reporting Module for the audit period; show configured patterns and count of matches or blocks to demonstrate control operation.
- Governance check: Retain the rationale for each enabled pattern and the tuning record that shows why the threshold is safe enough for production.
Troubleshooting
Custom Templates
Create organization-specific patterns for:- Employee ID formats
- Internal project codes
- Customer account numbers
- Proprietary terminology

