Skip to content
Checklist

Metabase Exposure Checklist

Could someone take over your Metabase and export the data behind it? SOCRadar’s BabidiGhost report describes an AI-assisted operator doing exactly that at an insurer, through an internet-facing, unpatched Metabase vulnerable to CVE-2023-38646, a flaw Metabase fixed in July 2023, and then reading cloud database credentials from the container. Work through exposure, version and the setup token, SSO with MFA and admin accounts, API keys, read-only database accounts, secrets on the host and alerts for new admins. You get a 0–100 score and the gaps ranked so you fix the riskiest first.

Metabase exposure readiness
0/ 100
Wide open

An internet-facing, possibly unpatched Metabase with broad data access. Take it off the internet today.

0 / 18 items answered · weighting is a heuristic
By section
  • Internet exposure0
  • Version and setup token0
  • Admin accounts and sign-in0
  • Database connections and secrets0
  • Monitoring and response0

Prioritised gaps

Highest-weight, least-done items first. Work from the top.

  1. Internet exposure · unanswered

    Put Metabase behind your VPN or an identity-aware proxy, or restrict it to office and VPN ranges at the load balancer.

  2. Version and setup token · unanswered

    Upgrade to the latest Metabase release for your edition (back up the application database first) and record the version.

    BabidiGhost: how an unpatched Metabase was used →
  3. Database connections and secrets · unanswered

    Create dedicated read-only database users per connection and grant SELECT only on the needed schemas.

  4. Internet exposure · unanswered

    Search your cloud accounts, DNS and external scans for Metabase login pages and shut down or restrict anything unexpected.

  5. Version and setup token · unanswered

    Check the response of /api/session/properties without a session; on a set-up instance setup-token should be null. If not, upgrade and treat the host as possibly compromised.

  6. Admin accounts and sign-in · unanswered

    Connect Metabase to your identity provider, enforce MFA there and turn off password sign-in for regular users.

  7. Admin accounts and sign-in · unanswered

    Review every admin account, remove shared ones and reset any password that is not unique and long.

  8. Database connections and secrets · unanswered

    Remove unrelated secrets from the Metabase environment; SOCRadar describes credentials being read from a container environment.

+ 10 more in the checklist below and in the export.

Internet exposure · weight 24

A BI tool sits on top of your most useful data. If anyone on the internet can reach its login page, one bug or one weak password is enough.

0
/ 100
ex1

Metabase is not reachable from the internet: it sits behind a VPN, zero-trust access proxy or an IP allow-list.

ex2

You have checked from outside (your own scan or an attack-surface tool) that no forgotten Metabase, test copy or old container answers on a public address.

ex3

Public sharing and embedding are off, or limited to specific questions that contain no sensitive data.

Version and setup token · weight 22

CVE-2023-38646 let an unauthenticated attacker run code using the setup token. It was fixed in July 2023; SOCRadar reports an unpatched, internet-facing instance being used in November 2026.

0
/ 100
pa1CVE-2023-38646

Metabase runs a current supported release, well past the July 2023 releases that fixed CVE-2023-38646.

BabidiGhost: how an unpatched Metabase was used →
pa2

The setup token is not exposed: an unauthenticated request to /api/session/properties returns no setup-token value on a configured instance.

pa3

Someone watches Metabase security releases and applies them within days.

pa4

The application database is PostgreSQL or MySQL, not the default embedded H2 file, in production.

Admin accounts and sign-in · weight 20

Super-admins can add database connections, read every table and create API keys. They need the strongest sign-in you have.

0
/ 100
ad1

Sign-in goes through SSO (SAML, JWT, LDAP or Google) with MFA, and password login is disabled where your edition allows.

ad2

No default, shared or weak passwords: the first admin created at setup is a named person with a strong unique password or SSO.

ad3

Only a few named people are admins, and the list is reviewed at least quarterly.

ad4

API keys are listed, owned, scoped to a non-admin group where possible and rotated.

Database connections and secrets · weight 20

Metabase stores credentials for every database it queries. What those accounts can do decides what an attacker with Metabase can do.

0
/ 100
da1

Every database connection uses a read-only account limited to the schemas and tables people actually report on.

da2

The Metabase container or host holds no other cloud or database credentials in environment variables or files.

da3

MB_ENCRYPTION_SECRET_KEY is set, so connection details are encrypted in the application database.

da4

Data sandboxing or row-level permissions limit what non-admin groups can see in sensitive tables.

Monitoring and response · weight 14

New admins, new database connections and bulk downloads are the moments that matter. You want to see them the same day.

0
/ 100
mo1

You alert on new admin users, new API keys and new database connections.

mo2

Metabase and reverse-proxy logs are kept centrally and show who downloaded or exported large results.

mo3

If the instance may have been compromised, you know which database credentials to rotate and in what order.

Secret Rotation Order Planner →

Educational self-assessment from PlayCISO. The section weights are a judgement framework, not a measurement, certification or guarantee. CVE details are as published by Metabase and NVD; campaign details are as reported by SOCRadar. Setting names can differ between Metabase editions and versions. The checklist runs in your browser and uploads nothing; your answers live only in the link you choose to copy.

Loading…

Sample report · illustrative data

Sample result: Metabase exposure checklist

Example answers for a made-up retailer whose Metabase is patched and behind SSO but still reachable from the internet, with an admin database account on its main connection.

Overall

Metabase exposure readiness
43 / 100 (Exposed)
Items answered
18 of 18

Score by section

SectionWeightScore
Internet exposure2431
Version and setup token2288
Admin accounts and sign-in2056
Database connections and secrets2016
Monitoring and response1411

Prioritised gaps (first five)

  • Internet exposure: put Metabase behind your VPN or an identity-aware proxy, or restrict it to office and VPN ranges at the load balancer.
  • Database connections and secrets: create dedicated read-only database users per connection and grant SELECT only on the needed schemas.
  • Internet exposure: search your cloud accounts, DNS and external scans for Metabase login pages and shut down or restrict anything unexpected.
  • Monitoring and response: use audit logs where your edition has them, or query the application database (core_user, api_key, metabase_database) on a schedule and alert on changes.
  • Admin accounts and sign-in: review Admin > Settings > Authentication > API keys, delete unused keys and move the rest to the narrowest group.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this checklist is

5 points
  • For data, analytics and security teams that run a self-hosted Metabase (open source or Enterprise) on top of production or warehouse databases.
  • Five weighted sections: internet exposure, version and setup token, admin accounts and sign-in, database connections and secrets, and monitoring and response. You get a 0–100 score, a band and the gaps to close first.
  • Prompted by SOCRadar’s BabidiGhost report, which describes an unpatched, internet-facing Metabase (CVE-2023-38646) being used to export a customer database.
  • Exposure and patching carry the most weight, closely followed by what the database accounts behind Metabase can read: that decides how much a single takeover is worth.
  • Runs in your browser; nothing is uploaded. Share the exact checklist with a link; CSV and Markdown exports are available.

A BI tool is a front door to your data

Metabase is built to make data easy to reach, which is exactly what an attacker wants. A super-admin can add connections, read every table and mint API keys, and the credentials it stores often have more rights than any report needs. In the case SOCRadar describes, an old, fixed flaw on an internet-facing instance was enough.

Take it off the internet, keep it current, put sign-in behind SSO with MFA and keep the admin list short. Then shrink the prize: read-only database accounts limited to the schemas people use, no unrelated secrets on the host, and an alert when a new admin, API key or connection appears. The weights in this checklist are a heuristic, shown openly; it is a self-assessment, not a certification.

Frequently asked questions

What is CVE-2023-38646?

A pre-authentication remote code execution flaw in Metabase that Metabase fixed in its July 2023 security releases. It abused the setup token, which affected versions exposed through an API endpoint even after setup. Any instance still on an older release should be treated as exposed and checked for compromise.

How do I check whether my Metabase exposes the setup token?

Request /api/session/properties without signing in. On an instance that has been set up and patched, the setup-token value should be null. If it returns a token, upgrade at once and investigate the host.

Should Metabase be on the internet?

Usually not. It sits on top of valuable data and holds database credentials. Put it behind a VPN, a zero-trust access proxy or an IP allow-list, turn off public sharing you do not use, and check from outside that no forgotten instance answers on a public address.

What database permissions should Metabase have?

A dedicated read-only account per connection, with SELECT only on the schemas people report on. Keep other cloud or database credentials out of the Metabase container environment, and set MB_ENCRYPTION_SECRET_KEY so stored connection details are encrypted.

Does the tool scan my Metabase or upload my answers?

No. It is a self-assessment that runs entirely in your browser. It makes no network calls about your systems, and your answers are only stored in the shareable link you choose to copy.

More tools like this

Related tools and labs, with new picks every day.

All tools