TECHNOLOGIES: PRISMA

Prisma Security Review

Last updated:

Prisma sends tagged-template raw queries as prepared statements, but string-built queries and the Unsafe methods reopen SQL injection. We test those paths, and what the database credential behind them can reach. EJN Labs is a CREST-accredited UK company providing Prisma security reviews, from £2,750 for a 2-day single-application scope, quoted within 24 hours.

  • Unlimited retesting
  • Unlimited pre-retesting
  • No hidden fees
Accredited & recognised
Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified Crown Commercial Service supplier UK Cyber Security Council member
CREST
Approved Provider
10
Prisma Test Areas
FREE
Retest Until Closed
24h
Scope to Active Test
CLIENT REFERENCE
“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.”
SquareOneImran SaghirProject Lead, SquareOneRead the SquareOne case study →
CLIENT REFERENCE
“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.”
CelloriDan WilcocksonFounder, CelloriRead the Cellori case study →
See all case studies →
WHY IT MATTERS
Raw SQL

Prisma’s query API keeps your input out of the SQL text. Every raw query in your code is a place where your own developers decide whether that is still true.

How Prisma keeps input out of your SQL

Prisma’s documentation separates the safe raw methods from the risky ones. Prisma’s own guidance is that the ideal way to avoid SQL injection is to use the ORM models wherever possible. Where raw SQL is needed, the tagged-template forms of $queryRaw and $executeRaw send every variable as a prepared statement parameter. The same page says the methods with Unsafe in the name are at significant risk of SQL injection, and shows that the tagged-template methods themselves become vulnerable when a query is built by string concatenation or passed through Prisma.raw. A review reads every raw call in the codebase and traces each value back to its source.

Where you use Prisma Postgres, the database credential is the next thing to check. Prisma states that every credential has the same full access to its database, and that you cannot make one read-only or limit it to certain tables, schemas or Postgres roles. Generating a new credential does not remove the old ones, so the number of live passwords depends on how carefully your team has deleted them. Prisma’s advice is one credential per app or service, so that one password can be deleted without breaking the others.

Prisma Client can also scope queries for you. Its query extensions can bind a client to a specific filter or user, which Prisma gives as the way to build user isolation in a row-level security extension. That puts tenant separation in your application code, so we test it the way we test any multi-tenant application. Prisma sits on top of an ordinary database, so the roles, grants and schema checks in our PostgreSQL security review still apply underneath.

SCOPE

What we test in a Prisma security review

PR-01

Raw Queries and Tagged Templates

Prisma’s tagged-template $queryRaw and $executeRaw send variables as prepared statement parameters, but template variables can only stand in for data values, not for table names, column names or SQL keywords. We find every raw query in your code and check what each variable is, where it comes from and whether the query text is fixed.

PR-02

Unsafe Methods and Prisma.raw

$queryRawUnsafe and $executeRawUnsafe take a raw string, and Prisma documents them as being at significant risk of SQL injection. Prisma also shows Prisma.raw and a hand-built template array as ways to make the safe methods vulnerable. We search for all of them and try injection payloads through every input that reaches one, including sort fields, filters and search boxes.

PR-03

Tenant Scoping in Query Extensions

Prisma query extensions can add a filter to every operation on a model, to every model, or to the top-level raw query operations. We read how your extension applies the tenant or user filter, then test with two accounts whether any route, nested relation read or raw query can return another tenant’s rows.

PR-04

Omitted Fields and Sensitive Columns

Prisma’s omit option removes named fields, such as a password hash, from the result of one query or from every query on the client. We check what each endpoint actually returns against the fields it should return, and whether a select or include on a related model brings a sensitive column back into an API response.

PR-05

Connection Strings and Environment Files

A Prisma connection URL carries the database host, user and password, and Prisma ORM 7 reads it from an environment variable or a dotenv file that your code loads. We search repositories, front-end bundles, build logs, container images and CI settings for a connection string that has ended up somewhere it can be read.

PR-06

Prisma Postgres Credentials

Every Prisma Postgres credential has full access to its database, cannot be made read-only, and is not removed when a newer one is generated. We list the credentials in use, check each app has its own, and flag shared or old ones, including any credential held by a service that only needs to read.

PR-07

Pooled and Direct Connections and TLS

Prisma Postgres gives two connection strings that share one set of credentials: a pooled one for application traffic and a direct one for migrations and admin tooling. Prisma’s connection strings carry an SSL setting for every connection. We check which string each runtime uses, that the application does not run on the direct string, and how your database clients verify the connection.

PR-08

Query Logging and Parameter Output

Prisma Client can log query events, and Prisma’s own example prints the query text and its parameters to the console. We check the log settings in each environment and look in application logs and log shipping for personal data, tokens or secrets that end up in logged parameters.

PR-09

Management API Service Tokens and OAuth

Prisma’s Management API accepts service tokens, which are bearer tokens for scripts and CI/CD, and OAuth 2.0 for apps that act for users. Tokens created before Prisma’s October 2026 default have no expiry, and a leaked token stays valid until it is revoked. We inventory tokens in pipelines and automation, test what each can do, and check OAuth redirect and PKCE handling in any app you publish.

PR-10

MCP Server, Migrations and Coding Agents

Prisma’s MCP server lets AI tools create databases, change the schema and run SQL, and Prisma states that its CLI guardrails for destructive commands do not apply to MCP tool calls. We review which agents and workspaces are connected, what each can change, and whether any of them can reach a production database.

OUR PROCESS

Prisma Security Review: From Scope to Attestation

01

Scope and Access

We agree which application, Prisma schema and databases are in scope, and get read access to the code plus an account for each privilege tier.

02

Query and Credential Mapping

We map every raw query, extension, connection string and credential, and every service token and connected tool that can reach the database.

03

Manual Testing

A CREST-certified tester manually tests injection paths, tenant separation and credential exposure with real accounts, chaining findings where they compound.

04

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 Prisma 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.
What clients say
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.
CelloriDan WilcocksonFounder, Cellori

Under NDA Further named references available on a scoping call.

What happens next
  1. We reply within one business day with a fixed-price quote from a named CREST assessor.
  2. You approve the scope and we book a start date, usually within 24 hours.
  3. Live findings land in your client portal as we test, with a free retest of every fix.
Accredited & recognised
CREST member Cyber Essentials certified Cyber Essentials Plus certified IASME certifying body ISO 27001 certified ISO 9001 certified UK Cyber Security Council Crown Commercial Service supplier

Get your fixed pen test quote in 24 hours

⚡24h reply ✓CREST tester ↻Free retests

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 Prisma Security Review Pricing

EJN Labs Prisma Security Review prices start at £2,750. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.

✦ ALWAYS · ON EVERY TIER · NO EXCEPTIONS ✦
✓Free retests, no time limit
✓Free rescheduling
✓No cancellation fees
✓24-hour scope to active testing
✓Live findings to client portal
✓Executive + technical report
✓60-min walkthrough call
✓Letter of attestation
SMALL / SMB
£2,750–£4,270
2 to 3 testing days

Single user role, basic CRUD application, marketing website with auth. Around 5 working days from kickoff to report.

Get a fixed quote
ENTERPRISE
£6,580–£9,640
5 to 8 testing days

Multi-tenant platform, complex authorisation matrix, integration-heavy applications. Around 15 to 20 working days from kickoff to report.

Get a fixed quote

Full UK pen test cost guide

WHY EJN LABS

What You Get From Prisma Security Review

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 Prisma application?

We need read access to the repository, including schema.prisma and the code that calls Prisma Client, and a test deployment with an account for each user role in scope. A second account in each role lets us test one user against another. Database access is only needed if you want the credentials and grants reviewed directly.

Will testing touch live data?

That is your choice, and we agree it before testing starts. We prefer a staging copy that runs the same code and the same queries, with a separate database credential. We do not run destructive tests or export real customer data without written agreement.

How long does a Prisma security review take?

A single application with one Prisma schema sits in our 2-day single-application scope, with the report typically landing around 5 working days after kickoff. Several applications, many raw queries or a large multi-tenant model move into a larger scope with more testing days.

Does it matter which database sits behind Prisma?

The Prisma-specific checks, such as raw queries, extensions and omitted fields, apply whatever the database is. Prisma Postgres adds its own checks, such as credentials and connection strings. For a database you host yourself, the database-level review in our PostgreSQL, MySQL or other database pages applies underneath.

Do you review the code as well as test the running application?

Yes. Raw queries are found fastest by reading the code, and then confirmed by testing the running application with real inputs. A code-assisted review finds every raw call, where a black-box test would only find the ones it can reach.

What is out of scope for a Prisma security review?

We never test Prisma’s own platform, Console or hosting infrastructure. We test what you build and configure: your schema, queries, extensions, credentials, tokens and the application that uses them. A connected system such as your identity provider or hosting platform is scoped and quoted separately.

Does Prisma place rules on customer penetration testing?

Prisma’s Terms of Service list scanning or testing the security of third-party systems without authorisation, and circumventing security measures, as prohibited actions. We confirm the current terms with you during scoping and test to them exactly. Our testing is limited to your own application and database, at a volume agreed in advance, and never targets other customers or Prisma’s shared services.

Is EJN Labs CREST accredited?

Yes. EJN Labs is a CREST-accredited company, and every Prisma engagement is carried out by UK-based, CREST-certified testers. Your report and attestation letter are recognised by auditors and insurers accordingly.

EXPLORE EVERY SERVICE

20+ CREST-accredited testing services in one place

Web, mobile, API, cloud, AI, infrastructure, red team. Pick the test that fits your environment.

Penetration testing services
READY TO START

Get a fixed price for your Prisma application

Prisma sends tagged-template raw queries as prepared statements, but string-built queries and the Unsafe methods reopen SQL injection. We test those paths, and what the database credential behind them can reach. EJN Labs is a CREST-accredited UK company providing Prisma security reviews, from £2,750 for a 2-day single-application scope, quoted within 24 hours.