Skip to content

Chat security

The conversation between an agent and its model. Five checks, applied on the way in, on the way out, or both, and tuned to the risk you actually care about.

The conversation, both ways

Chat security covers the traffic between an agent and the model it calls. A prompt on the way out, a response on the way back, each screened by its own configuration.

Prompt injection runs inbound only. Every other check can be enabled in either direction.

Point Applies to When it runs
Chat inbound Prompts on their way to the model Before the call
Chat outbound Responses on their way back to the agent After the call
Capability Chat inbound Chat outbound
Prompt Injection Yes No
PII Scanner and Vault Yes Yes
Language Scanner Yes Yes
Content Yes Yes
Custom Filter Yes Yes

Create a configuration

Under Configuration → Firewall you create and manage the configurations of both chat enforcement points. A configuration is a named set of checks you reference from your agent by its UUID.

Firewall configurations, one card per configuration.

When you select New Configuration, MATVIS asks how you want to set it up:

  • Bundle config: all four enforcement points (Chat Inbound, Chat Outbound, Tool Call, Tool Response) in one form, one tab per point. A single save creates four configurations, named <name> (inbound), <name> (outbound), <name> (tool call) and <name> (tool response). The four points of one use case stay in step.
  • Standalone config: a single enforcement point on its own.
The choice shown when you create a configuration.

For a standalone chat configuration:

  1. Go to Configuration → Firewall and select New Configuration, then Standalone config.
  2. Choose the enforcement point: Model Inbound (chat inbound) or Model Outbound (chat outbound).
  3. Choose whether to enable Monitoring mode.
  4. Turn on and set the checks this point should apply.
  5. Select Create Configuration and note its UUID.
Name, enforcement point, monitoring mode and the checks.
The Bundle form, one tab per enforcement point.

To use MATVIS with Open WebUI you need at least a chat inbound and a chat outbound configuration. See Integrations.

Severity and monitoring

Every check is set up the same way, in Chat security and in Agent security.

Severity

Each check returns a severity level for what it found, from 0 to 10, and you set the line at which that becomes a block with the Block from severity slider. Low (2), Medium (5) and High (8) are marked. Severity ascends with danger, so a lower line blocks more, at the cost of more false positives. The line is set per configuration, so two configurations can be stricter or more permissive about the same thing.

Monitoring

Any configuration can run in monitoring mode. Violations are detected and recorded in Firewall Analytics exactly as they would be in enforcement, but nothing is blocked. It is the safe way to compare a policy against live traffic before switching it on.

Edit or delete

Open any configuration from the list to edit its checks, or delete the ones you no longer use. Changes take effect on the next request.

A configuration in use cannot be deleted

A firewall configuration or a tool that a model configuration uses cannot be deleted.