شركة أمن البيانات

Request a consultation

Secure AI & Automation

Secure AI Gateway & Guardrails One governed path to every model you approve

We design and build a gateway between your applications and the models you approve, whether open-weight models you run locally or commercial models through their providers' enterprise APIs. Every call then passes one point that checks identity, applies your input and output policies, redacts sensitive data, records what happened and keeps usage within the limits you set.

Request a proposal for this serviceTalk to sales on WhatsApp

Or call sales directly: +966 59 750 4669Sales hours: Sunday–Thursday 9:00–17:00

At a glance

Frameworks

  • OWASP LLM Top 10
  • NCA ECC
  • NCA DCC
  • PDPL

Deliverables

  • Gateway deployed on your chosen deployment option, with its configuration and runbooks
  • Access, input and output policy set for each application
  • Arabic and English redaction rules, with test results on your samples
  • Audit log feed to your SIEM, with the agreed alert events
  • Usage and cost dashboard by team and application
  • Documented limits of each control and what it does not cover

When you need this service

  • Shared keys across applications

    Several teams call models with the same keys, so you cannot tell who sent what, or shut off one application without breaking the others.

  • No record of what left

    Your security team or data protection officer asks which data has reached model providers, and no log can answer.

  • Model costs no one can trace

    The model invoice keeps growing and cannot be allocated to a team, application or use case, and nothing stops a faulty loop from repeating requests and running up the cost.

  • A new AI application is about to go live

    You want policies, redaction, audit and limits in place before it reaches users, without every team building its own controls.

The challenge

Generative AI usually arrives one application at a time. One team builds an assistant, another adds summarisation to a case management system, a third tests a commercial model through its API. Keys are often shared between applications or written into source code, there is no common policy, and a leaked key works for whoever finds it. Illustrative example: a complaints application sends full case texts, national ID numbers included, to a commercial model hosted outside the Kingdom, and nothing shows which cases were sent.

The rules that govern these calls already exist. The Personal Data Protection Law (PDPL) and its Implementing Regulations apply wherever personal data is processed, including in prompts and answers, and sending personal data to a model hosted outside the Kingdom is a transfer question under the Regulation on Personal Data Transfer outside the Kingdom. The National Cybersecurity Authority (NCA) Essential Cybersecurity Controls (ECC-2:2024) require identity and access management and the logging and monitoring of cybersecurity events, and the Data Cybersecurity Controls (DCC) set protection requirements by data classification level. Both are mandatory for the organisations in their scope, which NCA defines as government entities and organisations that own, operate or host critical national infrastructure. The Saudi Data and Artificial Intelligence Authority (SDAIA) Generative AI Guidelines for Government (2024) tell employees of government entities not to enter data classified Restricted or higher, under the National Data Management Office (NDMO) classification, into generative AI tools. Which of these applies to you depends on who you are and what data you process; working that out is part of AI Governance & Regulatory Readiness.

For every call, the gateway records who sent it, to which model, under which policy, what was redacted and what it cost. The OWASP Top 10 for LLM Applications lists prompt injection and sensitive information disclosure among the main risks these applications face; it is an international reference, not a Saudi requirement. The gateway reduces, measures and records these risks; it does not eliminate them. This service does not cover staff using public AI tools, which is Generative AI Data Protection, and it does not build your applications themselves.

How we work

  1. 1

    Map the calls

    We list the applications that call models today or soon will, the models and providers they use, the keys they hold, the data they send and who owns each one. We then agree with you which models are approved, which data classifications may go to each, and which deployment option the gateway runs on.

  2. 2

    Design and build

    We deploy the gateway, connect it to your identity provider, set routing to the approved models, write the input, output and redaction policies in Arabic and English, define quotas and cost allocation, and move keys into managed secret storage. Policies run first in monitor-only mode on samples of your data, so false positives are tuned out before anything is blocked.

  3. 3

    Switch over and hand over

    Applications move to the gateway one at a time, old keys are revoked and audit records flow to your SIEM. Your data stays yours; configurations, documentation and deliverables are handed over as set in the contract. If you want us to run the gateway afterwards, that is Managed AI Platforms & LLMOps.

What is included

  • Identity-based access

    Users and applications authenticate through your identity provider, and permissions set which models, data classifications and features each group may use, in place of shared keys written into application code.

  • Routing to approved models

    One endpoint that routes each request to an approved model, local or commercial, by use case, data classification or cost. Network rules stop applications from bypassing the gateway to reach providers directly, where your architecture allows it.

  • Input policies

    Per-application rules on what may be sent: blocked topics and data types, request size limits, protection of system instructions, and filtering for known prompt-injection patterns in user input and in content retrieved from documents.

  • Output policies

    Checks on answers before they reach the user or another system: sensitive data, disallowed content, and formats a downstream system must not execute without validation.

  • Arabic and English sensitive-data redaction

    Pattern-based and model-based detectors for national ID and iqama numbers, IBANs, medical record identifiers and classification markings. Depending on the policy, the data is masked, replaced with substitute tokens or the whole request is blocked.

  • Audit logs and SIEM integration

    A record of every call with the user, application, model, policy decisions, redactions and token counts, sent to your SIEM. Your policy decides whether the text of prompts and answers is kept.

  • Usage limits, quotas and cost allocation

    Quotas and rate limits per user, application and team, alerts before a budget ceiling is reached, and reports that allocate model cost to the team or cost centre that used it.

  • Key management

    Provider keys are held in your secrets or key management system, not in application code, and are rotated or revoked in one place.

  • Provider abstraction

    Applications call one consistent interface, so changing or adding a model becomes a gateway configuration change followed by testing, not an application rewrite.

Where it can run

Four deployment options, defined the same way across our AI services. The design states which one it meets.

Private hosting
What it meansA dedicated environment for your organisation alone, on your premises or with a hosting provider you choose. Private describes who uses it, not where it is.
What can remain outsideWhatever the design still calls outside the environment, such as a model provider's API, licence checks, telemetry or updates. All of them are listed in the design.
Saudi data residency
What it meansData is stored and processed in data centres inside the Kingdom: documents, prompts, embeddings, logs and backups.
What can remain outsideServices outside the Kingdom can remain, such as a model provider, remote support or telemetry. We name each one and the data it would receive.
Sovereign
What it meansResidency, with encryption keys, administration and change control held by your organisation or a party you approve inside the Kingdom.
What can remain outsideOnly the dependencies you approve in writing. Anything that could move data or control outside is removed or documented as an accepted exception.
Air-gapped
What it meansNo network path to the internet or to outside services. Models run locally, and updates arrive on controlled media after they are checked.
What can remain outsideNone at run time. The trade-offs are slower updates, a choice limited to models you can run locally, and more operational effort.

We state which option a design meets and list what remains outside it. Whether a design satisfies a particular regulation is a conclusion your organisation and its regulator reach; we provide the evidence.

Safeguards and their limits

What each control does, and what it does not do. We state the limits in the design, not after go-live.

  • Sensitive-data redaction

    What it doesPattern-based and model-based detectors find the defined data types in Arabic and English, mask them or block the request before it reaches the model, and log each action.

    Its limitIt reduces exposure and leaves a record; it does not make leakage impossible. Unusual formats, free-text descriptions and data the detectors were not built for can pass. Data that must never leave belongs on a private platform, not behind a redaction rule.

  • Prompt-injection filtering

    What it doesUser input and content retrieved from documents are checked for known injection patterns and for instructions that try to override the system instructions.

    Its limitNew techniques keep appearing, and some will get through. Filtering is one layer, combined with least-privilege access for what each application can reach, output checks, and regular testing through AI Security Assessment & Red Teaming.

  • Output filtering

    What it doesAnswers are checked for sensitive data, disallowed content and unsafe formats before they reach the user or another system.

    Its limitIt can block legitimate content, and it can miss problems phrased in ways the rules do not recognise. We tune its sensitivity with you on samples of your data, and you decide where more false blocks are an acceptable price for tighter control.

  • Usage and cost limits

    What it doesQuotas and rate limits cap requests and spend for each user, application and team, which limits the damage from a runaway loop, a leaked key or unplanned use.

    Its limitThey protect budget and capacity, not the quality or accuracy of answers. A request within limits can still get a wrong answer.

  • Audit logging

    What it doesEvery call is recorded with the caller's identity, application, model, policy decisions and redactions, and the record is sent to your SIEM.

    Its limitLogs record and support investigation; they prevent nothing. Logs that keep prompt text are sensitive in their own right, so retention and access are set with your data protection officer.

Frameworks and regulations

We align the service with the frameworks your organisation is subject to.

  • OWASP LLM Top 10
  • NCA ECC
  • NCA DCC
  • PDPL

Frequently asked questions

Can guardrails stop all prompt injection and data leaks?

No. Guardrails reduce these risks, measure them and record them; they do not eliminate them, and you should be wary of anyone who says otherwise. So we layer the controls: input filtering for known injection patterns, redaction before data leaves, output checks, least-privilege access for each application, and logs that show what happened. Because new injection techniques keep appearing, the gateway is tested before go-live and after significant changes, preferably by a team separate from the one that built it, through AI Security Assessment & Red Teaming. Data that must never leave your control belongs on a private platform rather than depending on redaction.

How is this different from Generative AI Data Protection?

The difference is who calls the model: that service covers your employees using public AI tools, this one covers your own applications. Generative AI Data Protection uses DLP and web security to block or warn when staff paste or upload sensitive data, and to discover unapproved AI tools. The gateway gives your applications one governed path with identity-based access, policies, redaction, audit logs and cost limits. Many organisations need both, and we align the protected data categories so the same definitions apply in each.

Where do prompts, answers and logs go, and can a provider train on them?

It depends on the provider's enterprise terms and the settings we configure, and we show you the configuration rather than ask you to take it on trust. With open-weight models you run locally, prompts and answers stay on the platform you control. With a commercial model through its enterprise API, they pass to that provider under its terms; we switch on the settings that stop training on your data and limit retention where the provider offers them, and redact what must not leave. If the provider processes data outside the Kingdom and the prompts carry personal data, that is a transfer question under the Regulation on Personal Data Transfer outside the Kingdom. The gateway's own logs go where the design puts them, usually your SIEM, with retention and access agreed with your data protection officer.

Does the gateway slow responses down?

Yes, it adds some processing time, and how much depends on which checks run. Routing and pattern-based checks add little compared with the time a model takes to answer; model-based detectors and output checks add more. When answers are streamed as they are generated, you choose per application between holding text back until it is checked and showing it straight away, in which case output checks can stop an answer only after part of it has appeared. We measure the effect before go-live on requests representative of your real use and set the checks per application, so a low-risk internal tool need not carry the same checks as an application that handles personal data.

Can we switch models or providers without rewriting our applications?

In most cases, yes: applications call the gateway's single interface, so changing or adding a model is a configuration change. Features that only one provider offers, such as particular tool-calling or file-handling options, may still need application changes, and we list them in the design. A different model also answers differently, so before you switch, the application's prompts are reviewed and it is re-evaluated against the tests you rely on. Application credentials, quotas, policies and logs stay in place across the change.

How are model costs controlled and allocated?

Spend is controlled by quotas, rate limits and budgets set at the gateway for each user, application and team, and allocated from a usage record of every call. Each record carries the application, team and token counts, so cost goes to the cost centre that incurred it. Alerts warn before a budget is reached, and you decide whether the gateway then blocks, throttles or routes requests to a lower-cost approved model. Lower-cost routing is used only where it has been tested for that use case, because limits protect budget, not answer quality. Models you run locally have no per-call invoice, but the same records show each team's share of the capacity.

How does the gateway connect to our identity provider and SIEM?

Through standard protocols and log formats, without replacing either system. Users sign in through your identity provider with single sign-on (SSO) over a standard protocol such as OpenID Connect or SAML, applications use their own service identities or short-lived credentials instead of shared keys, and groups in your directory map to gateway permissions. Logs reach your SIEM in a structured format through a collection method it supports, and we agree with your security operations team which events raise alerts, such as repeated policy blocks or unusual usage. If your identity platform itself needs work first, that is our Identity & Access service.

Does redaction work on Arabic text?

Yes, for the patterns we define and the detectors we configure or train, tested on samples of your data, and with limits. Structured identifiers such as national ID and iqama numbers, Saudi IBANs, medical record numbers in the formats you use, and classification markings are found by patterns, including numbers typed in Arabic-Indic digits. Names, addresses and free-text descriptions are harder, especially in mixed Arabic and English or where the same word is spelled several ways, so model-based detectors are measured on your samples in monitor-only mode before any policy blocks anything. We report what the detectors catch and miss, you set the sensitivity, and data that must never leave stays on a private platform.

  • Security Solutions

    Generative AI Data Protection

    Keep sensitive data out of tools such as ChatGPT, Gemini and Claude, with block and warn policies and incident logging.

  • Security Solutions

    Identity & Access

    Unified identity, managed privileged access and MFA with a zero-trust approach.

  • Secure AI & Automation

    Enterprise Knowledge AI & Document Intelligence

    Arabic and English assistants that answer from your own documents with their sources and existing permissions, plus document extraction.

  • Secure AI & Automation

    AI Security Assessment & Red Teaming

    Authorised testing of assistants, agents and AI applications for prompt injection, data exposure, cross-user access and tool misuse, with retesting.

Sales

Talk to our sales team

Tell us what you need and we will prepare a proposal for this service, or reach sales directly by call or WhatsApp.

  • Unified number

    9200 33782

    For general enquiries about our services and for existing clients. Reachable from within Saudi Arabia.

  • Mobile (calls and WhatsApp)

    +966 59 750 4669

    The direct sales line, by call or WhatsApp: a quick quote or a question about this service, and for existing clients.

  • Address

    3173 Al Abbas Ibn Abdulmutalib, At Taawun, Riyadh 12475

    Open the map ↗
  • Looking for a job at DataSec? Open roles