DuckDB Security Review
Last updated:
DuckDB runs SQL with the full privileges of the user running it, much like a shell. We test whether untrusted input can reach that SQL or a file path. EJN Labs is a CREST-accredited UK company providing DuckDB security reviews, from £2,770 for a 2-day single-system 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.”
DuckDB’s documentation says to treat its SQL like code in Bash or Python. If anything a user controls can reach it, the question is what that process is allowed to touch.
How DuckDB decides what a query may touch
DuckDB’s security documentation is direct about the model. It can read and write files, access the network, load extensions and use system resources, and it executes SQL with the full privileges of the user running it, much like a shell or scripting interpreter. The same page says non-SQL input is not safe by default either: functions such as read_csv and read_parquet accept file paths, and an attacker-controlled path could read sensitive files or reach remote URLs. Its own advice is to validate input and to sandbox anything that accepts it. A review starts by finding every route from a user to DuckDB, SQL or not.
The settings that limit those capabilities sit in your application, not in DuckDB. They include turning off external access, listing the directories or paths a query may use, disabling file systems, and locking the configuration once it is set. DuckDB describes these as defence in depth that is not a substitute for proper sandboxing, and notes that allow-listed paths can be written to as well as read from. So we check which of them your deployment sets, in what order, and whether a query can still reach what it should not.
Two more places hold power that is easy to miss. Secrets hold the credentials DuckDB uses to reach services such as AWS and Azure, and queries can use them, so a query can write to a bucket the secret is allowed to write to. A DuckDB process can also be served over the network with the quack extension, which exposes the full SQL surface of the instance to any client holding the token. The database-level checks in our database security review sit alongside these, covering who can reach the files and the network around the process.
SCOPE
What we test in a DuckDB security review
SQL Built From User Input
DuckDB recommends prepared statements, and they protect against SQL injection when your code controls the query and accepts only data values from users. We find every query your application builds with string concatenation, f-strings or templates, and test each input that reaches one with injection payloads.
Features That Accept User SQL
If users can supply the SQL itself, DuckDB’s documentation says that is equivalent to letting them run arbitrary code. We test every query box, notebook, BI connector and API that passes user-written SQL into DuckDB, and check what separates that session from the rest of the system: a container, a virtual machine, network isolation and a query timeout.
File Paths and Non-SQL APIs
DuckDB’s non-SQL APIs, such as the Python relational API, take file paths, table names, column names and filter expressions, and some filter expressions can contain subqueries with arbitrary SQL. We trace each path or expression back to its source and test whether a user can point read_csv or read_parquet at a local file or a remote URL.
External Access and File System Settings
DuckDB can turn off external access, disable the local file system, or limit queries to listed directories with allowed_directories and allowed_paths, which can be written to as well as read from. Disabling the local file system also stops INSTALL and LOAD, so the order of statements matters. We check which settings your deployment applies, in what order, and test whether a query can still read or write outside them.
Configuration Locking
Security settings in DuckDB lock themselves once restricted, but resource limits do not, and lock_configuration freezes every setting after yours has been applied. We check whether your application locks the configuration before it runs user queries, which settings stay open through allowed_configs, and whether a user session can change anything it should not.
Extensions, Autoloading and Community Repositories
DuckDB can autoload and autoinstall core extensions, and by default it admits core and community extensions, which are checked by signature. Community extensions are third-party code. We check autoload and community settings, any custom extension repositories, where extension files are stored, and whether a user can install or load one.
Secrets and Cloud Credentials
DuckDB secrets hold credentials for services such as AWS and Azure, and queries can use them. Persistent secrets are stored unencrypted on disk, under ~/.duckdb/stored_secrets by default, and the allow_unredacted_secrets option shows full key material. We check what each secret can reach, who can read the secret directory, and whether user queries can list or use secrets.
Quack Remote Server and Token Handling
A DuckDB process served with the quack extension exposes the full SQL surface of the instance to any client holding the token. The server binds to localhost by default, its default authorisation lets every query through, and duckdb -serve stores its token in a persistent unencrypted secret. We test any served instance from outside, check TLS and the reverse proxy in front of it, and test the authentication and authorisation callbacks you have set.
Database Files, Encryption and Exports
DuckDB supports AES-256 encryption in GCM mode that covers the main database file, the write-ahead log and temporary files, with the key supplied on ATTACH. We check whether files holding sensitive data are encrypted, where the key lives, and where database files, Parquet exports and temporary files end up, including shared drives, object storage and backups.
Resource Limits, Root and the CLI
DuckDB can limit threads, memory and temporary disk size, and its documentation warns that malicious input can exhaust memory, disk, CPU or network. It also advises against running DuckDB as root and against embedding the CLI, which has a .sh command that runs shell commands. We test whether a single query can exhaust the host, which account the process runs as, and whether your code ever shells out to the CLI.
OUR PROCESS
DuckDB Security Review: From Scope to Attestation
Scope and Access
We agree which application, DuckDB deployment and data stores are in scope, and get read access to the code plus an account for each privilege tier.
Input and Capability Mapping
We map every route from user input to DuckDB, every setting that limits the process, and every secret, extension and served endpoint attached to it.
Manual Testing
A CREST-certified tester manually tests injection, file and network access, and credential exposure 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 DuckDB 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 DuckDB Security Review Pricing
EJN Labs DuckDB Security Review prices start at £2,770. Pricing depends on the number of roles, integrations and environments in scope. See our pricing page for how we quote.
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 quote3 to 5 testing days
Multi-role SaaS, business application with payment integration. Around 8 to 12 working days from kickoff to report.
Get a fixed quote5 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 quoteSECTORS
Sectors We Test DuckDB 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 DuckDB 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 DuckDB deployment?
We need read access to the code that creates DuckDB connections and builds queries, and a test deployment with an account for each user role in scope. If you serve DuckDB over the network, we also need the endpoint and a token. Host access is only needed if you want file permissions and the process account reviewed directly.
Will testing touch live data?
That is your choice, and we agree it before testing starts. DuckDB often reads files and database files directly, so we prefer a copy of the data and a test deployment with its own credentials. We do not run destructive tests or export real customer data without written agreement.
How long does a DuckDB security review take?
A single system with one DuckDB deployment and one application sits in our 2-day single-system scope, with the report typically landing around 5 working days after kickoff. Several systems, a served instance or a feature that runs user-written SQL move into a larger scope with more testing days.
We only use DuckDB for internal analytics. Is a review still useful?
It is most useful when something untrusted can reach DuckDB, such as an uploaded file, a path from a form, a query built from request data or a shared notebook. DuckDB’s documentation advises caution with all of these. If none of them applies, we say so in scoping and the review narrows to files, secrets and extensions.
Do you test DuckDB’s own code?
No. We test how you use DuckDB: your queries, settings, secrets, extensions, files and the application around the engine. If you believe you have found a vulnerability in DuckDB itself, its documentation asks for confidential reports through GitHub.
What is out of scope for a DuckDB security review?
We do not test DuckDB’s source code or any third-party service your deployment connects to, such as cloud storage or a hosted data service, unless it is agreed in scoping and you are authorised to test it. Connected systems such as your identity provider are scoped and quoted separately.
Does DuckDB place rules on customer penetration testing?
We did not find a customer penetration-testing policy in DuckDB’s documentation. DuckDB runs inside your own application or environment, so the rules that matter are usually your hosting provider’s and those of any service it connects to. We confirm the current terms with you during scoping and test to them exactly.
Is EJN Labs CREST accredited?
Yes. EJN Labs is a CREST-accredited company, and every DuckDB 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 DuckDB deployment
DuckDB runs SQL with the full privileges of the user running it, much like a shell. We test whether untrusted input can reach that SQL or a file path. EJN Labs is a CREST-accredited UK company providing DuckDB security reviews, from £2,770 for a 2-day single-system scope, quoted within 24 hours.



