Azure OpenAI Penetration Testing
Last updated:
Azure OpenAI access depends on Entra ID roles, resource firewall rules and content filters your team configured. We test each one, and the tools the application lets the model call. EJN Labs is a CREST-accredited UK company providing Azure OpenAI penetration testing, from £6,020 for a 5-day single-application scope, quoted within 24 hours.
- Unlimited retesting
- Unlimited pre-retesting
- No hidden fees
“I would highly recommend EJN Labs to any organisation seeking reliable, detailed, and well-managed penetration testing services, particularly for government or enterprise-level projects.”
“There wasn’t another company we could find that could deliver what we needed in the timeframe we needed. The client loved it, and we got instant ROI from the engagement.”
On Azure OpenAI, who can call a model is decided by keys or Entra ID roles, which networks may reach the resource, and what the content filters let through.
How Azure OpenAI decides who can call your models
An Azure OpenAI resource can be called with an API key or with a Microsoft Entra ID token. Microsoft’s managed identity guidance shows how to call the resource without storing a key, by granting an identity the Cognitive Services OpenAI User or Cognitive Services OpenAI Contributor role, and says Entra ID authentication needs a custom subdomain on the resource. Key access can be switched off with the disableLocalAuth property or an Azure Policy. A review starts by finding which of the two your application really uses, and whether the keys still work after the move to roles.
The network is the second control. Microsoft states that Azure AI services resources accept connections from clients on any network by default, and that network rules have no effect until the default action is set to deny. Private endpoints can then be the only way in. Your application reaches this resource through other services, which may include a gateway like the one in our Azure API Management security review, so we test the route as a whole and not only the resource setting.
Content filters are the third. Microsoft’s content filtering documentation lists Prompt Shields for direct attacks as on by default and Prompt Shields for indirect attacks as off by default, and the default thresholds filter medium and high severity content in four harm categories. Filters are a control worth testing, not a boundary to assume: what the model can call and whose data it can read is decided by your own code, which we cover in our AI penetration testing.
SCOPE
What we test in an Azure OpenAI penetration test
API Keys, disableLocalAuth and Where Keys Are Stored
Local authentication with keys can be disabled through the disableLocalAuth property, and Microsoft provides a policy for it. We check whether it is set, whether keys are still used by any service or script, and search code, pipelines, app settings and Key Vault access for a key that can still call the resource.
Cognitive Services OpenAI User and Contributor Roles
The User role lets an identity make inference calls, and the Contributor role goes further. We list every role assignment on the resource, resource group and subscription, and flag people and applications holding a broader role than their job needs.
Inherited Subscription Roles and Custom Roles
Microsoft notes that Owner and Contributor roles at subscription level are inherited and take priority over the custom Azure OpenAI roles at resource group level. We test whether an identity with a broad role higher in the hierarchy can reach deployments and settings that the resource-level assignments were meant to restrict.
Managed Identity of the Calling Application
An application running in Azure can call the resource through a managed identity that holds a role assignment. We review which identity each App Service, function or container uses, what else that identity can reach, and whether compromising the web application would hand an attacker its token.
Resource Firewall and the Default Network Action
Microsoft states resources accept connections from any network by default, and that network rules do nothing unless the default action is deny. We test from outside your allowed ranges and subnets, and check the IP rules, virtual network rules and trusted-service exceptions for access that is wider than intended.
Private Endpoints and Public Network Access
Microsoft describes disabling network access so that private endpoint connections are the only way to reach the resource. We confirm that the public endpoint refuses requests, check what resolves to the private address from inside the network, and look at which workloads and users can reach it from there.
Content Filter Configuration and Prompt Shields
Filters default to medium severity in four categories, Prompt Shields for indirect attacks start off, and turning filters off for completions needs Microsoft approval. We review each deployment’s filter configuration and test whether direct and document-borne injection and harmful requests get through to your application.
Function Calling and the Permissions Behind It
Microsoft’s function calling guidance is to validate the calls the model generates, use trusted data, and give functions least privilege, with read-only database access as its example. We test each function your application exposes for missing authorisation, unsafe arguments, and what a model steered by hostile input can make it do.
On Your Data, AI Search Indexes and Document-Level Access
Where the model answers from your documents, Azure AI Search roles and document-level access control decide what each user can retrieve, and Microsoft says the latter trims results by Entra group membership. We test whether a user can retrieve another group’s documents, and whether retrieved content can carry instructions into the answer.
Logging, Diagnostic Settings and Output Handling
Azure Monitor resource logs are not collected until a diagnostic setting routes them somewhere. We check what is logged and who can read it, whether prompts and completions with personal data land in broadly readable stores, and how your application handles model output before rendering it or acting on it.
OUR PROCESS
Azure OpenAI Penetration Testing: From Scope to Attestation
Scope and Access
We agree the Azure subscription, the OpenAI resource and deployments, and the application in scope, and get a role for each privilege tier plus read access to the resource configuration.
Access and Network Mapping
We map every key, role assignment, managed identity, network rule and filter setting that touches the resource, and every tool and data source the application gives the model.
Manual Testing
A CREST-certified tester manually tests the roles, network paths, filters, tools and retrieval with real accounts, chaining findings where they compound.
Attestation and Retest
You get a technical report with CVSS scores and reproduction steps, a walkthrough call, a free retest once fixes are deployed, and an attestation letter for auditors.
CREDENTIALS
Verified Accreditations Auditors Accept
Every credential below is independently verifiable. UK procurement teams, FCA supervisors, ISO 27001 / SOC 2 auditors, and cyber insurance underwriters all recognise these standards.
GET YOUR QUOTE
Get a CREST Azure OpenAI pen test quote in 24 hours
A fixed-price quote back in one business day, from a named CREST assessor. No sales pipeline, no chasing.
- CREST and IASME accredited. Testing your auditors and clients already recognise.
- Fast-track testing within 24 hours where required. Free retest of every fix included.
- Live findings via your client portal, not a four-week PDF.
- Fixed price from £3,500 for a single-role, single-app scope, agreed up front. Most engagements run £5,000 and up. No day-rate surprises.
Under NDA Further named references available on a scoping call.
- We reply within one business day with a fixed-price quote from a named CREST assessor.
- You approve the scope and we book a start date, usually within 24 hours.
- Live findings land in your client portal as we test, with a free retest of every fix.
Get your fixed pen test quote in 24 hours
Quote request received
We will reply within one business day with your fixed-price quote from a named CREST assessor.
Your data stays with us. No newsletter signup.
or book a 20-min scoping call first
We reply within one business day. Your data stays with us. No newsletter signup.
COMPLIANCE READY
Reports Mapped to Every Framework
Findings are written so your team can reference the report against each framework without translation work.
ISO 27001:2022
Annex A.8.8 management of technical vulnerabilities plus A.5.15-5.18 and A.8.2-8.5 access control validation.
SOC 2 Type I & II
CC6 logical access, CC7 system operations, CC8 change management evidence.
PCI DSS
Requirement 11.4 application penetration testing across cardholder data environments, including ecommerce penetration testing for online retail platforms.
FCA SYSC
SYSC 4.1.1R, 6.1.1R, 13 mapped to each finding for FCA-regulated firms.
UK GDPR
Article 32 effectiveness testing, customer-data security controls, ICO-acceptable evidence.
Cyber Essentials Plus
Direct certification through our IASME body status, single-vendor delivery.
PRICING
Transparent Azure OpenAI Penetration Testing Pricing
EJN Labs Azure OpenAI Penetration Testing prices start at £6,020. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.
Depends on AI system complexity
Single LLM-powered chatbot, basic RAG (≤100 documents), no agent tools. Around 5 to 7 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Multi-tool agent system, complex RAG pipeline, fine-tuned model, multi-tenant. Around 8 to 12 working days from kickoff to report.
Get a fixed quoteDepends on AI system complexity
Production AI platform, multi-agent orchestration, regulated AI use case (FCA, NHS), custom-trained models. Around 12 to 18 working days from kickoff to report.
Get a fixed quoteSECTORS
Sectors We Test Azure OpenAI For
Sector-specific scoping for regulated UK organisations.
Fintech & FCA-Regulated
FCA SYSC, Open Banking FAPI 1.0, PSD2 SCA, payment-flow scrutiny, KYC/AML testing.
Fintech sector pageSaaS Companies
SOC 2 Type I & II evidence, multi-tenant boundaries, role escalation, customer-tenant isolation.
SaaS sector pageLaw Firms
SRA Cyber Standard, privileged data, conveyancing fraud defence, partner-tier procurement.
Law firm sector pageHealthcare
NHS DTAC, DSP Toolkit v6, UK GDPR Article 32, EHR systems, telehealth platforms.
Healthcare sector pageInsurance
FCA / PRA Operational Resilience, cyber underwriting, claims data, broker portals.
Insurance sector pagePublic Sector
CCS / G-Cloud framework, NCSC-aligned, citizen-facing services, PSN-compliance scrutiny.
Public sector pageWHY EJN LABS
What You Get From Azure OpenAI Penetration Testing
Six concrete differentiators competitors don’t all match.
CREST-Certified Testers, Verifiable
Every test by a CREST-certified pen tester (CRT, CCT APP, CCT INF where applicable). Verify our company status at crest-approved.org.
24-Hour Startup, Where Required
From signed scope to active testing in a single business day for incident response, audit deadlines, or regulator-driven timelines.
Live Findings, Not 4-Week PDFs
Critical issues reported during testing through your client portal. Your team remediates while testing continues.
Audit-Ready Reports
Executive summary plus full technical report with CVSS scores and explicit framework mappings (ISO 27001, SOC 2, PCI DSS, FCA SYSC).
Free Retests, Standard
Verify remediation of every finding before close-out. Letter of attestation for audit submission included. Most competitors charge £1,500-£3,000 per retest.
UK-Based CREST Testers
Every engagement performed by vetted, UK-based CREST-certified testers, matched to your needs, security clearance, and compliance scope.
FAQ
Frequently Asked
What access do you need to test our Azure OpenAI application?
We need test accounts for each user role, the application URL, and a Reader role on the subscription or resource group so we can review role assignments, network rules and filter settings without changing them. If key access is still enabled, we agree how test keys are handled before testing starts.
Will testing touch live data?
That is your choice, and we agree it before testing starts. We recommend a non-production copy of the application and its OpenAI deployment, with seeded test documents, because injection tests are designed to make the application act. We do not run destructive tests or read real customer data without written agreement.
How long does an Azure OpenAI penetration test take?
A single application using one Azure OpenAI resource, a few deployments and one retrieval source sits in our 5-day single-application scope, with the report typically landing around 5 to 7 working days after kickoff. Several applications, subscriptions or agent workflows move into a larger scope.
Do you test the Azure OpenAI service itself?
No. We test your application and the way you configured and connected the resource. Microsoft’s platform, shared infrastructure and models are out of scope, and we do not try to defeat Microsoft’s own safeguards.
What is out of scope?
Microsoft’s platform, infrastructure and other customers’ tenants are out of scope. We test what you control: your roles, keys, network rules, filter configuration, application code, tools and retrieval stores. Connected systems such as your identity provider or data platform are scoped and quoted separately.
Does Microsoft place rules on customer penetration testing?
Yes. Microsoft’s Rules of Engagement cover penetration testing of Microsoft online assets, which include AI services. They prohibit denial-of-service testing and network-intensive fuzzing, and testing of tenants you do not own or have permission to test. We confirm Microsoft’s current terms with you during scoping and test to them exactly, against your own resources only.
We use Azure OpenAI through API Management or a copilot front end. Does that change the test?
It adds to it. The gateway or front end is part of the route to the model, so we test its authentication, rate limits and what it forwards, as well as the resource behind it. We scope the pieces you own and quote anything that needs a separate review.
Is EJN Labs CREST accredited?
Yes. EJN Labs is a CREST-accredited company, and every Azure OpenAI engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.
20+ CREST-accredited testing services in one place
Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.
Get a fixed price for your Azure OpenAI application
Azure OpenAI access depends on Entra ID roles, resource firewall rules and content filters your team configured. We test each one, and the tools the application lets the model call. EJN Labs is a CREST-accredited UK company providing Azure OpenAI penetration testing, from £6,020 for a 5-day single-application scope, quoted within 24 hours.



