Skip to main content

Database cryptography discovery

Delivery status

The current unified packages include native agent 0.27.4 for Windows x86_64, Linux x86_64 and macOS arm64. Database scanning is available through local commands and workspace-managed jobs. The packages include guided setup for multiple connections and extension of an existing policy, introduced in 0.27.3. Native packages include their database drivers; no system Python installation is required. Older installed agents may need an update before these commands are available.

The packages remain signed preview releases. The supported engine boundaries below describe what the evidence can establish; a successful scan does not certify an entire database deployment as quantum ready.

Database discovery examines cryptographic metadata, rather than application rows. A connection is authorized locally on the collector. The workspace selects an opaque connection ID; a queued scan cannot replace the target, credential file or optional metadata permissions.

Enroll a new database-only collector​

In Agents & sensors, choose Enroll agent, expand Advanced: enroll an individual agent, and select Database cryptography. Review the local access requirements, give the collector a name, and save its masked credential in your approved secret store. Continue to configuration opens scanner approvals and the database-policy setup guide; it does not send you through a network-target wizard.

This creates the workspace identity and database approval. You must still install a compatible runtime, authorize connections locally, protect credentials and validate readiness. For a service deployment, prepare the policy and service-account permissions before starting the service.

Bulk deployment grants currently do not accept the database capability. Use individual enrollment for a database-only collector, or follow the existing-agent approval workflow below. Do not interpret a successful unified-package download as authorization to scan a database.

Enable database scanning on an existing agent​

An agent enrolled before database scanning was available may be approved only for its original scanner types. Installing a newer runtime does not silently expand that approval.

  1. As a workspace administrator, open the agent's Configure agent page, then Review scanner approvals.
  2. Select Databases, enter the reason for approval, and choose Approve selected scanners. Approval history records the change and administrator. If another administrator changed approvals, reload and review before submitting again.
  3. On the host, configure the protected database policy and credentials using the instructions below. Keep the policy bound to the enrolled workspace and readable by the actual service account.
  4. Check local readiness, start the configured agent, and wait for database readiness in the workspace. Approval alone does not mean the driver, permissions or connection are ready.
  5. Submit a database scan using the locally generated connection UUID and inspect its evidence and diagnostics.

Scanner approval preserves the agent's identity. It does not grant database privileges, supply credentials, change target allowlists, enable a remote-scanner pool, authorize relay transit, resume updates or start a scan. Existing approvals cannot be removed from this additions workflow; pause scans or revoke the agent when access must be stopped. Read-only roles can inspect approvals and history but cannot add permissions.

Automation uses GET/POST /api/v1/agents/{id}/capability-approvals, JavaScript agentCapabilityApprovals / approveAgentCapabilities, Python agent_capability_approvals / approve_agent_capabilities, or OAuth MCP agent_capability_approvals / agent_capabilities_approve. Submit the current revision as expectedRevision, an explicit add list and a reason; follow nextBefore for older history. An uncertain response requires reading the current state before retrying.

Queue a database job through the API, SDK or MCP​

First confirm the intended workspace, agent database approval and fresh databaseReady runtime status. Read the connection UUID from the host's protected policy using database list. The workspace receives only that UUID, not database credentials, hostnames or a replacement policy.

Submit POST /api/v1/jobs with this shape after replacing all UUID placeholders:

{
"name": "Reviewed database discovery",
"kind": "database",
"target": "<locally-approved-lowercase-connection-uuid>",
"agentId": "<selected-agent-uuid>",
"requestId": "<new-request-uuid>"
}

JavaScript uses createJob(input) and job(jobId); Python uses create_job(input) and job(job_id). Hosted OAuth and local MCP use agent_job_start with the same fields and agent_job_status with the returned job ID. Administrators and analysts can submit; viewers can inspect but cannot start a job. A database-ready heartbeat does not prove database authentication, TLS verification or metadata permissions: those are checked during execution.

Preserve the request UUID and identical input after an uncertain response. Changed scope with the same request UUID is a conflict, not a replacement job. Poll the exact job until terminal, then read findings, diagnostics and coverage. A partial result can contain useful evidence; zero findings does not mean safe. Use agent_job_cancel or the API cancellation operation to stop authorized work; accepted observations remain historical. See Create a discovery job and the SDK setup guide.

What the agent examines​

DatabaseEvidence collectedBoundaries
PostgreSQLCurrent-session TLS and visible server settingsAn ordinary account can see its own session. Broader settings visibility is optional. Missing settings remain partial evidence.
MySQLCurrent-session TLS, selected settings and optional tablespace encryption countsNo application table contents. Tablespace visibility depends on the account's permissions.
Microsoft SQL ServerSession encryption, optional TDE state and aggregate Always Encrypted column metadataTDE and column inspection are separately enabled locally. Metadata visibility does not prove that applications use encryption correctly.
SQLiteRead-only runtime and schema readabilityDoes not establish disk encryption or verify every database page.
SQLCipherSelected format's encryption metadata and schema readability with the supplied passphraseFormats 1-4 are tested. Raw-key syntax and custom cipher parameters are not supported.

These observations do not establish post-quantum readiness by themselves. Unknown key establishment, authentication and storage-encryption context remain explicitly unknown or not assessed.

Connection and credential controls​

Server connections require an explicit hostname, approved IP address, port, database name and local CA file. The collector verifies TLS identity and trust before sending database credentials. It does not silently retry with plaintext transport or accept an untrusted certificate.

Policy and credential files must have protected parent directories and private file permissions. Run diagnostics as the actual agent account: a successful check in an administrator's session does not prove that a service can read the same files.

The published Windows agent supports user-bound DPAPI credential envelopes. Create them under the identity that runs the agent. An envelope created under an administrator's identity cannot simply be handed to a different service account. Native agent 0.27.2 and source bundle 0.51.495 or newer also offer explicit elevated setup for the dedicated Windows service, described below. Existing permission-protected plaintext credential files are still accepted. Linux and macOS credential JSON and its backups contain plaintext credentials; protect them with host access controls and encryption at rest. Credential rotation remains administrator-managed.

Credentials travel to a bounded worker through a private input pipe, not command-line arguments. Worker output contains selected metadata. Driver errors are sanitized rather than exposing connection strings or secret values. Collection uses a deadline and platform memory limits; revoking or changing local authorization discards the result before upload.

Guided local setup​

Run these commands as the account that will run the agent. Use a new, existing private directory with protected parents. The wizard refuses to overwrite a policy, replace credentials or adopt an untrusted directory. Native agent 0.27.2 includes these commands; no system Python or separate database driver installation is required. Run from the extracted agent runtime directory and retain its accompanying files.

Windows PowerShell:

& {
$databaseDirectory = Join-Path $env:LOCALAPPDATA 'QScanDatabase'
New-Item -ItemType Directory -Path $databaseDirectory -ErrorAction Stop | Out-Null
$databaseOwner = [Security.Principal.WindowsIdentity]::GetCurrent().User.Value
icacls.exe $databaseDirectory /inheritance:r /grant:r "*${databaseOwner}:(OI)(CI)F" '*S-1-5-18:(OI)(CI)F' '*S-1-5-32-544:(OI)(CI)F'
if ($LASTEXITCODE -ne 0) { throw 'Could not protect the database directory' }
.\quantum-ready.exe database configure --directory $databaseDirectory --tenant <workspace-uuid>
}

Linux or macOS terminal:

database_directory="$HOME/.qscan-database"
mkdir -m 700 "$database_directory" &&
./quantum-ready database configure --directory "$database_directory" --tenant <workspace-uuid>

These examples create a fresh private directory for the current foreground-agent account before starting the wizard. If the directory already exists, stop and inspect it: use the existing policy's list or check commands, or choose a new directory for policy extension. Do not delete existing credentials to rerun setup. On Windows, run the commands together and stop if directory creation or ACL setup fails. These commands are not service-account provisioning: use the dedicated Windows service procedure below, or provision POSIX files under the actual service identity. Running the ordinary wizard with sudo creates root-owned credentials that a restricted service may be unable to read.

The directory must exist and be writable only by the intended account. Use the workspace UUID shown by the agent configuration, not the workspace name. For the optional Python source distribution, replace the native executable with python scanner/qr.py in the commands below; its separate runtime dependencies still apply.

The wizard offers PostgreSQL, MySQL, SQL Server and SQLite/SQLCipher. It asks for the exact TLS hostname, approved destination IP, port, database and CA file for server connections. Additional TDE, Always Encrypted and tablespace metadata are separate opt-ins. SQLCipher requires an explicit file-format version. Passwords are entered twice without terminal echo and are never command-line arguments. Windows writes a user-bound DPAPI envelope with a protected ACL; Linux and macOS write private credential JSON under protected parents. These POSIX files and their backups contain plaintext credentials; protect them with host access controls and encryption at rest.

Saving prints the generated connection UUID and databasePolicyFile setting to add to the agent JSON configuration. It then runs local preflight without making a database connection. If a dependency is missing, configuration remains saved and preflight exits 2; fix the runtime and rerun the check instead of rerunning creation. Configure does not enroll or restart a service. Mac agent 0.27.2 has passed compiled setup, connection listing and selected preflight, plain SQLite and SQLCipher formats 1-4, and live PostgreSQL/MySQL/SQL Server foreground fixtures. These local commands are also verified in Windows and Linux agent 0.27.2.

./quantum-ready database list --policy <absolute-policy-file> --tenant <workspace-uuid>
./quantum-ready database check --policy <absolute-policy-file> --tenant <workspace-uuid>
./quantum-ready database scan --policy <absolute-policy-file> --tenant <workspace-uuid> --connection <connection-uuid>

In Windows PowerShell, use .\quantum-ready.exe in place of ./quantum-ready. database list shows locally authorized connection IDs; it does not connect to a server. database check checks local readiness. Only database scan connects to the selected database. Never put a password into any of these arguments.

The scan performs one bounded, locally authorized metadata inspection and prints normalized JSON. It does not upload anything. Exit 0 means the selected scope completed; exit 2 means partial evidence or failure, so read the report or diagnostic. In particular, unsupported SQLite cipher metadata remains partial rather than being interpreted as encryption disabled. After local validation, configure/restart the enrolled agent and select the connection UUID in the workspace database job form. A different service identity needs its own readable credentials; the wizard does not bypass that boundary.

Provision the Windows service​

This option is available in native agent 0.27.2 and source bundle 0.51.495 or newer. Disposable Windows service-identity tests verified authorized access, unrelated-identity denial and wrong-engine refusal. Do not use an administrator's ordinary user-bound DPAPI credential for the Windows service.

From an elevated PowerShell terminal, use an existing protected directory and the workspace UUID of the enrolled agent:

.\quantum-ready.exe database configure --windows-service --directory "C:\ProgramData\SectigoQuantumReady\database" --tenant <workspace-uuid>

The directory must already exist with protected parents. The wizard checks this before requesting a password, asks for the password twice without echo, and exclusively creates new policy and credential files. It grants the dedicated SectigoQuantumReady service read access; SYSTEM and administrators retain full access. It never overwrites an existing policy or credential. This does not grant database permissions, enroll the agent, update its configuration or restart it.

The credential is encrypted with machine-bound DPAPI and isolated by the file ACL. Machine-bound DPAPI does not itself isolate one local account from another: another local user who obtains the encrypted blob and its context could decrypt it on that host. Protect backups and host access. Local administrators and SYSTEM are outside this protection boundary. The unrelated relay service receives no credential access.

A successful save returns saved: true, ready: false, readiness: pending-service-check and databaseConnectionAttempted: false. This is an honest handoff, not a successful connection test. Add the printed databasePolicyFile to the installed agent's JSON configuration, restart through the supported service manager, and inspect that agent's database readiness in the workspace. Once ready, submit a database job for the generated connection UUID and inspect the job's evidence and diagnostics. Local readiness does not establish network reachability, TLS trust or database authentication.

Do not try to sign in interactively as the virtual service account or interpret an administrator's database check as service readiness. The service must perform its own check. If readiness fails, inspect the local policy, its tenant ID, file/parent permissions, CA file access and the installed runtime. Keep the encrypted credential out of support bundles.

Find the connection that needs attention​

Native agent 0.27.2 includes a local connection list and an optional connection selector for preflight on Windows, Linux and macOS. Run them under the actual agent identity. In the following commands, use ./quantum-ready on Linux/macOS or .\quantum-ready.exe in Windows PowerShell:

./quantum-ready database list --policy <absolute-policy-file> --tenant <workspace-uuid>
./quantum-ready database check --policy <absolute-policy-file> --tenant <workspace-uuid> --connection <connection-uuid>

The list reports each authorized UUID, engine, readiness code and remediation message. It does not print target paths, server addresses, usernames or passwords. A broken connection does not hide the readiness result for another connection. Exit 2 means at least one listed connection is not ready; without --connection, check still checks the complete policy. These are local permission, target and driver checks, not database authentication or TLS tests. A changed policy during listing requires another check. Agent 0.27.2 creates one connection per new policy. Agent 0.27.3 adds the guided multi-connection and extension workflow below. Windows service provisioning is included in native agent 0.27.2 as described above.

Creation failures leave any already-created protected files for inspection; they are never silently overwritten or deleted. No secret is written before destination permissions have been checked.

Multiple connections and policy extension​

These options require native agent 0.27.3 or source bundle 0.51.503 or newer. Existing single-connection commands remain available.

Use --connections 3 to enter three new connections in one wizard. Each connection has its own engine, exact destination, credential and optional metadata permissions. The wizard validates all entries before a single save confirmation; cancellation or an invalid entry writes nothing. The combined policy is limited to 256 entries.

To add connections to an existing policy, choose a new protected output directory:

./quantum-ready database configure --directory /absolute/private/database-next --tenant <workspace-uuid> --extend-policy /absolute/private/database-current/database-policy.json --connections 2

For the dedicated Windows service, run elevated and add --windows-service:

.\quantum-ready.exe database configure --windows-service --directory "C:\Private\database-next" --tenant <workspace-uuid> --extend-policy "C:\Private\database-current\database-policy.json" --connections 2

Extension retains every existing connection UUID, target, metadata permission and credential-file reference. It adds the requested new connections without rewriting the original policy or credentials. Keep the old credential directories: the new policy still references those files. The wizard rejects another workspace, duplicate IDs, too many entries or a source policy changed during setup.

Saving does not activate the policy. Run readiness checks under the actual agent identity, explicitly update databasePolicyFile using the supported service configuration workflow, then check workspace readiness before submitting scans. Existing job connection IDs remain valid after activation. Windows service setup reports pending service readiness rather than pretending an administrator's session proves service access. On macOS use the managed configuration transaction below. Keep the previous policy for rollback, but never restore revoked access without an explicit administrator review.

Understanding local diagnostics​

Managed macOS configuration update​

Use the current macOS unified package with installer 0.51.495 for this workflow. Do not edit the installed agent.json or its installation hash manually: managed startup checks that binding. The following commands are unavailable in older installer 0.51.433.

After provisioning a local database policy readable by the dedicated scanner account, stop the scanner and explicitly disable its update schedule and local update approval. Prepare a protected root-owned copy of the complete installed agent JSON, changing only databasePolicyFile to the policy's absolute path. Keep every enrollment, relay, credential and other scan-scope field unchanged. The input file must use the installer's protected-input permissions (root:wheel, mode 0400 or 0600, no granting ACL or writable parent).

sudo ./Deploy-QuantumReady.sh scanner-service configure-database --config /private/scanner-with-database.json
sudo ./Deploy-QuantumReady.sh scanner-service status

Configuration success does not prove database access. The service remains stopped and updates remain disabled. Run the installed agent's macos-scanner-service --preflight-only command with sudo: it validates the managed installation and drops to the dedicated scanner account before local checks. Use the executable in the exact installed /opt/sectigo-quantum-ready/releases/<version>-<sequence>/ directory. This command does not start discovery or contact a database. Inspect config.database and the overall readiness result before starting the scanner with its exact installed signed package, checking workspace database readiness, and submitting an authorized database job. Restore update approval/scheduling explicitly after validation.

The scanner account needs read and traversal access to each policy-path parent so it can inspect pinned directory handles and ACLs. Traversal-only parent permissions fail this check. Keep the policy/credential directory private to the service account, with no group/other write access or granting ACLs; do not make credential files publicly readable to fix a parent-directory error.

If interrupted, preserve the input and local state. When status reports configuration recovery, use the same original input file:

sudo ./Deploy-QuantumReady.sh scanner-service recover-database --config /private/scanner-with-database.json

Recovery refuses files changed outside the transaction. Do not delete the recovery journal or replace it with a newly edited request. Completed update history is retained; configuration never grants new relay permissions or makes a database connection. The native candidate has passed a privileged configuration round trip, recovery after an OS-enforced write failure, rejection of the wrong recovery input, and installed service-account preflight on macOS arm64. The installed 0.27.2 service has completed a queued SQLite metadata job through its approved relay. Unknown encryption coverage remains partial; successful transport does not prove encryption at rest.

The agent's doctor command checks local policy, credential access, target configuration and driver loading. It does not connect to the database. A passing preflight must be followed by a scan to verify TLS, authentication and database grants.

DiagnosticNext step
database-local-policy-invalidCheck the absolute databasePolicyFile path, workspace ID, unique connection IDs and parent/file permissions under the service identity.
database-local-target-or-credential-invalidCheck target fields, credential permissions and account-bound encryption. A SQLite target must be an existing file reached without links.
database-runtime-unavailableUse the same runtime as the service and check required drivers. Adding database privileges will not fix a local driver-loading failure.
database-worker-platform-pendingThe operating system is outside the supported Windows, Linux and macOS worker paths. Use a qualified runtime; adding database privileges will not resolve this.
database-readyLocal checks passed. Run an authorized scan to check the actual database connection.

The published Linux native agent includes psycopg 3.3.4 with libpq 18.6, PyMySQL 1.1.2, python-tds 1.17.1, SQLCipher 4.20.0 and its sqlcipher3 0.6.4 binding. Optional driver installation for the Python source bundle is not yet a supported guided workflow. Do not install arbitrary driver upgrades into a managed agent.

Installed-agent acceptance​

Current 0.27.4 qualification includes production managed database scans on Windows, Linux and macOS. Windows also completed installed scans after service restart and a scheduled signed upgrade; macOS used its approved relay. See the unified package qualification and platform guides for the exact package versions and lifecycle boundaries. These results do not imply every engine version or cloud account has been tested.

The following earlier engine-specific acceptance remains useful historical evidence; it does not identify the current package version.

Published agent 0.27.2 completed production database jobs under dedicated service accounts on Mac arm64, Windows Server 2025 and Ubuntu 24.04 x86_64 for PostgreSQL 16, MySQL and SQL Server, using owned, isolated database fixtures and ordinary collector accounts. Each job produced correlated workspace evidence and verified TLS against its locally authorized destination. The Mac used its existing relay with direct fallback disabled; Windows and Linux connected directly to the control plane.

Missing settings or optional metadata privileges remained partial coverage; unknown key establishment was not converted into a PQC claim. These checks do not certify every database version, cloud variant or optional TDE/Always Encrypted grant. Mac tests restored the original configuration and identity, stopped the service and removed temporary credentials. Windows and Linux tests preserved identity and configuration through the scans, then revoked/archived their temporary agents, removed the services and cleaned private inputs. The Windows VM was stopped for reuse; the disposable Linux VM snapshot and credential disk were removed. Native foreground negative tests remain separate evidence from these installed-service jobs.

Cloud databases​

AWS RDS/Aurora, GCP Cloud SQL and AlloyDB, Azure SQL Database and Managed Instance, and Azure PostgreSQL/MySQL Flexible Server control-plane discovery are available through Cloud connections. Start with Test access, then explicitly run a scan and inspect its progress, findings and evidence gaps. Follow the cloud connection guide for provider-specific identity, permissions and scope.

Real AWS, Azure and GCP account acceptance was waived for this delivery. The workflows remain available, but account-specific authorization, quotas and scan outcomes have not been verified. Test access checks your configured identity; it does not establish a completed inventory scan. Provider metadata cannot substitute for inspection of an actual database session. Use a locally authorized agent connection for engine/session evidence, including private endpoints.

Guided multi-connection setup and extension of an existing policy are delivered in the current unified packages; use the instructions above. Configuration, transport, encryption-at-rest metadata and verified cryptographic use remain separate evidence categories.

The Linux unified agent passed live PostgreSQL, MySQL and SQL Server foreground fixtures, including TLS failures and permission changes, plus installed systemd jobs with ordinary collector permissions. SQLite and SQLCipher formats 1-4 passed on a clean host without Python. These checks establish the tested collector paths; they do not claim every database release, cloud variant or deployment mode is supported.