The release of Lakera Policy Control Center brought a suite of powerful tools for AI security, and we’re excited to introduce a feature that adds even more flexibility and precision: custom regular expression based detectors.
This new capability allows you to define specific words, text strings, rules and patterns to flag when screening, meeting your unique security and content moderation needs.
What’s New with Custom Regex Detectors?
With custom regular expression (regex) detectors, Lakera Guard enables you to create custom content moderation and sensitive data screening detectors using regex so that your app can detect, block, or flag specific content that matters most to you.
Whether you need to flag custom PII data types like employee IDs, prevent data leakage of your system prompts, restrict certain types of communication through blocking certain words and phrases, or monitor specific content across your GenAI applications, this feature gives you the control to do so seamlessly.
Here’s how custom regex detectors elevate your security:
Custom Regex Detectors: Quick Overview


Real-World Applications
Custom regex detectors open up a world of possibilities for businesses dealing with sensitive data or unique content requirements.
Here are some use cases where this feature shines:
- E-commerce & Consumer Platforms: Moderate user-generated content by blocking specific terms, competitor names, or inappropriate topics.
- Financial Institutions: Detect and block sensitive information like bank account numbers, employee IDs, or sensitive demographic data to meet compliance and protect customer data.
- Healthcare Providers: Ensure compliance with health regulations by flagging or blocking PHI such as medical terms, patient data or medical conditions.
- International Companies: Prevent the mention of politically or culturally sensitive topics across regions, using tailored detectors for each market.
For companies with highly specific security requirements, custom regex detectors provide the flexibility and control needed to stay secure without relying on one-size-fits-all solutions.
Custom Detectors Are Part of Lakera Guard
Custom regex detectors come ready out of the box with Lakera Guard. You can configure as many custom detectors as needed directly within your Lakera Guard policy and immediately start flagging custom fields, all without any code changes.
These detectors integrate with Lakera Guard’s native detectors, for combined analysis in the Lakera Guard dashboard or external security tools, allowing you to monitor and manage them effortlessly.
With just a few clicks, your security team can set up new detectors and ensure consistent security across your entire organization.
[DEMO VID]
Looking Ahead: What’s Next for Lakera Guard
At Lakera, we’re committed to continuously improving our security offerings. Custom regex detectors are just one of the many ways we’re helping organizations take control of their AI security.
As we roll out future updates, we’ll continue to add more customizable features to keep you one step ahead of evolving threats.
See Lakera's Policy Control Center in Action
Join us on October 15th, 2024, at 6 PM CET | 9 AM PT for a live session titled “Product Peek: Lakera’s Policy Control Center – How to Tailor GenAI Security Controls per Application.”
-min%2520(1).jpeg)
In this session, you’ll:
- Explore Lakera’s Policy Control Center and its powerful capabilities for customizing GenAI security controls per application.
- See hands-on demonstrations of how to fine-tune security policies with custom detectors and tailored defenses.
- Learn how top enterprises are managing and scaling security across diverse AI use cases.
- Discover how to centralize security without code changes.
