Skip to content

FaceGuard Security & Policy Proxy

FaceGuard is the integrated compliance and security layer embedded directly within CTS Model Router. It ensures that sensitive prompts, Personally Identifiable Information (PII), and proprietary code never persist in unauthorized storage or upstream provider logs.


Traditional aggregators often log raw prompt strings for evaluation. FaceGuard enforces mathematical isolation:

[ User Prompt with PII ]
│
▼
[ FaceGuard In-Flight Inspection ]
├── Regex & Semantic PII Redaction (NIN, BVN, Credit Cards, Emails)
├── Prompt Injection Mitigation
└── Memory Buffer strictly in Volatile RAM (never flushed to disk)
│
▼
[ Cleaned Payload to Upstream Provider ]

FaceGuard can automatically detect and replace sensitive West African and global identifiers before forwarding:

Identifier Target Pattern Replacement Token
NIN (National Identity Number) 11-digit national identity [REDACTED_NIN]
BVN (Bank Verification Number) 11-digit bank verification [REDACTED_BVN]
Payment Cards Visa, Mastercard, Verve digits [REDACTED_CARD]
Email Addresses Standard RFC 5322 regex [REDACTED_EMAIL]

Enable strict compliance via header:

Terminal window
curl -X POST https://api.creativetechstudios.org/v1/chat/completions \
-H "X-FaceGuard-Policy: strict-pii" \
-H "Authorization: Bearer $CTS_API_KEY" \
...