Penetration testing a self-hosted Metabase

Scoping a penetration test of a self-hosted Metabase means deciding which authentication, permission, embedding and hosting paths an attacker could reach, and what proof the test must produce.

On this page

Penetration testing a self-hosted Metabase: what the test must cover

A penetration test of a self-hosted Metabase should cover the application, its permission model, its authentication path and the hosting stack beneath it, because the instance holds stored connections to your databases and the business data those databases contain. A general web test will find generic input and session issues, but it will not tell you whether a user in one group can reach a table that another group was denied, whether an embedding token can be reused to read a different tenant's data, or whether an API key carries more rights than its automation needs. Scope the test around those Metabase-specific questions first, then around the infrastructure. Name the edition in the scope, since SSO, row and column permissions, multi-tenant segregation and auditing are limited to the Pro and Enterprise plans according to Metabase's pricing page, and the open source edition will have fewer of these controls to test.

Teams usually need a test at four points: before the first production rollout, before an embedding launch that exposes dashboards to customers, when the edition changes (for example, moving to a paid plan that adds SSO and row-level permissions), and after a major upgrade that changes authentication or permission behavior. Confirm the version you will test against with Metabase's version support page, because the tested build should be the one you run in production. Public links deserve a specific test item: they involve no authentication or authorization, so anyone holding the URL can view the data. DeployOpen runs security testing and delivers findings, fixes and a retest, but it does not issue audit reports, attestations or certifications. Your auditor or certification body will decide what evidence from the test they accept.

Which Metabase attack surfaces a test should scope

A Metabase test should cover the places where identity, data permissions, sharing and the hosting stack meet. Several of these surfaces depend on the edition you run, so confirm your plan before you write the scope. The cards below map each surface to what it protects and what the tester should check.

Authentication and SSO

Sign-in is the first control a tester will probe. Open source and Starter support Google sign-in and LDAP, while JWT, OIDC, SAML and advanced LDAP group sync require Pro or Enterprise. Check how sessions are issued and ended, whether password login stays enabled alongside SSO, and whether group membership from the identity provider maps to the right Metabase groups. A misconfigured fallback login is a common finding.

People and groups docs

Group and data permission bypass

Group permissions decide which databases, collections and tables a user can query. The tester should sign in as users in different groups and attempt to reach data outside their grants, including through saved questions, collections shared with other groups and direct query paths. Record which permission checks hold and which only hide content in the interface. This surface applies to every edition, so it is always in scope.

People and groups docs

Tenant and row-level isolation

Row and column level permissions and multi-tenant data segregation are included only in the Pro and Enterprise plans. If your deployment serves several customers or departments from one instance, the tester should try to read another tenant's rows through filters, questions and embedded content. On Open Source or Starter, confirm how isolation is handled in your design, because the product does not provide these controls on those plans. Plan tier determines whether this surface exists in your scope.

Metabase pricing

Embedding tokens and guest embeds

Embedded dashboards rely on signed tokens or guest authentication, which works on every plan including open source. SSO-based embedding requires Pro or Enterprise. The tester should check whether tokens can be reused, whether the signing key is exposed, whether embedded parameters can be altered to reach other records, and whether the embed origin is restricted. Confirm which embedding method your product team uses, since static embedding is deprecated.

Embedding introduction

Public links

Public links involve no authentication or authorization, so anyone who holds the URL can view the data it exposes. The tester should look for public links created by users who should not have them, check whether links are indexed or forwarded, and confirm that the underlying question does not return sensitive columns. Ask the team for a complete inventory of public links before testing starts, since the tester cannot assume the list is complete.

Securing embeds docs

API keys and the hosting stack

API keys carry the permissions of the group they belong to, so a leaked key can reach data without a login. The tester should check key scope, storage and logging, along with the reverse proxy, TLS settings, the application database and the JAR runtime. Confirm that the application database is not reachable from outside the network and that the JAR is started with only the access it needs. Include the hosting layer in the scope, not only the web interface.

Application database docs

How to test authentication and permission bypass between groups

Start by fixing the test plan to your edition, because the controls you can test change with it. According to Metabase's pricing page, SSO, row and column level permissions, multi-tenant data segregation and usage analytics and auditing are included only in the Pro and Enterprise plans. On Open Source or Starter, the permission model you test is group and collection based, and any finding about row level or tenant isolation would be out of scope for that edition. On Pro or Enterprise, the same test must also cover those controls. Confirm the exact permission model in your own running version before writing test cases, since the admin settings and permission screens are where your team will verify what is configured.

Test each login path as a separate attack surface. Password login, Google sign-in and LDAP are available on Open Source and Starter, while JWT, OIDC and SAML with the documented identity provider setups require Pro or Enterprise. For each path, check whether a user who is removed from a directory group, disabled in the identity provider, or whose password was reset still holds an active session in Metabase. Also test whether an account can be created or elevated through the login path itself, such as first-login provisioning or group sync, and whether a user can sign in directly with a password when SSO is meant to be the only route. Record session lifetime and what happens to existing sessions on logout and on role change.

The core test is horizontal and vertical movement between groups. Log in as a low-privilege user in one group and try to reach another group's collections, saved questions, dashboards, databases and table previews, both through the web interface and by requesting the underlying API endpoints directly with that user's session. Repeat with an API key scoped to one group, and check whether a saved question owned by one group can be run, copied or exported by another. Keep a matrix of roles, objects and expected results, and treat any object that loads, even partially, as a finding. Confirm with your Metabase version how collection and data permissions combine, because overlapping group memberships are where unexpected access most often appears.

How the edition changes the test scope

The open source edition is free to run and is licensed under the AGPL, so the test covers the controls it ships with: local accounts, Google sign-in, LDAP, group-based permissions, public links, guest embedding and the API. Scope the work around those surfaces and record the paid-only controls as design limits.

  • Local accounts and Google sign-in: Test password handling, session behavior and the Google sign-in restrictions you have configured.
  • LDAP: Test the bind account, the user search filter and whether a user disabled in the directory loses access to Metabase.
  • Missing SSO controls: JWT, OIDC, SAML, SCIM and advanced LDAP group sync are not available on this edition. Record their absence as a design limit and test the manual user lifecycle instead.
  • Permission limits: Row and column level permissions and multi-tenant segregation are not included, so document that the application cannot enforce them and focus on the group and collection boundaries that exist.
  • Public links and guest embeds: Guest authentication works on all plans, so test these fully. Public links involve no authentication, so anyone with the URL can view the data.

Before writing the rules of engagement, confirm which of these controls your build exposes and which are disabled in your configuration.

Test areas and the evidence each should produce

This table lists each area of a self-hosted Metabase test, what the tester tries to do there, the evidence the report should contain, and whether the result depends on the edition or plan. Use it to write the statement of work and to check that a proposal names the proof you will receive for each finding. Where a row says the area depends on a paid plan, confirm the license you run before you scope that test.

Test areaWhat the tester attemptsEvidence deliveredEdition dependency
SSO and loginBrute force and password policy checks, session fixation and token reuse, SAML or OIDC response tampering, and group claim manipulation during sign-inCaptured requests and responses with secrets redacted, reproduction steps, and screenshots of the resulting session or roleSSO requires Pro or Enterprise; test Google sign-in or LDAP on Open Source and Starter
Group permission bypassAccess data, questions and collections through a user account in a group that should not reach them, including direct API calls for objects outside the groupAccount and group matrix, the query or API request used, returned rows or fields, and the permission setting that should have blocked itRow and column level permissions require Pro or Enterprise; group data permissions are the baseline on all plans
Tenant isolationAttempt to read another tenant's collections, saved questions, cached results or embedded content by changing identifiers or attributesTenant mapping used in the test, side-by-side responses for two tenants, and the attribute or identifier that crossed the boundaryMulti-tenant data segregation requires Pro or Enterprise
Embedding tokensForge, replay or modify signed embedding tokens, alter parameters to reach unintended data, and test token expiryToken structure with signing secrets redacted, the altered parameters, the response returned, and the expiry test resultGuest embedding works on all plans; SSO-based embedding requires Pro or Enterprise
Public linksEnumerate or guess public link identifiers, check which objects are exposed, and confirm whether links can be revokedList of public URLs found, the data returned without authentication, and a record of who created each link and whenPublic links are available on all plans; anyone with the URL can view the data, so exposure is by design and must be assessed as a data risk
API keysUse keys beyond their group scope, test whether keys appear in logs, error pages or client-side code, and check revocation and rotationKey scope definition, requests showing scope violations, log excerpts with keys redacted, and revocation test resultsConfiguration file keys are a paid-plan feature; confirm which key types your plan provides
Hosting and TLSCheck exposed ports, admin or setup endpoints reachable from outside, TLS versions and cipher suites, and headers set by the reverse proxyScan output, certificate details, the proxy configuration reviewed, and reproduction steps for each exposed pathNot edition dependent; depends on your deployment and reverse proxy
Application database exposureTest whether the application database port, backups or H2 files are reachable, and whether stored credentials or encryption settings can be read from the hostNetwork reachability results, file permission listings, and evidence of what a read from the database host would exposeNot edition dependent; H2 is for demos only, so confirm the application database type before testing

How to scope a Metabase pen test in six steps

This sequence turns a vague request for a security test into a written scope that names the exact version, hosting layout, test accounts, rules of engagement, attack surfaces and reporting format before any tester touches the instance.

  1. Record the version and edition

    Start by recording the exact Metabase version, the edition in use (Open Source, Starter, Pro or Enterprise) and the deployment method, such as a JAR, Docker image or Kubernetes chart. The edition matters because SSO, row and column level permissions, multi-tenant data segregation and auditing are included only in Pro and Enterprise, so the test must cover only features the instance actually has enabled. Confirm the version against the Metabase version support page, since LTS and non-LTS lines have different end-of-life dates. Done when the client provides a written version string, edition, and a list of paid features switched on, and the tester has matched them to the scope document.

  2. Confirm the application database and hosting layout

    Document where the application database runs, whether it is the embedded H2 file (for demos), PostgreSQL or MySQL, and how the Metabase nodes sit behind load balancers, reverse proxies and TLS termination. Include the connected data warehouses, the identity provider, outbound services and any air-gapped or private network paths. The tester uses this map to decide which hosts, ports and admin interfaces are in scope and which belong to other owners. Done when the client produces a diagram or inventory that a tester can walk through and both parties have signed off on which systems are in scope.

  3. Agree on test accounts per group and tenant

    Ask the client to create test accounts that represent each relevant permission group, each tenant or data segment, and each access level, including a standard user, a restricted viewer and an administrator. Permission bypass testing is only meaningful when the tester can compare what one group sees with what another group can reach, so accounts need known, seeded data in each segment. Agree on how credentials are issued, stored and revoked at the end of testing. Done when the client has a table of accounts with group membership and data scope, and each account has been logged into once to confirm it works as described.

  4. Define rules of engagement

    Decide whether testing runs against production, a staging copy or a restored clone, and write down how real customer or employee data will be handled, masked or excluded. Set rate limits for fuzzing and authenticated requests so the test does not degrade the warehouse or trigger lockouts, and agree on a contact path for stopping the test. Also confirm backup and rollback steps, since the test may change saved questions, API keys or embeds. Done when the client and tester have signed a rules of engagement document that names the environment, data handling rules, rate limits, escalation contacts and a stop condition.

  5. Agree on surfaces and exclusions

    List the surfaces to test: login and SSO flows, permission boundaries between groups and tenants, embedding tokens and guest embeds, public links, API keys, the admin console, and the hosting stack around the application. Record anything excluded explicitly, such as denial-of-service testing, the identity provider itself, or connected warehouses owned by another team. Public links involve no authentication or authorization, so anyone with the URL can view the data, which makes them a high-priority surface to confirm early. Done when the client approves a surface list with an exclusion list, and each included item has a named owner who can answer questions during testing.

  6. Set the retest and reporting format

    Define the deliverables before testing begins: a findings report with severity, reproduction steps, affected versions and recommended fixes, followed by a retest of the fixed issues. Agree on how findings are classified, how critical issues are reported during the engagement rather than at the end, and who receives the report. Where upgrades are part of the remediation, ask the client to confirm the upgrade path, including the application database backup and the release-by-release approach the Metabase upgrade documentation recommends. Done when the client has accepted a written report template, a severity scale and a retest scope, and the engagement scope document references all of them.

How the test traverses the Metabase trust boundaries

The test starts with an external tester at the public edge and an internal tester on the company network, and both reach the reverse proxy before any Metabase code runs. Each hand-off to the Metabase JAR is a permission check the test must attempt to cross, first with a logged-out request, then with a low-privilege group account. The application database holds users, groups and settings, and the warehouse connections hold the data that permission bypass would expose. Check each boundary separately, including the SSO provider, the embedding host and any public link, which bypass the normal login path.

Test entry points and the trust boundaries each one must cross.

Safe testing rules that protect production data

A penetration test of Metabase touches live database connections, saved queries and user data, so the rules for the engagement matter as much as the test plan. The five rules below set where testing runs, what it may query, what the tester can keep, which credentials get replaced afterward and when load is applied.

Test on a staging copy

Run the test against a staging Metabase with its own application database, connected to a copy of the warehouse or to sample data with the same schema. Give the test accounts the same groups, collection permissions and data permissions as production so that permission bypass findings are meaningful. Confirm with the client that staging holds no real customer records, because permission testing often exposes data to the tester. If staging differs from production in SSO or group sync, record those differences in the report so the findings are read correctly.

Application database docs

Avoid destructive queries

Metabase passes native SQL and question builder queries to the connected database, so a tester who writes or edits a native query can run statements the database account permits. Agree in writing which statements are allowed, and prefer a read-only database user for every connection under test. Ask the warehouse owner to confirm that write, DDL and admin privileges are absent from the test credentials. Log every native query the tester runs so the client can match it against database logs.

Control data the tester sees and keeps

Set rules for what data a tester may view, copy, export or store. Limit exports from dashboards and questions to the minimum needed to prove a finding, and redact or mask personal fields in screenshots and reports. Agree on where evidence is stored, who can access it, and when it is deleted after the report is accepted. Ask the client whether any dataset falls under a regulatory obligation that restricts access by named personnel, and confirm the tester is covered before access begins.

Rotate test credentials afterward

Every test account, password, SSO test user, API key and embedding secret created or exposed during testing should be rotated or removed when the engagement ends. Include keys the tester created to probe the API, guest embed secrets used in a proof of concept, and any credential that appeared in logs or in a shared report. Ask the client to confirm rotation with a written checklist, and check that no test key remains in a repository or ticket. Retest after rotation to confirm old credentials no longer work.

Coordinate load tests with the warehouse owner

Load testing a Metabase instance pushes queries through to the warehouse, so it can slow reporting for other teams and trigger alerts or cost limits. Agree on the query rate, duration, time window and the dashboards to be exercised, and name a contact who can stop the test. Ask the warehouse owner whether caching, connection pool limits and rate controls are in place, and record their answers in the test plan. Run load tests outside peak reporting hours where the client's operations team allows it.

Questions buyers ask before a Metabase pen test

What drives the cost and effort of a Metabase penetration test?

The main drivers are how many distinct trust boundaries the test must cover and how much access the testers receive. A deployment with one group and one database is far smaller than one that uses several permission groups, row-level or tenant segregation, SSO, embedding and public links. Other factors include the number of user roles to test, the number of connected data sources, whether the test includes the hosting stack (reverse proxy, container platform, database and network) and whether testers get authenticated accounts for each role. Ask each vendor for a written scope that lists the targets, roles, test types, environments and deliverables, then compare quotes against that same list. Confirm whether a retest is included in the quote or priced separately.

How long does scoping and testing a Metabase deployment take?

Duration depends on the same scope drivers as cost, plus how quickly your team can provide access and answer questions. Scoping usually involves a short working session to confirm the architecture, identity provider, permission model, embedding use and hosting layout, followed by agreed dates for testing and reporting. Testing time grows with the number of roles and permission boundaries to exercise, and with any embedding or API key workflows in use. Ask the provider to state the phases, the dependencies on your team and the timeline in the written scope. No duration in this answer is a commitment; confirm the timeline for your environment before work starts.

What does our team need to provide before a Metabase test starts?

Most delays come from access and information gaps, so prepare these items before the kickoff:

  • Test accounts for each role you want covered, such as an admin, a restricted group member, an embedding user and a user from an unrelated tenant, with the permissions they should hold
  • A non-production or staging copy of the Metabase instance that matches production, or written approval to test production with agreed rules of engagement
  • Architecture details: version, application database, reverse proxy, TLS termination, container or VM layout and the connected data sources
  • Your identity provider configuration and the expected group mappings
  • A named technical contact, a security contact for urgent findings and a change window for any disruptive tests
  • Written authorization covering the systems, IP ranges and hostnames in scope
Can our internal security team run a Metabase penetration test?

Yes, if the team has the skills, the time and the independence the test requires. Internal testing is useful for routine checks, but a test intended to support a decision or an audit often benefits from a tester who did not build or operate the system. The key questions are whether the team understands Metabase permission models, SSO flows, embedding tokens and the hosting stack, and whether it can document reproducible findings with severity and fixes. Be explicit about what the internal team will not cover, such as independent review of its own configuration choices. Many organizations split the work, with internal staff running recurring checks and an outside team testing the boundaries that matter most.

How does retesting work after a Metabase penetration test?

Retesting checks whether the fixes for reported findings work as intended. A typical cycle starts when your team applies remediation, then the tester repeats the original steps against the changed configuration and records whether each finding is resolved, partly resolved or still open. Specify in the scope how many retest rounds are included, the window in which retests can happen, and whether retests run against staging, production or both. Ask how fixes will be verified after a Metabase upgrade or configuration change, since a later version can reintroduce issues. Retesting is usually priced separately or handled under a support arrangement, so confirm the terms in writing.

Does a penetration test replace a compliance assessment for Metabase?

No. A penetration test shows how the deployed system behaves under adversarial testing at the time it is run. A compliance assessment checks whether controls meet the requirements of a framework and is performed by an independent auditor or certification body where the framework requires one. DeployOpen does not issue audit reports, attestations or certifications. A test can supply evidence for some controls, such as access restrictions, authentication behavior and configuration review, and it can point to gaps before an assessment. Ask your assessor early which evidence they will accept and how they want findings and retests documented.

Which Metabase features change the test scope most?

Authentication and authorization features drive most of the extra work. SSO (SAML, OIDC, JWT or LDAP group sync), row and column level permissions, multi-tenant data segregation and embedding each add trust boundaries that a tester should check. Public links need specific attention because they involve no authentication or authorization, so anyone with the URL can view the data. Per the Metabase pricing page, SSO, row and column permissions, multi-tenant segregation and usage auditing are limited to the Pro and Enterprise plans, so confirm which plan you run before scoping, since the features you can test depend on it. List every enabled feature in the scope so the quote reflects what is actually deployed.

How DeployOpen scopes and retests a Metabase test

A Metabase test is scoped in writing before any work starts. The scope document names the exact instance under test, its version, the plan it runs on, and the surfaces in play: the web application, the public and embedded entry points, the REST API, the application database, and the hosting stack underneath. DeployOpen's engagements are fixed-scope, so the agreed deliverables, the test accounts and roles that will be provided, the testing window, and the rules of engagement are all recorded before testing begins. For Metabase, the scope should state which permission model is being tested (groups, data permissions, collection permissions, and row and column security if the plan includes them), whether SSO is in use, and whether embedding or public links are enabled. Ask for test accounts in each group that matters, including a low-privilege viewer in each tenant or segment you expect to be isolated, so that cross-group and cross-tenant access can be checked from both sides.

Findings are delivered as a written report. Each finding describes the affected component, how it was reproduced, the impact in your environment, and a recommended fix, with the setting, configuration key, or code path named where possible. Expect the fixes to span the application (group and collection permissions, API key scope, embedding settings), the configuration (such as secret handling and network exposure), and the infrastructure (reverse proxy, TLS, database access). Once your team has applied fixes, DeployOpen retests the affected findings and reports which are closed, which remain open, and what was changed in the process. Agree in the scope what counts as a retest, how many rounds are included, and whether a fix that changes the Metabase version (for example, moving to a newer release through the upgrade process) is tested again in full.

Some organizations want testing after every significant change rather than once a year. DeployOpen offers an optional retainer for continuous testing, which can cover repeat tests after upgrades, new embedded tenants, or new identity provider configurations. The retainer terms, including how often tests run and how urgent findings are handled, are agreed in writing like any other engagement. When you request a quote, ask for the scope split between the one-time test and any recurring work, the number of retest rounds included, the test accounts you must supply, and the conditions under which an additional test is billed separately. DeployOpen does not issue audit reports or certifications, so if a result is needed as evidence for an assessor, confirm with that assessor in advance what form of report they accept.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.