When you need this service
An assistant or agent is about to go live
It answers from your documents or acts in your systems, and nobody has yet tried to make it misbehave on purpose.
A live system with no security testing
Users rely on it today, whether you built it or bought it, and it has had no security testing beyond the functional checks done at launch.
The board or a regulator asks for evidence of testing
You are asked to show that the system was tested, by whom, against what, and what was fixed.
A significant change to the system
A new model, new data sources or new tools for an agent change what can go wrong, and the last test no longer covers it.
The challenge
An AI assistant takes instructions from its users, and may also follow instructions it finds in a document, email or web page it reads; an agent can act on them as well. That opens weaknesses a standard penetration test does not look for: a sentence hidden in a document that overrides the system's instructions, an answer that quotes another user's files, a tool called for a purpose nobody approved. Illustrative example: an email to a customer-service AI agent carries hidden text telling it to forward the conversation history to an outside address; if the agent can send email without an approval step, it may comply.
Existing Saudi requirements already reach these systems where they apply, although none was written for AI testing. The National Cybersecurity Authority (NCA) Essential Cybersecurity Controls (ECC-2:2024) are mandatory for government entities and organisations that own, operate or host critical national infrastructure, as NCA defines them; their subdomains include penetration testing and cybersecurity in IT project management, and an AI application in their scope is a technology system like any other. The Saudi Central Bank's Cyber Security Framework (SAMA CSF) is a sector requirement for the financial institutions SAMA regulates, and it calls for penetration testing of customer-facing and internet-facing services, which can include an AI assistant that serves customers. Alongside these requirements, the Saudi Data and Artificial Intelligence Authority (SDAIA) AI Ethics Principles (2023) set the principles for developing and using AI, among them privacy and security, and reliability and safety. NCA's Draft AI Cybersecurity Guidelines (AICG-1:2026), put out for public consultation in July–August 2026, are still a draft: they show the direction of travel and create no obligation. 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.
We base the tests on the OWASP Top 10 for LLM Applications and MITRE ATLAS, and our findings can be used in the Measure function of the NIST AI Risk Management Framework (AI RMF 1.0) and its Generative AI Profile. These are international references, not Saudi requirements. This service assesses systems; it does not build or fix them, and fixing is separate work. We test a system only with its owner's written authorisation, and a third party's service only with that provider's permission. The report shows what was found within the agreed scope at the time of testing; it is not a statement that the system is secure.
How we work
- 1
Scope and authorise
We agree in writing what is tested: the assistant or agent, its retrieval sources if it uses retrieval-augmented generation (RAG), the tools it can call, its APIs and the infrastructure around it. The rules of engagement set the environment, test accounts at different permission levels, techniques that are out of bounds, contacts and how testing is stopped, and the system owner signs them. If the system relies on a third party's model or service, we check that provider's terms first. We prefer synthetic or de-identified test data; where real personal data is within reach, the authorisation sets how we handle it, because using it in testing is processing under the Personal Data Protection Law (PDPL).
- 2
Test and repeat
We combine manual testing with automated attack sets in Arabic and English that cover each area in scope, from prompt injection to cost abuse. Each attempt is repeated and logged with its exact input, the response and the conditions. When we confirm a critical finding, we report it to your named contact in the way set in the rules of engagement, without waiting for the report.
- 3
Report and retest
You receive a findings report mapped to the OWASP Top 10 for LLM Applications and MITRE ATLAS, with severity, reproduction steps, reproducibility and remediation guidance, and we walk your teams through it. Your team or the system's builder makes the fixes; we then retest the fixed findings and issue a retest letter. Your data stays yours; documentation and deliverables are handed over as set in the contract, which also sets whether test evidence is returned to you or deleted.
What is included
Direct and indirect prompt injection
Whether instructions typed by users, or hidden in documents, emails, web pages or tool results the system reads, can override its intended behaviour.
Jailbreaks and guardrail effectiveness
Role-play, multi-turn, encoding and Arabic–English switching techniques against the system's restrictions, and variations of known attacks against your filters and redaction rules, so you see what they catch, what they miss and what they block by mistake.
Sensitive-data exposure
Attempts to extract system instructions, keys or connection details, documents beyond the user's permissions, and personal data in answers, logs or error messages.
Cross-user and cross-tenant access in RAG
Whether retrieval respects document permissions, whether one user can reach another's conversations or uploaded files, and whether tenants, the organisations or departments that share an index or platform, stay separated.
Agent and tool misuse (excessive agency)
Whether an agent can be steered into calling tools, changing records, sending messages or spending resources beyond its purpose, and whether approval steps and permission limits hold when someone tries to manipulate it.
Insecure handling of model output
Whether model output passed to a browser, database, script or another system can carry code, links or commands that the receiving system runs without validation.
Resource and cost abuse
Requests built to exhaust tokens, quotas, compute or the model budget, and whether your rate and cost limits stop them.
Surrounding application, APIs and infrastructure
Authentication, sessions, APIs, the vector store, keys and credentials, and hosting, tested with our Penetration Testing team so AI-specific and conventional findings sit in one report.
Frameworks and regulations
We align the service with the frameworks your organisation is subject to.
- OWASP LLM Top 10
- MITRE ATLAS
- NIST AI RMF
- NCA ECC
Frequently asked questions
What exactly do you test?
The AI system as your users and connected systems reach it, within the scope you sign. That normally covers the model's behaviour through your application, the retrieval layer and its document permissions, the tools and actions available to an agent, how other systems handle its output, and your guardrails and cost limits. The surrounding application, APIs and infrastructure are tested with our Penetration Testing team. We reach the model only through your application and do not test the model provider's own infrastructure. The rules of engagement list each component in scope and each one left out.
How is this different from a standard penetration test?
It tests what a standard penetration test leaves out: how the model behaves, what it reads and what it can do. A penetration test checks authentication, APIs, configuration and infrastructure; it does not check whether a sentence hidden in a document can make an assistant reveal another user's files or call a tool. Here, ordinary language is the attack input and results vary between runs, so the method and the reporting differ. The two are often run together, with our Penetration Testing team covering the conventional part. Red teaming in this service means attacking the AI system itself; finding out whether your security operations centre (SOC) would detect an attack on it is the scope of our Red Team service.
Can you test an AI feature from a software vendor or a cloud service?
Yes, but only within what the provider allows. Before we start, we read its terms and any testing policy it publishes: some providers allow testing of your own configuration and tenant but forbid attacks on shared infrastructure, and some require notice first. Where the terms do not allow a test, we do not run it. We test what is yours instead, such as your configuration, the data you connect, user permissions and how your systems use the output, and the report states what could not be tested and why.
Do you test in production or in a test environment?
We prefer a test environment that matches production, and test production only if you authorise it in writing, within agreed limits. Testing can change data, send messages, consume model budget and leave traces in logs and indexes, so a separate environment is safer. Where production has to be tested, for example because the test environment lacks the real tools or data connections, we agree test accounts, seeded documents, rate limits, set testing windows and a stop procedure, and point agent actions at test targets or put them behind prior approval. The report records any difference between the environment tested and production.
How are findings rated and mapped?
Each finding gets a severity based on its impact and likelihood in your context, and is mapped to the matching entry in the OWASP Top 10 for LLM Applications and MITRE ATLAS. Severity weighs what data or action is exposed, who can trigger it (an outside user, a signed-in user or an insider) and how reliably it reproduced. Findings in the surrounding application or infrastructure also carry a Common Vulnerability Scoring System (CVSS) score. For organisations in the scope of NCA ECC, we can also show which ECC subdomains each finding relates to; this is a reference mapping, not a compliance assessment.
Is there a retest?
Yes. Once your team or the system's builder has made the fixes, we retest the findings in scope and issue a retest letter. The retest repeats the original inputs the same number of times and adds variations of them, so a fix that blocks only one wording shows up. The letter records each finding as closed, partly closed or still open, and the conditions it was retested under; closed means it did not reproduce in the agreed number of attempts. The number of retests and the period for them are set in the contract.
Can you test a system DataSec built for us?
Yes, with testers who took no part in the design or delivery of that system, and the report states this separation and any information or tooling the testers share with the delivery team. If your policy, your board or a regulator requires a tester independent of the company that built the system, choose another tester; the system documentation they need can be provided as set in the contract.
How do you deal with answers that change between runs?
We repeat each test and report how often it succeeded, rather than the result of a single run. Model output varies with sampling settings, conversation context and model version, so one success shows a weakness exists while one failure does not show it is absent. Each finding states the number of attempts and successes, the exact inputs, and the model version and settings where we can see them. A weakness that succeeds rarely can still be rated high if its impact is serious.
Related services
Assess & Test
Penetration Testing
Application, network and infrastructure testing with recognised methodologies and an actionable report.
Assess & Test
Red Team
A realistic adversary simulation that measures your ability to detect and respond.
Secure AI & Automation
Secure AI Gateway & Guardrails
One governed path to approved models: identity-based access, prompt and output policies, sensitive-data redaction, audit logs, and usage and cost limits.
Secure AI & Automation
AI Governance & Regulatory Readiness
AI policies, a system inventory, risk classification, human oversight and evidence mapped to the Saudi requirements that apply to you.
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 33782For general enquiries about our services and for existing clients. Reachable from within Saudi Arabia.
Mobile (calls and WhatsApp)
+966 59 750 4669The direct sales line, by call or WhatsApp: a quick quote or a question about this service, and for existing clients.
Email
info@datasec.sa- Looking for a job at DataSec? Open roles

