Skip to main content
Sec0 compliance packs let you define custom rules that scan tool inputs and outputs for policy violations at runtime. Rules can be regex patterns (fast, deterministic) or natural-language instructions (flexible, LLM-evaluated). Compliance packs are defined in the policy YAML and evaluated by the middleware on every tool invocation.

Defining Compliance Packs

A compliance pack is a named collection of rules:

Attaching Packs to Policies

Link compliance packs to enforcement policies:

Rule Types

Regex Rules

Fast, deterministic pattern matching:

Natural Language Rules

Flexible, LLM-evaluated instructions:
The threshold (0-100) controls sensitivity. Higher values require stronger confidence before triggering.

Rule Locations

Rule Properties

Findings

When a compliance rule matches, a finding is emitted in the audit envelope:

Integration with Enforcement

Compliance findings feed into the standard enforcement pipeline:

Example: Multi-Regulation Compliance