Test policies against real conversations
LLM chats created a new route for sensitive data to leave the company. Rules based on people and apps couldn’t explain what would happen to the content of a message.
Try a message. Check the rule. Try again.
Try the same message against two example policies. The app rule blocks access; the content policy checks what the message contains.
Rule-based policy
Describes conditions
- IfGroup is Sales
- AndApp is ChatGPT
- ThenBlock
App blocked · Sales + ChatGPT
Prompt-based policy
Looks at the message content
A safe place to test policies
I proposed a chat-style simulation panel beside the policy editor. Admins could test real messages, inspect what was blocked or anonymized, then refine the matching rule, all before applying the policy to employee conversations.
Choosing the side panel
I compared a quicker-to-build modal with a chat-style side panel. The chat pattern matched how people send data to an LLM, making policy testing feel familiar.
Hover or select an option to compare
Why the panel
People share data with LLMs through chat. I used the same pattern so admins could test policies through the conversations those policies would protect.
I compared both layouts with around 10–12 colleagues across four policy tasks. The internal evaluation favored the side panel.
From a result to its rule
Test a message, inspect what was blocked or anonymized, then open the matching rule. The loop shows how an admin moves from a result to the setting behind it.
A clearer wait
Tests could take up to 30 seconds. I recognized an opportunity to make that wait educational: show when policies were updating and when the message was being tested, to make the process clearer and build trust in the result.
Sensitive data anonymized
Updating policies
Loading your latest policy changes so the test uses the current rules.
Stronger policies across more use cases
After launch, security analysts reported improvements in their day-to-day policy work:
- Fewer policy issues
- Testing real messages helped analysts identify and resolve problems in their policies.
- New protection gaps uncovered
- Simulation surfaced overlooked data sources and scenarios their existing rules did not cover.
- Broader policy coverage
- Analysts used those findings to refine policies for a wider range of real-world use cases.