Skip to main content
A
Docs

Guard

Check AI content against your policies, find personal data, keep an audit trail, raise alerts and make compliance reports.

What Guard does

Anar Guard checks the content that goes to and comes from AI models. It applies your policies, finds personal data and records each check. Your applications can call Guard with a token.

Who uses it

PersonTasks
Administrator (admin)Writes policies, alert rules and webhooks
Other rolesRead and export the audit trail, make compliance reports

Key concepts

ConceptMeaning
PolicyA rule with a type, a list of keywords or patterns, and an action
Rule typekeyword matches words or phrases. regex matches regular expressions. Matching ignores case.
ActionWhat happens on a match: pass, log, warn or block
EvaluationOne check of one piece of content against all active policies
Personal dataNational ID numbers, GCC phone numbers, email addresses, IBANs, payment card numbers and passport numbers
Alert ruleA threshold that you can store. Guard does not evaluate alert rules in this release.
WebhookAn address that receives events from Guard. Guard signs each event.

How Guard decides

  1. Guard checks the content against each active policy.
  2. When more than one policy matches, the strictest action wins: block, then warn, then log, then pass.
  3. Guard also runs a content filter. It looks for harmful words in Arabic and English and for restricted topics. A match raises the action to at least warn.
  4. Guard finds personal data. It returns a copy of the content with each item replaced by a label.
  5. Guard records the check in the audit trail.

Personal data alone does not change the action. To block personal data, create a regex policy for it.

Use the console

ScreenTasks
OverviewSee checks, blocks and warnings over time. Resolve alerts.
PoliciesCreate and change policies. Open a policy to turn it on or off.
PII DetectionPaste text and see the personal data that Guard finds
Safety MetricsSee the results of the content safety model by category
MonitoringSee metrics
Audit TrailSearch the audit trail and export it to CSV
ComplianceRead the compliance summary and export it to JSON. Use the API to make and compare framework reports.

Create a policy

  1. Open Policies and select Create.
  2. Enter a name and a description.
  3. Select the rule type: keyword or regex.
  4. Enter the keywords or patterns.
  5. Select the action.
  6. Save. The policy applies at once to new checks.

Content safety

Guard can classify content with a content safety model. Your administrator connects that model through the Gateway. When no safety model is available, the safety check returns 503. Guard does not mark content as safe without a check.

Compliance reports

Guard makes reports against these frameworks:

  • UAE AI Ethics Principles
  • SDAIA AI Ethics Principles (Saudi Arabia)
  • Qatar National AI Charter
  • Oman AI and Digital Future Program
  • EU AI Act

A report scores your recorded activity against the principles of the framework. Compare two reports to see what changed. For assessments of an AI system, use Comply.

Webhooks

Guard can send a signed test event to a webhook. Alert delivery is not active in this release.

Each event has an X-Guard-Signature header. It holds an HMAC-SHA256 signature, made with the secret of the webhook. The signature covers the JSON payload with sorted keys. Check the signature before you trust an event.