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
| Person | Tasks |
|---|---|
Administrator (admin) | Writes policies, alert rules and webhooks |
| Other roles | Read and export the audit trail, make compliance reports |
Key concepts
| Concept | Meaning |
|---|---|
| Policy | A rule with a type, a list of keywords or patterns, and an action |
| Rule type | keyword matches words or phrases. regex matches regular expressions. Matching ignores case. |
| Action | What happens on a match: pass, log, warn or block |
| Evaluation | One check of one piece of content against all active policies |
| Personal data | National ID numbers, GCC phone numbers, email addresses, IBANs, payment card numbers and passport numbers |
| Alert rule | A threshold that you can store. Guard does not evaluate alert rules in this release. |
| Webhook | An address that receives events from Guard. Guard signs each event. |
How Guard decides
- Guard checks the content against each active policy.
- When more than one policy matches, the strictest action wins:
block, thenwarn, thenlog, thenpass. - 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. - Guard finds personal data. It returns a copy of the content with each item replaced by a label.
- 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
| Screen | Tasks |
|---|---|
| Overview | See checks, blocks and warnings over time. Resolve alerts. |
| Policies | Create and change policies. Open a policy to turn it on or off. |
| PII Detection | Paste text and see the personal data that Guard finds |
| Safety Metrics | See the results of the content safety model by category |
| Monitoring | See metrics |
| Audit Trail | Search the audit trail and export it to CSV |
| Compliance | Read the compliance summary and export it to JSON. Use the API to make and compare framework reports. |
Create a policy
- Open Policies and select Create.
- Enter a name and a description.
- Select the rule type: keyword or regex.
- Enter the keywords or patterns.
- Select the action.
- 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.