Free audit

View Audit Scope
MariaDB SecurityEncryption, server_audit, CIS & RBAC hardening

MariaDB Security Audit, Encryption & Hardening Services

JusDB conducts MariaDB security audits and hardening engagements covering InnoDB and Aria data-at-rest encryption, TLS in transit including Galera wsrep replication, ed25519 and PAM authentication, least-privilege GRANT hygiene, and the MariaDB server_audit plugin. Database engineers deliver a written findings report with remediation scripts mapped to your PCI-DSS, HIPAA, SOC 2, and CIS requirements.

The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance.

  • NDA before access
  • Read-only by default
  • Written scope before work starts

MariaDB security domains

Select a hardening domain

InnoDB, Aria, binlog & Galera encryption

Data protection

Configure MariaDB Data-at-Rest Encryption (innodb_encrypt_tables=FORCE, innodb_encrypt_log=ON, encrypt_binlog=ON) with AWS KMS or HashiCorp Vault, plus TLS 1.3 and Galera socket.ssl=yes.

Includes encrypting internal temporary tables (encrypt_tmp_disk_tables=ON) so sensitive joins never spill plaintext to disk.

See encryption & audit specimen below

Aligned with the CIS MariaDB Benchmark and MariaDB security documentation.

Encryption & auth
InnoDB/Aria/binlog DARE (KMS/Vault), TLS 1.3, Galera socket.ssl, ed25519, and PAM
Auditing & proxy defense
MariaDB server_audit plugin, MaxScale dbfwfilter firewall, PII masking, and CIS hardening
Support & escalation
Fixed-scope security audit, or 24/7 support with a 15 mins P1 response SLA. See details

Selected clients

  • Innoviti
  • Blitz
  • Freecharge
  • Nango
  • Recochain
  • Screen Facts
  • Nexora
  • WeCredit

When teams call us

MariaDB security gaps we uncover and remediate

Most MariaDB audit findings trace back to wildcard application privileges, unencrypted temporary tables and binary logs, cleartext Galera replication links, missing server_audit trails, or End-of-Life 10.6 builds.

Common MariaDB security vulnerabilities, what is usually happening, and where JusDB engineers start
Security gapWhat is usually happeningWhere we start
GRANT ALL ON *.* TO '%'Application accounts hold global administrative privileges from any IPInitial setup scripts granted ALL PRIVILEGES or SUPER to the web application user with a '%' host wildcard, allowing SQL injection to read or drop every schema.Inspect mysql.global_priv and SHOW GRANTS, create least-privilege MariaDB Roles per microservice (SELECT, INSERT, UPDATE on one schema), and restrict CIDR hosts.
Unencrypted temp & binlogsDisk volume is encrypted, but binlogs, backups, and temp spills sit in plaintextFull-disk EBS encryption only protects against physical drive theft; any OS-level user or unencrypted mariabackup archive can read raw .ibd, Aria temp, and binary log files.Load file_key_management or aws_key_management, enable innodb_encrypt_tables=FORCE, innodb_encrypt_log=ON, aria_encrypt_tables=ON, and encrypt_binlog=ON.
Plaintext Galera wsrepWrite-sets and mariabackup SST travel across availability zones in cleartextClient connections use TLS, but Galera's internal ports (4567 replication, 4568 IST, 4444 SST) were left without socket.ssl=yes or [sst] tmode=VERIFY_CA.Provision internal cluster certificates via cert-manager or PKI and enable socket.ssl_key, socket.ssl_cert, socket.ssl_ca, and encrypted mariabackup SST streams.
Missing server_audit trailExternal auditors ask who ran DROP or ALTER and no audit log existsMariaDB's server_audit plugin is not loaded, or it was enabled with QUERY_DML on all users, which filled the root disk and got turned off.Load server_audit.so, log CONNECT, QUERY_DDL, and QUERY_DCL events to syslog/SIEM, and exclude high-frequency read-only app pool users from DML logging.
local_infile & FILE privServer variables allow arbitrary filesystem reads via SQLlocal_infile=ON is left enabled, secure_file_priv is empty, or accounts retain the global FILE privilege, creating a path for SELECT ... INTO OUTFILE exploits.Harden my.cnf against the CIS MariaDB Benchmark: set local_infile=0, secure_file_priv=/var/lib/mysql-files, skip_symbolic_links=yes, and revoke FILE.
EOL MariaDB 10.6 CVEsSecurity scanners flag unpatched MariaDB 10.5 / 10.6 instancesCommunity patches for MariaDB 10.6 stopped in July 2026 (RDS standard support ends December 2026), leaving instances exposed to newly disclosed CVEs.Document compensating controls (MaxScale dbfwfilter, network segmentation) for immediate audit windows while executing a rolling upgrade to MariaDB 10.11 or 11.4 LTS.

Audit methodology and SLA response times

How a MariaDB security audit and hardening engagement works

We inspect your clusters read-only first, stage every privilege or encryption change to avoid breaking applications, and deliver an auditor-ready evidence package. 24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins.

Four-step MariaDB security audit & hardening protocol

  1. Inspect

    Read-only 12-point privilege, TLS, and config audit

    We inspect mysql.global_priv, my.cnf variables, encryption status, and CVE build levels.

  2. Map

    Deliver ranked findings mapped to CIS & audit controls

    Written report with severity ratings, CIS benchmark references, and tested remediation scripts.

  3. Harden

    Roll out Roles, KMS encryption, TLS, and server_audit

    Staged rollout of ed25519 auth, background InnoDB encryption, Galera TLS, and SIEM logging.

  4. Verify

    Re-scan and hand over auditor evidence package

    Verification outputs proving encryption, least-privilege grants, and active audit logging.

SLA response times for active security incidents

  • 15 mins

    P1 · Critical

    P1 incidents

  • 30 mins

    P2 · High

    P2 incidents

  • 60 mins

    P3 · Medium

    P3 incidents

SeverityResponse SLADefinitionChannel & coverage
P1 · Critical15 minsProduction database down, primary unreachable, data corruption risk, or active failover event.24/7 · Direct PagerDuty, Opsgenie, or phone page plus incident bridge
P2 · High30 minsSevere latency spike, replication lag climbing rapidly, connection exhaustion, or degraded HA node.24/7 · On-call alert plus shared Slack or Teams channel
P3 · Medium60 minsNon-critical slow query regression, staging issue, backup warning, configuration question, or planned operational request.24/7 · Shared Slack or Teams channel or support ticket

Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

Response means an on-call engineer is working the incident, not an automated reply.

12-point security scope

What does a MariaDB security audit cover?

Our security audit and hardening scope covers authentication and Roles, Data-at-Rest Encryption (DARE), TLS and Galera encryption, server_audit SIEM logging, MaxScale firewall rules, and CIS benchmark mapping.

  • Authentication & GRANT privilege audit

    Complete inventory of every user account, host mask, authentication plugin, and privilege grant across your MariaDB estate.

    • Migration from legacy mysql_native_password to ed25519, PAM, or X.509 mTLS
    • Refactoring over-privileged accounts into MariaDB Roles with CIDR host limits

    mysql.global_priv · client_ed25519 · pam_use_cleartext_plugin · Roles

  • Data-at-Rest Encryption (DARE) & KMS

    Table-level, redo-log, binary-log, and temporary-table encryption wired to an external key management system.

    • Configuring aws_key_management, hashicorp_key_management, or file_key_management
    • Enforcing innodb_encrypt_tables=FORCE, innodb_encrypt_log=ON, and encrypt_binlog=ON

    innodb_encrypt_tables · aria_encrypt_tables · encrypt_tmp_disk_tables

  • TLS in transit & Galera wsrep encryption

    End-to-end encryption for application connections, GTID replication, and Galera Cluster state transfers.

    • Enforcing require_secure_transport=ON and TLSv1.2 / TLSv1.3 cipher suites
    • Securing Galera gcomm (4567), IST (4568), and mariabackup SST (4444) with mTLS

    require_secure_transport · socket.ssl=yes · tmode=VERIFY_CA

    MariaDB Galera Cluster services
  • server_audit plugin & SIEM integration

    Tamper-evident audit trails configured to satisfy external audit evidence requests without degrading query latency.

    • Tuning server_audit_events (CONNECT, QUERY_DDL, QUERY_DCL, QUERY_DML_NO_SELECT)
    • Forwarding audit logs via rsyslog to Splunk, Datadog, AWS CloudWatch, or Elastic

    server_audit.so · server_audit_output_type=SYSLOG · SIEM

  • MaxScale database firewall & PII masking

    Inspect and filter SQL queries at the proxy layer to block dangerous query patterns and mask sensitive columns.

    • dbfwfilter rules blocking WHERE-less mass queries, UNION injections, or unauthorized DDL
    • Dynamic data masking for SSN, cardholder, or PII columns on reporting replicas

    MariaDB MaxScale · dbfwfilter · masking filter · regex rules

    MariaDB MaxScale proxy services
  • CIS Benchmark & client compliance mapping

    We map every technical finding and remediation script to the frameworks your security and audit teams track.

    • Line-by-line check against the CIS MariaDB Benchmark (OS, filesystem, my.cnf, grants)
    • Evidence packages helping your environment meet PCI-DSS v4.0, HIPAA, and SOC 2 controls

    CIS Benchmark · CVE mapping · mariabackup encrypted restores

    MariaDB LTS upgrade services

Hardening progression and written evidence

From default grants to encrypted, audit-logged MariaDB

We stage privilege tightening, KMS encryption, and TLS enforcement on a replica first so security hardening never causes an application outage.

Three stages of a MariaDB security audit and hardening rollout

Choose a stage to inspect identity, encryption, and audit logging posture.

Application -> MaxScale dbfwfilter -> Encrypted MariaDB cluster

Application connects with 'app'@'%' holding ALL PRIVILEGES over unencrypted TCP; Galera SST and binlogs sit in plaintext.

Wildcard grants · Cleartext SST · No audit
  • Access & Identity

    'app'@'%' with ALL PRIVILEGES and legacy SHA-1 password

    High blast radius · No mTLS

  • Storage & Replication

    Unencrypted .ibd, Aria temp tables, binlogs, and Galera ports

    Plaintext on disk & AZ link

  • Audit & CVE State

    server_audit unloaded · Running EOL MariaDB 10.6

    0 audit logs · EOL CVEs

Out-of-the-box MariaDB installations prioritize developer convenience over least-privilege access, encryption, and auditability.

Example written finding and hardening profile from a PCI-DSS readiness auditSample deliverable

Security finding

14 wildcard SUPER accounts, plaintext binlogs, and unloaded server_audit plugin

Auditing mysql.global_priv revealed 14 service accounts with Host='%' and global SUPER grants. We migrated all accounts to CIDR-scoped MariaDB Roles with ed25519, enabled online InnoDB/Aria/binlog DARE encryption, and wired server_audit to syslog.

Wildcard SUPER accounts14 → 0 accounts
Encrypted tablespacesAll InnoDB & binlogs

1. Read-only audit query identifying over-privileged and wildcard accounts

SELECT User, Host,
       JSON_VALUE(Priv, '$.plugin') AS auth_plugin,
       JSON_VALUE(Priv, '$.access') AS global_access_bitmask,
       JSON_VALUE(Priv, '$.ssl_type') AS ssl_requirement
FROM mysql.global_priv
WHERE Host = '%' OR JSON_VALUE(Priv, '$.access') > 0;

2. MariaDB Data-at-Rest Encryption (DARE) & server_audit config

[mariadb]
plugin_load_add                = aws_key_management,server_audit
require_secure_transport       = ON
tls_version                    = TLSv1.2,TLSv1.3
local_infile                   = 0
innodb_encrypt_tables          = FORCE
innodb_encrypt_log             = ON
innodb_encryption_threads      = 4
aria_encrypt_tables            = ON
encrypt_tmp_disk_tables        = ON
encrypt_binlog                 = ON
server_audit_logging           = ON
server_audit_events            = CONNECT,QUERY_DDL,QUERY_DCL
server_audit_output_type       = SYSLOG

Your team and ours

What cloud database security still leaves to your team

Managed cloud databases automate much of the infrastructure layer, but your team still owns query performance, capacity, cost, and incident decisions.

Who handles each part of MariaDB database security on a managed cloud service versus your own servers
Security areaCloud provider default (RDS, SkySQL)Database hardening with JusDB
Cloud KMS service, VPC security groups, and IAM policiesAWS, GCP, or Azure provides KMS and network firewall primitives.Your security team manages HashiCorp Vault or PKI infrastructure.
Database user grants, Roles, and ed25519 / PAM authenticationYours. Cloud providers create the master user; every application account and GRANT is your responsibility.Audited and refactored into least-privilege MariaDB Roles by JusDB.
InnoDB, Aria, temporary table, and binary log encryption settingsRDS encrypts the underlying EBS volume, but granular MariaDB plugin encryption and key rotation on VMs require DBRE setup.Configured by JusDB with KMS plugins and online encryption threads.
MariaDB server_audit plugin configuration and SIEM filteringRDS requires Option/Parameter Group tuning so audit logs do not saturate CloudWatch or disk.Tuned by JusDB to capture required security events without I/O stalls.
MariaDB 10.6 EOL remediation and CVE patchingAmazon RDS ends MariaDB 10.6 support on 31 December 2026; upgrading to 10.11/11.4 LTS is your team's job.Planned and executed by JusDB with rolling upgrades and controlled connection drains.

Your team keeps control

  • Set business priorities, application requirements, and release plans
  • Approve production changes, except routine actions you have pre-approved
  • Own your cloud accounts, access policies, and vendor relationships
  • Decide when maintenance can happen and how quickly service must recover
  • Move the work in-house or to another provider after your agreement's notice period, with your data returned or deleted and the transition help your agreement sets out (Terms, section 8)

JusDB handles the agreed security hardening

  • Monitor database health, investigate alerts, and involve the right people
  • Review query performance, replication, capacity, and backup health
  • Carry out approved changes and update the operating instructions they affect
  • Report completed work, open risks, and recommended next steps

Related MariaDB capabilities

Compare options

How a JusDB MariaDB Security Audit compares with automated vulnerability scanners

Compare a deep database-layer JusDB audit against surface-level port scanners, generic OS checklists, or unverified defaults.

Evaluation Vector
JusDB DBRE
In-House DBALegacy AgencyDeveloper Generalist
ed25519 & PAM Multi-Factor Authentication ArchitectureEnforces modern ed25519 elliptic-curve authentication plugins with PAM/LDAP directory integration, mandatory password complexity, and automated brute-force account locking policies.Remains on deprecated mysql_native_password authentication without MFA, exposing passwords to offline rainbow table attacks.Uses shared generic root accounts across engineering teams with no multi-factor authentication or rotation schedules.Uses blank or trivial administrative passwords, storing database connection credentials directly in git repositories.
TLS 1.3 Transport Encryption & Certificate LifecycleMandates require_secure_transport=ON, restricts cipher suites to TLS 1.3, secures Galera wsrep and MaxScale links, and automates mTLS certificate renewal via ACME/Cert-Manager.Permits unencrypted plaintext TCP connections on local subnets; leaves replication streams and client traffic unencrypted across private clouds.Deploys self-signed certificates with expired validity dates, suppressing TLS warnings across application connection pools.Disables SSL in client connection strings (sslMode=DISABLED) to bypass certificate verification errors in staging and production.
Data-at-Rest Encryption (InnoDB TDE) & Key Management (KMS)Configures InnoDB Transparent Data Encryption (TDE) for tablespaces, redo logs, undo logs, and binary logs with envelope encryption integrated into AWS KMS, HashiCorp Vault, or file_key_management.Relies solely on underlying storage disk encryption (EBS/LUKS), leaving backup archives, binlogs, and temporary tables vulnerable to cold extraction.Leaves tablespaces completely unencrypted; stores static encryption keys in plaintext config files with 0777 filesystem permissions.Ignores encryption-at-rest; stores credit card or PHI data in plaintext database tables without column or tablespace encryption.
Fine-Grained RBAC Privilege Minimization & Superuser RevocationEnforces strict Role-Based Access Control (RBAC) with least-privilege grants, removes wildcard host '%' bindings, and revokes global SUPER, FILE, and PROCESS privileges from application users.Grants broad ALL PRIVILEGES ON *.* to microservice users to prevent runtime permission errors during deployment releases.Fails to audit dormant contractor accounts; grants admin privileges directly to personal developer email identities.Connects every application service directly as the 'root' database user with full schema drop and privilege manipulation powers.
MaxScale Database Firewall (dbfwfilter) SQL Injection DefenseImplements MaxScale L7 Database Firewall (dbfwfilter) with strict query whitelisting, regex rule blocking, SQL injection prevention, and query rate limiting at the proxy layer.Relies entirely on application-level ORM parameterization without database-tier firewall defense or runtime query pattern inspection.Disables proxy filtering due to performance concerns, allowing raw uninspected SQL injection vectors to reach backend databases.Constructs raw SQL queries via string concatenation in web services, exposing tables to classic SQL injection attacks.
Immutable MariaDB Audit Plugin Logging to SIEM (SOC 2/HIPAA)Configures MariaDB Audit Plugin with JSON formatting, fine-grained event filtering (CONNECT, QUERY, TABLE), log rotation, and tamper-proof streaming to Datadog/Splunk for SOC 2 and HIPAA compliance.Enables verbose general log logging to local disk, saturating storage IOPS and causing catastrophic cluster crashes during peak traffic.Disables audit logging entirely to save disk space, failing compliance audits during annual SOC 2 or PCI-DSS reviews.Has no audit trail or query logging; unable to detect unauthorized data exfiltration or identify compromised user accounts.

For procurement and security

NDA first, read-only by default, and written scope

We work alongside your CISO, security, and platform teams. Your team approves every configuration change and keeps the complete audit report, remediation scripts, and verification outputs.Raguraman, Head of DBSRE · Allen D, Principal Engineer
  • Mutual NDA
  • Written statement of work
  • Named engineers
  • Least-privilege access
  • NDA before access

    Signed before any diagnostic access. We never export customer table rows during a security audit.

  • Written agreement

    Target MariaDB clusters, audit checklist, deliverables, and fees agreed in writing.

  • Metadata-only inspection

    Audits inspect system metadata (mysql.global_priv, information_schema, my.cnf) via your bastion.

  • Evidence you keep

    Every CIS benchmark checklist, my.cnf profile, and Role script stays with your team. Meet the JusDB team.

JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12). Read the stated status.

FAQ

Common MariaDB security audit questions

Answers on 12-point security audits, online Data-at-Rest Encryption (DARE), server_audit tuning, Galera TLS, and compliance readiness.

Still have a question?

Ask it on a scoping call. No production access needed.

Book a 30-min scoping call (opens Google Calendar in a new tab)

What does a JusDB MariaDB security audit cover?

Our 12-point MariaDB security audit inspects user accounts and password plugins (mysql.global_priv), privilege grants and SUPER/FILE exposure, CIS MariaDB Benchmark my.cnf variables, TLS in transit (including Galera wsrep and SST ports), InnoDB/Aria/binlog Data-at-Rest Encryption (DARE), server_audit logging, backup encryption, network exposure, and CVE patch status.

How do you enable MariaDB Data-at-Rest Encryption (DARE) without taking the database down?

After configuring the key management plugin (such as aws_key_management, hashicorp_key_management, or file_key_management), MariaDB can encrypt existing InnoDB tablespaces in the background using innodb_encryption_threads and innodb_encryption_rotate_key_age without locking application reads and writes.

Why isn't cloud EBS / disk encryption alone enough for MariaDB security?

Full-disk or EBS volume encryption only protects data when a physical drive is removed from the data center; once the OS mounts the volume, every file is readable in plaintext to any process with filesystem access or in unencrypted logical backups. MariaDB Data-at-Rest Encryption (DARE) encrypts individual InnoDB pages, Aria tables, redo logs, binary logs, and temporary disk tables with keys managed in KMS or Vault.

How do you configure the MariaDB server_audit plugin without hurting performance?

Enabling QUERY_DML logging for every user on a high-throughput OLTP server can add significant I/O overhead. We tune server_audit_events=CONNECT,QUERY_DDL,QUERY_DCL for general traffic, scope DML auditing to privileged human administrative accounts via server_audit_incl_users / server_audit_excl_users, and stream logs asynchronously to syslog/SIEM.

Can you secure internal Galera Cluster replication and SST traffic with TLS?

Yes. By default, Galera's group communication (port 4567), Incremental State Transfer (port 4568), and mariabackup Snapshot State Transfer (port 4444) run unencrypted even if client port 3306 uses TLS. We configure socket.ssl_key, socket.ssl_cert, and socket.ssl_ca in wsrep_provider_options plus [sst] encrypt=3/4 so all inter-node traffic is mutually authenticated and encrypted.

Does this audit help our environment prepare for PCI-DSS v4.0, HIPAA, or SOC 2 Type II audits?

Yes. We map every technical finding and remediation script to the database-layer controls required for your environment's PCI-DSS v4.0, HIPAA, SOC 2, or CIS MariaDB Benchmark assessments, and provide the exact verification queries your auditors ask for. JusDB's security practices are aligned with ISO 27001 and SOC 2 Type II, and JusDB is pursuing both certifications (see Terms, section 12).

What are your SLA response times if we have an urgent MariaDB security or CVE incident?

24/7 support. SLA response times: P1 – 15 mins | P2 – 30 mins | P3 – 60 mins. Our engineering team is in India (IST, UTC+5:30) and provides 24/7 support.

How do you remediate over-privileged application accounts without breaking production?

Before revoking ALL PRIVILEGES or changing host masks, we audit performance_schema statement digests and server_audit logs over a representative traffic window to build an exact matrix of which tables and verbs each application account actually uses, then stage and apply least-privilege MariaDB Roles.

MariaDB security and HA playbooks

MariaDB encryption, Galera TLS, and proxy guides

Practical guides from our engineering team on securing Galera clusters, MaxScale firewall rules, and LTS upgrades.

Next step

Talk to a MariaDB engineer about your security audit

Tell us your MariaDB versions, topology, and upcoming compliance or security review timelines. The first 30-minute call covers your databases, current ownership, and required coverage. No production access is needed. Or request a free audit of one database instance, subject to availability: mutual NDA before read-only access, a prioritized report within one week after access is ready, and no obligation.

NDA before access · read-only by default · written scope first