Skip to main content

Database scanning walkthroughs

These written walkthroughs cover local authorization, configuration, readiness and scanning using the native unified agent on Windows, Linux and macOS. Each one covers the whole task, from configuration through to a verified scan result.

Before you begin​

  1. Download the signed unified package for the host and verify it using the published instructions. Keep the executable and accompanying runtime files together.
  2. Identify the account that will actually run discovery. A foreground login account and a restricted background service are different identities.
  3. Obtain your workspace UUID from the agent configuration. Do not use the workspace name or the all-ones fixture UUID shown in the videos.
  4. Choose one explicitly approved database. Have its owner approve metadata access. Do not use application administrator credentials merely to make configuration easier.
  5. Create a new private configuration directory with protected parents. If a directory already contains policy or credentials, inspect it or choose a new directory; do not delete existing authorization to rerun the wizard.

The examples below use the native executable from its runtime directory. The recordings also show the unified launcher's equivalent command paths. No system Python is needed for the native runtime.

Windows​

SECTIGO QUANTUM READY · PLATFORM TRAINING

Trace a Windows SQLite scan into inventory

Loading video…

2:03 · English narration and captionsTranscriptDownload lesson

Open PowerShell under the foreground scanner identity. From the extracted native runtime directory, run the following block after replacing the workspace UUID:

& {
$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>
}

Select the engine, enter its approved target and review the save confirmation. The SQLite example uses an existing absolute database path and answers no to SQLCipher. Record the generated connection UUID and databasePolicyFile path. Ordinary Windows credentials use user-bound DPAPI: copying that envelope to a service does not transfer the original user's access.

For an installed Windows service, use the separate elevated database configure --windows-service workflow with a protected existing directory. This provisions machine-bound DPAPI credentials with a service-specific file ACL. The save reports pending service readiness; it is not a successful connection test. Follow Windows service database provisioning before restarting or queuing work.

Linux​

SECTIGO QUANTUM READY · PLATFORM TRAINING

Trace a Linux SQLite scan into inventory

Loading video…

2:07 · English narration and captionsTranscriptDownload lesson

The recording uses Ubuntu. Use the supported package for Ubuntu, Debian, Red Hat or CentOS and check its documented architecture/runtime requirements. This lesson is not a separate qualification run on each distribution.

As the intended foreground account, create a new private directory and start configuration:

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

Do not add sudo to every command to work around access failures. For a restricted service, provision policy and target access for that identity and validate under the actual service context. Linux credential JSON and backups contain plaintext secrets; protect the host, private directories and backups with appropriate access controls and encryption at rest.

macOS​

SECTIGO QUANTUM READY · PLATFORM TRAINING

Trace a macOS SQLite scan into inventory

Loading video…

2:04 · English narration and captionsTranscriptDownload lesson

For foreground discovery, use the same private-directory command sequence as Linux, or the unified launcher's run database configure command shown in the recording. A native package does not require system Python. Policy and credential files must remain accessible to their owning scanner identity; macOS credential JSON and backups contain plaintext secrets.

For a managed scanner, do not manually edit the installed agent.json or its installation hash. Provision service-readable policy, stop the scanner and disable its update schedule/approval as documented, then use the protected scanner-service configure-database transaction. Validate with the installed scanner's service-account preflight before restarting it. A successful configuration transaction leaves the service stopped and does not contact a database. Follow the managed macOS transaction and recovery procedure, including restoration of update settings after validation.

Configure the right engine​

SECTIGO QUANTUM READY · PLATFORM TRAINING

Resolve a SQL Server evidence permission gap

Loading video…

2:44 · English narration and captionsTranscriptDownload lesson

This lesson replays the actual Linux native wizard configuring PostgreSQL, MySQL and SQL Server. Its example endpoints are illustrative; the recording saves local authorization and checks readiness without connecting to those servers. Use your approved hostname, destination, account and CA file rather than copying the example values.

EngineInputs and decisions to review
PostgreSQLExact certificate hostname, approved destination IP, port (normally 5432), database, local CA file and restricted metadata account. Own-session visibility does not imply visibility of every server setting.
MySQLExact TLS identity/destination, port (normally 3306), database, CA and restricted account. Enable tablespace-encryption metadata only when needed and authorized.
SQL ServerExact TLS identity/destination, port (normally 1433), database, CA and restricted account. TDE and aggregate Always Encrypted column metadata are separate local opt-ins.
SQLiteExisting absolute file path and a read-authorized identity. Schema readability does not establish volume encryption or every page's integrity.
SQLCipherExisting file, supported format version and hidden passphrase entry. The documented formats are 1–4; raw-key syntax and custom cipher parameters are not supported.
Cloud databasesDistinguish control-plane configuration inventory from an engine connection. A cloud inventory result does not prove the agent can authenticate to the database or inspect its live session. Use the documented provider scope and engine connection path for the evidence you need.

For server engines the collector verifies TLS identity and trust before sending database credentials. Do not disable verification to resolve a certificate error. Password prompts require confirmation and disable terminal echo; never put a password in a command-line argument or a cloud job target.

List, check, then scan​

Use the values printed by configuration, and the same account that will run discovery:

./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>

On Windows replace ./quantum-ready with .\quantum-ready.exe.

  • List shows locally authorized connection identifiers. It does not connect.
  • Check validates local policy, credentials and runtime prerequisites. database-ready does not establish TLS trust, authentication or metadata grants on the server.
  • Scan inspects the selected locally authorized database and prints evidence. This local command does not upload results.

An exit code of 2 needs interpretation: inspect the report for partial coverage and diagnostics. Preserve useful observations without converting unknown fields into a pass. In the recorded SQLite fixture, runtime and schema readability were observed, application rows were excluded, and the database remained unchanged; storage encryption remained unassessed.

Move from local validation to a workspace job​

  1. Set databasePolicyFile through the supported agent/service configuration path. Preserve existing enrollment, relay and other scan-scope settings.
  2. Restart or resume the collector using its documented lifecycle workflow. Inspect that specific agent's database readiness in the workspace.
  3. Open Discovery scans, choose an agent database scan, enter the locally approved connection UUID and select the ready collector.
  4. Submit once and follow the returned job's progress. The UUID selects existing local authorization; it cannot add a host or expand permissions.
  5. Review evidence, diagnostics and coverage together. A completed job is not proof of complete cryptographic coverage.

For API, SDK or MCP submission, retain the request UUID and identical input after an uncertain response. Poll the returned job to a terminal state. See database job submission.

Troubleshoot without expanding privileges​

SymptomInvestigation and correction
Policy invalidCheck the absolute policy path, tenant UUID, connection IDs, protected parents and permissions under the running account.
Credential or target invalidCheck the exact authorized target, file access and account-bound protection. Do not copy a foreground DPAPI envelope into a service.
Runtime unavailableCheck the installed package and its accompanying files. Database grants cannot repair a missing local driver.
TLS failureCheck the approved hostname/IP, certificate chain and CA file. Correct identity/trust configuration rather than disabling verification.
Foreground succeeds, service failsCompare service identity, policy-parent traversal/read access, credential protection and CA/target access. Validate through the service path.
Partial evidenceRead the affected probes and diagnostics. Grant additional metadata scope only if explicitly required and approved; keep unsupported evidence unknown.
Interrupted macOS configurationPreserve the journal and original request file; use the documented recovery command with that same file. Do not fabricate a new recovery input.

For multi-connection policies, use --connections or extend into a new protected output directory. Keep previous credential directories referenced by retained entries. See the complete database guide for permission boundaries, supported packages, cloud variants and acceptance limitations.